Ill try to explain my problem as best as possible.
I wanted to create a button that followed the users mouse.
Heres what i did…
Scene1 contains a movie clip with the following action script.
onClipEvent (load) {
_x = 0;
_y = 0;
speed = 45;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
Since with a movie, you do not have access too the On Mouse Event actionscript available, i go into the movie (edit) delete its contents and insert a new button INSIDE the movie. This results in a button that follows my mouse instead of just a simple movie clip.
The problem i am having is i can not get action scripts to launch from the button. The On Mouse Event wont do anything. All i want the button to do is
on (release) {
gotoAndPlay (“Scene2”, 1);
}
But when i click the button nothing happens. I am fairly certain that flash is seeing this moving object as a button because in IE, the cursor changes from an arrow to a poiting finger and i am able to edit the button’s up, over, down, and hit frames which respond correctly in the movie.
I am VERY confused by this. All i can think is maybe i can not execute actionscripts from a button within an instance of a movie.
Any suggestions? hope that made sense!
Feel free to download my source at http://www.infernalarts.com/index2.fla
Keith