View Full Version : can a preloader cause an animation not to work?
lunatic
June 8th, 2003, 12:17 AM
Okay, let's see if I can make this comprehensible. I have a template with an xml dynamic menu. When a button is pushed two movie clips are loaded: 1) a main clip, which has a Kirupa designed preloader taking up the first two frames and 2) a movie clip that contains "controls" (interactivity or animation) for the main clip.
All worked great until I added the preloader. Now both movie clips load but the controls no longer act correctly. Do I have to tell the controls to jump to the third frame of the main clip or something because the preloader takes up the first two frames?
Does any of this make sense?
lostinbeta
June 8th, 2003, 01:07 AM
Do you have a stop() action to keep your frames from looping repeatedly?
lunatic
June 8th, 2003, 12:09 PM
I didn't, no. But I just added one (to the third frame of every layer?) and same thing. Is the stop(); action only supposed to be on some layers or all of them?
lostinbeta
June 8th, 2003, 02:36 PM
The stop action is just supposed to be on 1 frame on 1 layer. It will stop the timeline as soon as that frame is hit. The timeline being all layers.
Can you post your file?
lunatic
June 8th, 2003, 03:08 PM
Posted at:
www.humboldt.edu/~mgk9/template.zip
It's kind of big, sorry. The template.fla is the main one (obviously) and the others work off that. I only posted one sample of what I'm doing. Open the template then on the menu click on "Physical" and then "Earthquakes". You'll see "earthquakesC" in the folder - that is the "controls" for interactivity. The preloader is on the "earthquakes" swf.
I tried on a different version removing all the stop's except one and it still didn't work . . .
Thanks for any help!
lostinbeta
June 8th, 2003, 06:08 PM
Ok, the problem was within your checkbox code. I don't see how it was possible for the preloader to effect this since your checkbox coding was way off when it came to targeting and writing it out.
Here is the updated files (earthquakeC.fla is the only one I edited to make it work) for you to check out.
www.lostinbeta.com/kirupa/fixedTemplate.zip
lunatic
June 9th, 2003, 01:02 AM
what are you, magic or something? It works!:P
Thanks for simplifying and cleaning up my code. That was some of the first action scripting I've ever done so it definitely needed to be "modernized".
You are awesome!:thumb:
lostinbeta
June 9th, 2003, 01:08 AM
LOL, nope sorry, no puffy magic dragon fingers here my friend, just a pinch of AS knowledge, a dash of fixer-uppers, a smidgen of trace() and voila I was able to locate and fix the problems of the script :)
Glad everything works now :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.