petermaxo
Member
|
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.
< Message edited by petermaxo -- 3/25/2007 13:50:39 >
|