A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: A question about buttons

  1. #1
    Junior Member
    Join Date
    Mar 2001
    Posts
    3
    I am new to flash 4. I know the basics to it. I tried to make a birthday card for my friend using flash. In the begining, it had a birthday cake with candles on the top. Each candle was lit. I wanted the person to be able to click the candles and have them dissapear. I made the flames into buttons but I am not sure how I would go about doing that. I figured you would have to do something with action scripting, but im not sure. If you have any advise or a link that i could see a tutorial, I would appreciate some help. Thanks!

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Seoul, South Korea
    Posts
    1,310
    Hi there Michael,
    What i suggest you do is create a button for each flame.
    In the button you need to place this script:

    on (release) {
    gotoAndPlay (5);
    play ();
    }

    On Layer 1, Frame 1 you need to make a Keyframe. On this frame have the candle and flame. You also need to put a Stop action on this Frame. Next goto Frame 5(or anywhere except frame 1) and create another Keyframe. In this frame copy your candle and flame but this time remove the flame. Again, put a Stop action in this frame.

    And that's it. Repeat the process to make more candles and flames.
    If you need further help email me,
    micmac

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