A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: button actionscript help./

  1. #1
    Member
    Join Date
    Mar 2006
    Posts
    48

    button actionscript help./

    hi guys, Im making a movie clip who is going to act like a button.
    how can I make a scritp that checks the positions of the cursor and after several seconds if is not over it suppose to, sends back a movie clip to frame one?

    let me say the person moves quickly the cursor outside a rollover area and flash does not recognize the movement cuz was too fast. How can I put the movie clip back to the original place if that happens after flash check it where the cursor is and if its outside the rollover o rollout area starts from the beginning?

  2. #2
    Banned deepakflash's Avatar
    Join Date
    Aug 2007
    Location
    [Object not found]
    Posts
    1,160
    try to increase you frame rate speed,may be it helps you in being able to trigger all the actions made by the mouse when the user MISSES the movieClip when rolling out.
    Because it may be the reason that you have slow frame rate, when the user is too quick moving the mouse, the movieClip misses to trigger the RollOut Action..

    BUT its always BEST if you use movieClip.hitTest. This makes sure the mouse gets hit(with your MC).

  3. #3
    Member
    Join Date
    Mar 2006
    Posts
    48
    thank you man! my frame speed is 35. I will try the hittest thingy you told me. I dont know how but I gonna give it a try. I you can give me a hint of how the hitTest can be used here... I will appreciate that.. im kinda noobie is AS.

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