Thank you for the response. I did find the problem with my code, You are right the mousey was wrong. It should have been mouseY also I had e. wrong in the function "bulletgo" I had (e.Event) and it should have been (e:Event). At least I think that's correct. In any event it's working now.
Corrected code...
This works.Code:addEventListener (Event.ENTER_FRAME, bulletgo); function bulletgo (e:Event):void{ bullet_mc.x = mouseX; bullet_mc.y = mouseY; }
I remember advise from my early experiences with Flash and the book I learned from. the author often noted that incorrect syntax would "fail silently". That tip usually kept me from stressing out too much when my code didn't work.




Reply With Quote