A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Adding animation to a button's different postions

  1. #1
    Junior Member
    Join Date
    Nov 2000
    Posts
    7
    I was able to get my rollover to work. But I want some animation to kick off when the button is pressed or clicked on. I modified the instance of the down position for it to jump to the frame and play but no luck. Any clues

    THX

  2. #2
    Flash maniac katiyuki's Avatar
    Join Date
    Sep 2000
    Location
    San Francisco
    Posts
    382

    Post

    on the instance of a button, you can add the actionscript onPress or onRelease which you can use to start up an animation. dont put actionscripts in the buttons timeline (the one with the normal, hit, etc. elements). put it on the instance of the button on the main timeline or wherever you put this button.

  3. #3
    Junior Member
    Join Date
    Aug 2000
    Posts
    24
    hey

    What do you want to do?

    An "on press" animation in the button, or an animation to rock off somewhere alse on the screen when button is pressed?

    Animation inside button:
    Go to the down Frame in the button symbol, mark everything in this frame, press F8 to create a new MC-Symbol. Now just edit the new mc and create your animation inside this symbol, this should do it.

    Animation somewhere else:
    Tell target, pretty easy and very powerful. You need 3 things: a button to start, a MC with the animation, and an instance name assigned to the mc (Symbolproperties). You can now start, stop, whatever, your animation with your button and the tell target action.

    Knut
    http://www.kindercampus.de

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