PDA

View Full Version : preloading components in Flash MX



brockus
September 17th, 2003, 09:07 AM
Just wondering if anyone out there knows how you can keep the components in Flash from loading on the first frame. I want to use a preloader but it is defeating the purpose when I insert a component on a later frame because it all loads in the first frame preventing my preloader from showing right away. I have tried changing the linkage on the component to not export on the first frame, but this didn't seem to help.

Any suggestions?

Thanks,
Brock

dizknee
September 17th, 2003, 09:12 AM
i've been wondering the saaaaaaaaame thing, and was about to search thru forums to find an answer

kode
September 17th, 2003, 09:45 AM
Just load the movie dynamically into another movie, and put the preloader in the parent of the movie clip into which you're loading the external movie. :P

dizknee
September 17th, 2003, 10:47 AM
dangit kode .. y do you have to make me feel stupid for telling me the crap i should have known, dangit to hell. hah

*edit, man, with the bleeps its just not as effective, lol

brockus
September 17th, 2003, 11:18 AM
Being the literal person that I am, I still can't invision the code that will need to be place and where. Can you send along some example code or an FLA?

Thanks....

kode
September 17th, 2003, 11:45 AM
The are two FLA's in the ZIP file:

component.fla:
Contains a preloader on the first frame, and a FScrollBar component on the second frame. If you test this movie, you will not see the preloader until the component has been fully loaded.

preloader.fla:
Contains a preloader and loads component.swf into an empty MovieClip on the first frame. If you test this movie, you'll see the preloader while component.swf is being loaded.

brockus
September 17th, 2003, 11:48 AM
Thanks....I'll give it a whirl when I get a chance later this afternoon.

kode
September 17th, 2003, 11:49 AM
Ok. Good luck! :beam: