dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: i want button 'on click' to look different

  1. #1
    Member
    Join Date
    Jun 2000
    Posts
    82
    i have a button that when clicked I would like to look different. i have done this by using a mc in one of the keyframes of the button, but isn't there another way?

    how about after the button is clicked then the timeline goes to another frame where you have added changes to the button.

    i know this has to be so simple.

    thanks.

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Posts
    505
    put your button inside an mc, make a new blank keyframe on frame 2 of the mc, put a stop action on both frames. now duplicate your button, drag it onto the second frame and use the info panel to line it up exactly in the same spot. now edit the second button so that it looks like you want, on the first button in addition to whatever actions you want the button to perform, insert this code:

    on (release) {
    play ();
    }

    insert the same code for the button on frame 2. this should do what ya want, but if you have more than one button that you want to change(like for a menu) and you only want one to change at a time, it gets a bit more complicated, if thats you case, reply and i'll detail the steps you would take for that.

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