A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: movie clip in OVER state of button = question

  1. #1
    Junior Member
    Join Date
    Oct 2000
    Posts
    10
    hi there
    i have a button, in the over state i have a movie clip
    for example lets say this is a spinning ball
    when u move over the button the ball starts spinning.
    when u move away from the button the ball goes back to its original position.
    how do i get it so that it stops exactly where it was when u moved your mouse away.
    i hope ive explained this clearly
    thankyou in advance

    steven

    http://www.flashstorm.co.uk (coming soon)

  2. #2
    Welcome to flavour country
    Join Date
    Sep 2000
    Posts
    662
    One way to do it would be to make the spinning ball a seperate movie clip, give it an instance name and place it on the stage where you want it. Put a stop action in the first frame of your spinning ball mc. Then, place your button on the stage, double click it and add the following code:
    Code:
    On(rollover)
    BeginTellTarget("/whatever your mc is named")
    Play
    EndTellTarget
    EndOn
    On(rollout)
    BeginTellTarget("/whatever your mc is named")
    Stop
    EndTellTarget
    EndOn
    Hope this helps.

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