So, i am trying to make a button that when i press on it, the motion tween that i made will start. I made the motion tween but i can't get how to make a button control this procedure. Any help plz? a lil noob here.
Printable View
So, i am trying to make a button that when i press on it, the motion tween that i made will start. I made the motion tween but i can't get how to make a button control this procedure. Any help plz? a lil noob here.
Hi,
Put your tween code here and we'll see what we can do, or better still attach the fla.
There you go, it's in the attachments. So i want the blue button to start moving only when i press on it. Thank you so much! :)
Attachment 73901
This blog is faster to work and i well do my best.....____________________E-Verify :zombie::):confused::eek:
WRONG CODE:
stop();
buttonOne.onRelease = function(){
gotoAndStop(25); // this should just say play(); instead of gotoAndStop(25);
};
CORRECT CODE:
stop();
buttonOne.onRelease = function(){
play();
};
The original code is telling it to jump to frame 25 and then stop the playhead.
You will need to add a stop(); action on your last frame 45 for it to work correctly.
You will also need to give your button and Instance name of "buttonOne"
So the best thing in this is SHARE SHARE the best knowledge we had.. :)
Employment eligibility verifications