There is nothing flashy about preloaders other than loading the content b4 it plays. Its up to you to decide how you want it for the viewers.
Printable View
There is nothing flashy about preloaders other than loading the content b4 it plays. Its up to you to decide how you want it for the viewers.
My preloader seems to work great except for one MAJOR problem. The movie goes to the second frame and STOPS.
See!
I used this tutorial to make the preloader.
Anyone have an idea why this would happen?
Thats wierd...if you refresh the page, it goes... post your actionscript, the tutorial link dosen't seem to be working.
~Sportzguy933
I've got a simple animation-140k-flashmx-on a mac. using the 3 frame prelooader:
http://www.glowdesignhouse.com/cooluloid_index3.8.html
first scene-
frame 1-if (_framesloaded == _totalframes) {
gotoAndPlay(3);
}
frame2-gotoAndPlay(1);
frame3-nextScene();
in the next scene everything is in a movieclip in the first frame. I've synced up the sound. It is embedded in an html page that centers the content. It seems to work fine in firefox but not in netscape or safari. I'm just getting a blank screen. Any ideas or suggestions?
Thanks a ton
Do you have any content on frame 1?
Scene 1, Frame 1 - The Loading bar movie clip:Quote:
Originally Posted by sportzguy933
Scene 1, Frame 1, the "Loading" text movie clip:Code:onClipEvent (enterFrame) {
_root.stop();
mctotal = _root.getBytesTotal();
mcloaded = _root.getBytesLoaded();
percent = Math.round((mcloaded/mctotal)*100);
load = percent+"%";
progress_mc1._xscale = percent;
if (percent == 100) {
_root.play();
}
}
Scene 1, Frame 2Code:onClipEvent (enterFrame) {
_parent.loaded = _parent.getBytesLoaded();
_parent.total = _parent.getBytesTotal();
if (_parent.getBytesLoaded() == _parent.getBytesTotal()) {
_parent.nextFrame();
}
}
I then start the rest of the movie at frame 2.Code:stop();
I've tried removing the stop(); part of the preloader @ frame 2 to see if it would go.
I have all the content in frame 1 of the second scene (1 movieclip)Quote:
Originally Posted by sportzguy933
thanks for any help
Make sure there is a stop(); action on the first frame in an "Actions" layer.Quote:
Originally Posted by marycallahan
Fungku-
I would probably just delete that preloader, as there are SO many path actions (_parent, _root, etc.), which can be confusing. Try using the one I posted, or follow this tutorial (only I would change the look of the bar...) ;).
~Sportzguy933
Any idea for a funky preloaders that is either bloody and cool? I am doing it for a cool movie I made. :p
You could have a bar with "blood" dripping off of it.
~Sportzguy933
I'm new to Flash and I'm trying to get two .PNG images to become a preloader for my slideshow..... Image one is the outline and image two the fill...now I have tried several tutorial and honestly I'm now REALLY confused :confused: ....PLEASE help...
The movie keeps looping and I don't seem to get the " fill " to load at the same rate as the bytes.....
And to make things even more frustrating when I test my movie it jumps straight into the images and I don't even get to see the preloader
Try this:
Ctrl+Enter Tests the movie,
Ctrl+Enter in testing makes the Preloader load in proper internet speed, change the speed in one of the top-drop-down-menus.
OK maybe your image is too small sometimes and your content don't need preloading, Only use a preloader for a SWF bigger than 50kb. If its below that most ppl finish loading it in about 2 to 3 seconds and that is just an waste of time.
Hey. Post your FLA, I should be able to fix this :cool: :D. Also, a good way to build a site is to work from the bottom up, make the preloader first, and then put a big image in place of what will be your site. Then test it, like Tongxn said, at internet speed, and see if it works, if it does, then start building the actual contents of the site, if it doesn't work, then tweak it ;).
~Sportzguy933
You there Digicam?
:( been sick since I posted the question...I tried to send you the FLA but it's 600k and won't let me upload :thumbsdow
mmm... store it on an online web storage and give us the link here.. maybe then ...
hey.
i am trying to create a preloader in flash
i have a logo, and basically i want that logo to gradually change colors.
lets say fex it will be programmed to last for 10 sec.
and the color will fade from ex pink to grey.
is that very difficult to set up in flash?
hope someone can help me out here...
cheers
I've managed to solve 90% of my problem...but now the progress bar (which is masked) only "grows" about half way and stops even though the % counter carries on 'till it reaches 100% and then carries on with the scene
@Brit-
Try using the script I posted, but instead of having a progress bar, have it change colors. This may look a little choppy though...
@Digicam-
Please post your FLA, or email me it here:
[email protected] and I will upload it to my server, and post the link here ;).
~Sportzguy933
I always wandered how do you make something change colours... i mean Random colour that are similar with each other i mean..
so if you have : #FFFF00, so can you make system recongnise that and just get random numbers on #FFFF00? and could you change the other ones as well?
Its just that I don't understand the basic concept of HEX color values...
Well I way of doing it is to change the colours inside the movieclip, simple. The other way round is to create a randome hex Code or to simply put random HEX numbers for the movieClip.
hey if i have a bunch of empty movie clips that are being populated with jpgs from an xml, how do i get my preloader mc to attatch or sit in each empty untell they arent empty?
er... you can just er... say the bytes without the jpegs and then do this:
:pCode:toTal = getTotalBytes();
if (toTal != 2000) {
play();
} else {
gotoAndStop(1)
}
// the toTal valuable is used for the movie without the picture, once the picture is added the bytes increases. then it plays onto the preloading scene
maybe it works and maybe it won't but eitherway its a solution.
Great thread - should defo be a sticky!!
Can I ask a simple (hopefully) question though...
I've used the sample script but my loader doesn't display at 0%, but rather 60% or above.
How can I correct this?
is your preloader IN the extermal.swf you are trying to load??
yes.Quote:
Originally Posted by whispers
Quote:
Originally Posted by tongxn
Im curious...if it DOES NOT work..how is it a 'solution'?? :P ;)
Quote:
Originally Posted by delicious73
thats the problem...
refer back to post #27 and on...it will explain why.
now I know I'm being thick beucause I've read from #27 onwards twice now and although I can see the post that states that using preloaders in an external clip is flawed code, I don't see anything that desribes what you should do instead.Quote:
Originally Posted by whispers
If I have my main stage that loads external clips into a bounding box, surely the preloader needs to the first scene of every external clip? Otheriwse where would you put the preloader?
Someone please help? My preloader does work, but I'd rather it workes smoothly and does't just display at 60%+
Thanks in advnace
it explains in post #30:
there is alink in my footer called preloader help, it will explain to you how to (IMHO) correctly 'preload' external content (images, .swf's..etc)Quote:
..it is better to have your preloader in the MAIN .swf chekcing the content being loaded into whatever _level or movieClip you want.
basically (I think) it is a BAD idea to load content into _levels (unless a specific case warrants it)..always load into a target (ie; empty movieClip, refered to as containerClips mostly)... "I" also think it is a bad practice to put your 'preloader' in the file you are trying to preload. I also keep it in the main stage or on the containerClip that will be loading the external.swf
the reason your preloder is NOT working is because a certain percentage of yoru file has to be downloaded before ANY part of it can execute in flash...so basically before your 'preloader' code initiallizes and starts...60% of your file has already been downloaded.
keep the code in te MAIN.swf that is doing the calling/loading..the preloader is already checking as soon as 1 byte has been loaded.. (get it?) :)
also before you get 'busted'...your footer is too big:
just thought Id metion it before a mod says something.. :)Quote:
they must all total less than 300 pixels wide by 40 pixels high with a 15kb filesize maximum!
thanks for the advice (both for preloader & sig)
could you post the sample .fla that you mention in the post in your sig so I can see how the transitional layer/clip etc work?
here is a sample .fla:
http://www.dmstudios.net/preloaderCo...Component.html
does NOT have a transition in it..
here is a link to another thread (posted in original thread)
http://board.flashkit.com/board/show...ight=preloader
this has a big (site) .fla in it for for you to pick at: (including the transitions/preloader part as seen in this site: http://www.dmstudios.net/test_2/ )
http://board.flashkit.com/board/show...ight=preloader
My preloader doesn't start loading immediately, any thoughts?
http://beckyyazdan.com/ericansel/flashsite/
Thanks
is your preloader in the EXTERNAL.swf that you are trying to load???Quote:
Originally Posted by byaz
Well, you can say its a gramma error Whispers.
I figured..i was just busting your b@lls! ;)
u figured? what do you mean u figured? IM SERIOUSLY BAD @ GRAMMA SOMETIMES. Musta been lack of sleep
The preloader scripts are in the first four frames of the main .swf file. The background images appear and the welcome movie clip is attached in frame 5. I can send you the file if that would clarifyQuote:
Originally Posted by whispers
Wow thanks for the great thread!!!
ok I have a site with a preloader that has about 10 pages each is like 250 kbs.
I need to put preloaders in front of each page.
Can someone please tell me how to get the pages to load individually?
I can build the preloader but dont know how to make the pages load one at a time as opposed to all together. Im usuing flash 5 And a simple bar preloader.
PS
Please be specific as far as how my button commands work in relation to the preloaders and pages.
I know this is a basic question and would really appreciate any help.
MY LIFE DEPENDS ON IT!!
thank you.
what ARE you talking about?
Im sorry but I don't know ANYTHING about flash preloading HTML page/contents.
please be more whatstheword - oh yea precise with what you mean by 10 pages each is like 250kb.for they ARE loading individually if you meant pages with flash content which had a preloader in front..........
TONGXN
(not very helpful is this?)