petermaxo -> RE: Flash Q&A thread 3 (3/24/2007 18:08:57)
|
1. didn't help. 2. I am simplifying the code by putting it at the end. instead of: if(_global.ename == "lava slime"){ _root.attachMovie("lavaslimeattack", "enemy", 2,{_x:400,_y:200}) _root.enemy.play() }if(_global.ename == "fire slime"){ _root.attachMovie("fireslimeattack", "enemy", 2,{_x:400,_y:200}) _root.enemy.play() }... I only need: if(_global.ename == "lava slime"){ _root.attachMovie("lavaslimeattack", "enemy", 2,{_x:400,_y:200}) }if(_global.ename == "fire slime"){ _root.attachMovie("fireslimeattack", "enemy", 2,{_x:400,_y:200}) }... _root.enemy.play() Edit: I realized what was wrong- I finally realized why everyone was complaining about my use of onEnterFrame. I deleted it and it worked fine. The reason the movie clip wouldn't play was that it was being continueously loaded and never made it past the first frame.
|
|
|
|