PDA

View Full Version : preloading components


cobo
05-23-2003, 11:25 AM
hi there,
is there a way to preload components ?

when i use then they were loaded before any other content, similar to a sound file...

cobo

farafiro
05-26-2003, 11:47 AM
as my lack of lnowledge of this I'd recommend to put it in a seperate swf and load it into the main stage ;)

littleRichard
05-29-2003, 03:25 PM
we'll the site seems to be down but if it comes back up this link does a really good job of explaing things.

http://octaneinteractive.com/blog/displayDesc.asp?id=7


basically, you need to go through the library and un check "export in first frame" for any symbols that have a "linkage id". Of course if you do that you also have to physically place them somewhere in your movie or they won't load at all.

yorkeylady
05-31-2003, 04:14 AM
The #initclip and #endinitclip pragmas are used to mark a block of code for a component definition and registration. The code within the pragmas gets executed only one time during the playback of the whole movie, regardless of how many instances of the component you are using in the movie. The code within the pragmas is

executed before any code in the timeline of the movie clip.

This allows you to refer to class methods immediately when the clip is placed, overcoming a limitation of Flash 5 that required one to wait one keyframe before defined methods became available.

What version of flash do you have?