A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Button Actions

  1. #1
    Bogan
    Join Date
    Jun 2005
    Location
    Sydney, Aus
    Posts
    5

    Button Actions

    hey whats up everyone, im new to flash and making a school presentation..any who i wanted to have buttons in it, and when pressed a picture comes up, or the button morphs into the picture..something along the lines of that, what is a simple way of doing this..(i have no knowledge of javascript, and flash help isnt all that fancy..!)
    thanks ?

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    One way is to make a movie clip. Put a stop in frame 1. On a new layer, add the picture in frame 2. Right click it and Convert to Movie Clip. Click on it and in properties, use the Color dropdown to select Alpha and set it to 1%. Make a keyframe about 10 frames down. Select the movie clip and set the alpha to 99%. Create a motion tween. Put a stop in the last frame.

    Drag this clip to the stage and give it an instance name of pic. On the button, add this;

    on(release){
    _root.pic.play();
    }

  3. #3
    Bogan
    Join Date
    Jun 2005
    Location
    Sydney, Aus
    Posts
    5
    thanks alot man, worked well..appreciate it

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