This content has been marked as final. Show 4 replies
I think this will be the last time I answer your question. And the answer is always the same! This actually has been resolved for a long time now!
You need a preloader. If Frame 3 isn't loaded and the code runs then there is NO WAY for it to send the player to Frame 3! It is as simple as that. There is no other answer.
If you put the code on frame 3 then of course it works because the code doesn't execute before frame 3 is loaded. Again very simple.
Why is it you ask and ask and refuse to listen to the correct answer that is given to you?
i apologize sir/miss.
i must of interpreted what you said differently.
i will make a preloader and see how things perform. Its just the thing isnt heavy in graphics and yet unable to load third frame which surprises me...thats all
but will try your method and i only asked unless there is another method of doing it...as you may agree two different people can do the same thing two different ways....
thank you for understanding and will try a preloader
Well RothRock it worked i used a flash cs3 component UILOADER and it worked...i guess to use it for the rest of my app. the question is as graphics get more intense will i need to use a better preloader or this should do the job.
Great. Glad that worked out for you. As for the futures. I'm not sure. Pretty much if it checks to see if the whole thing is loaded and that is what you want then that will work out just fine.
However here are some things to think about.
Most people who are developing their own stuff don't use the prebuilt flash components. The components do exactly what they do pretty well, but if you want to do something custom or a little different they just are a pain. Also some of them do have some very esoteric bugs or gotchas that just can make you crazy!
Another problem down the road is if you start using items in your library and you export for Actionscript in the first frame. This puts the assets in the first frame of your swf. (You can't see them on stage but they are there!) All the content of the first frame must be loaded before the first frame of code can be executed. So this can cause the user to wait quite a bit before they actually see your preloader.
The Flash components do this and put about a minimum of 80K or so in your first frame. So just be aware of that.
So I would encourage you to build your own preloader code. Here is a basic set up that I might use to accomplish what you are doing. First make sure to delete the component from your library. Even if you don't use them, just having them in the library means they will be exported in the first frame and bloat your swf file. Next move your different back grounds to frames 2 to 4 and leave a blank key frame in frame 1. Then add the code bellow to frame 1.
This doesn't give any feedback to the user. But that is easy enough to add. You could just put a simple little movie clip on frame one that spins and blinks the word loading. Or you could get more complex and use the percent value to scale a clip or feed a dynamic text box.
Good luck and post back if you have any other ideas or questions about preloading.