Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move to 'Hit' state of button via ActionScript?

Status
Not open for further replies.

starblood

Technical User
Feb 28, 2001
63
GB
Is is possible to move frames in a button symbol with ActionScript rather than rolling over the button itself?

For example could you achieve the rollover ("Over") state on a button by moving your mouse over another unassociated graphic?

Code snippets would be appreciated if it is possible.
 
No. You would need to use Movieclip instances with frame labels instead of button instances.

Within the MC you can add a button with an action like this:

Code:
on(press){
   _root.theOtherClip.gotoAndPlay("frameLabel");
}

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Cheers pixl8r, your help is much appreciated!

What I was trying to do isn't that crucial, but would've finshed the project nicely. If I get chance I will give your solution a go.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top