A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Animated buttons

  1. #1

    Smile

    How do you make buttons which peform some task? For example, the text grows larger, or the background flashes, etc. Any help would be appreciated.

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    148
    you would have to assign the action or task that you wanted to take place to a button. For example, you could make a movie clip that zooms the text from 20% to 100% (add the stop action at the beginning and at the end) and give this button an instance name of textzoom. Then you could place this on your main stage and assign an action to the button that says on
    mousevent (press)
    Tell target "textzoom"
    "play"
    end on
    This would begin showing the movie clip that you created and your text would zoom in. Buttons really don't perform the task, but tell something else what do do.

    There are some good tutorials that you would benefit from. Simply search the tutorial section of Flashkit for "Buttons"

    Hope that helped

  3. #3
    HUH? pea3698's Avatar
    Join Date
    Mar 2001
    Location
    Greenville SC
    Posts
    1,771
    Another way to do this would be to create a movie clip with the animation you want. Put a stop action in the last frame. Then create your button and insert your movie clip into the over state or down state, which ever.

    good flashing

  4. #4
    Senior Member
    Join Date
    Jun 2001
    Posts
    148
    [QUOTE]Originally posted by pea3698
    [B]Another way to do this would be to create a movie clip with the animation you want. Put a stop action in the last frame. Then create your button and insert your movie clip into the over state or down state, which ever.

    I'm always trying to make things harder than they really are. Thanks Pea3698, sounded better than my long winded explanation!

  5. #5
    HUH? pea3698's Avatar
    Join Date
    Mar 2001
    Location
    Greenville SC
    Posts
    1,771
    [i]
    I'm always trying to make things harder than they really are. Thanks Pea3698, sounded better than my long winded explanation! [/B]
    Ha no problem. Actually your way is a really good way to know as well. It comes in handy for more complex buttons and whatnot. keep helping out man im seeing you pop up on alot of the threads.

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