Here's the scenario: I have a main flash movie that has some buttons and a container. When you click a button, a MovieclipLoader loads an external swf. Both files were originally created with Flash 7 and previously had very little actionscript. Mainly just some stops, gotos and code for a preloader. The swf being loaded previously had some static content and worked fine. Now I want it to load an xml file and fade in some text, but the actionscript tweens don't work. If I play the swf by itself, it works fine. However, when I load it into the main movie the tweens don't work. Right now, for testing purposes, I have the text load with _alpha = 100 and wait a couple frames before the tween script. When the tween script starts everything being tweened disappears. I figure it has something to do with the fact that they were Flash 7, and maybe something isn't being imported right? But even if I publish them as Flash 7, the tweens don't work. I've embeded all the fonts too. Even non-text (images, shapes, etc) won't tween. They just disappear. I've googled this and searched the forums, but I can't find anything. So, any suggestions would be greatly appreciated. Thanks, -Ryan
Just as information the Tween class uses the _root timeline to generate an onEnterFrame event to animate objects. If you mistakenly used the onEnterFrame on the _root to create another thing like a loader for example. That might be erasing the tweenings. Try using the onEnterFrame on an empty movie clip.
That's it! The person who originally created the files used an onEnterFrame for the progress bar. Thanks.
Don't see what you're looking for? Try a search.
|