Hi, I had a problem associating with the movieClips (not swf) in the library. I dragged and put all these movieclips on the stage. As u could see from my attached file, all the actionscripts are written inside the movieclips itself individually and none on the stage. The actionscript written in the movieclip is actually to load my CSS file so that the movieclip can change with the css. However, when I first run the fla file as swf, the movieclip appeared initially without css (color change), but after a few sec, the css appeared, which resulted in the "jerky" action. I know this may sounds confusing but if u could take a look at my attached file and run it yourself, you'll see wad I mean. (And if u can't see it clearly on the first run, run it again but don close the window of the first run..) Anyone can help? Any help is greatly appreciated!
Thanks, but the attaachMovie doesn't seem to work, I did load the css file in the movieclip itself but it just wouldn't work...anyway, maybe your method will work for those with external libraries. But I truly appreciated your help though, thanks a lot!
Thanks leonthelion, I checked the attached zip file that u sent back to me, but can u tell me why it's better not to call onLoad from each mc? and the code u sent to me does help me in eradicating the appearing of the original movieclip but there's still a bit jerky in there. Maybe u can't see it cos this is an extract of the quiz that I wanted to make that has questions and answers appearing, but all will appear except the movieclips "A" "B" "C" "D". The movieclips will only appear after a few secs...if I run the fla file second time. Sorry if I confuse u, but u did help me in reducing the jerky effect, thanks pal!
Glad I could help a little, I'm still learning as I go
I was only thinking efficiency when stating calling the css file once may be better, as it is the exact same data being loaded each time and all 4 mcs are loading at the same time, but I appreciate having the code on each clip allows more flexibility too.
The key to both what I posted and what wvxvw posted is the onLoad property. If you want to stop other things from loading, you could put another variable inside each of these mcs called, for example "loadedA", "loadedB", etc... then on your main timeline or in each other component, use an onEnterFrame to check if loadedA, loadedB, loadedC and loadedD all equal true, then show everything and stop the onEnterFrame loop, or else keep looping until everything is fully loaded.