how to make a button control the tweet motion in flash CS6?
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!
innlevering - 22.11.2012.fla
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
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width