how to make a button control the tweet motion in flash CS6?
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: how to make a button control the tweet motion in flash CS6?

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    2

    Unhappy 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.

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    881
    Hi,

    Put your tween code here and we'll see what we can do, or better still attach the fla.

  3. #3
    Junior Member
    Join Date
    Nov 2012
    Posts
    2
    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

  4. #4
    Junior Member
    Join Date
    Nov 2012
    Posts
    5
    This blog is faster to work and i well do my best.....____________________E-Verify

  5. #5
    Senior Member
    Join Date
    Nov 2012
    Posts
    106
    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.

  6. #6
    Senior Member
    Join Date
    Nov 2012
    Posts
    106
    You will also need to give your button and Instance name of "buttonOne"

  7. #7
    Junior Member
    Join Date
    Nov 2012
    Posts
    5

    Smile

    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
  •  




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com