dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: one button, two actions

Hybrid View

  1. #1

    one button, two actions

    i want the submenu MC to slide away when pressed and then go to the appropriate frame label.

    the submenu has many buttons on it. each button needs to do the same "slide away menu" bit, but then each button has to go to a different frame label.

    perhaps i am going at this the wrong way.

    can you help me?

  2. #2
    Senior Member
    Join Date
    Feb 2003
    Location
    Out There...
    Posts
    162
    Seems simple to me. Just put more that on action on the button.

    code:
    on (release) {
    movieclip.gotoAndPlay ("slideaway");
    _root.gotoAndPlay (5);
    }



    where "slideaway" would be the framelabel you use for the begining of your sliding animation and 5 can be whatever frame you want

  3. #3
    unfortunately, that doesn't seem to work. the playhead moves from the 1st frame label to the second faster than the 1st frame label has a chance to play the MC

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