We Recommend

Essential ActionScript 3.0 Essential ActionScript 3.0
The book focuses on the core language and object-oriented programming, but also adds a deep look at the centerpiece of Flash Player's new API: display programming. Enjoy hundreds of brand new pages covering exciting new language features, such as the DOM-based event architecture, E4X, and namespaces--all brimming with real-world sample code.


Posted By

zeman on 07/14/08


Tagged

button rollover


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

tron


Button Rollover


Published in: ActionScript 3 


  1. button.addEventListener(MouseEvent.MOUSE_OVER, manageMouseOver);
  2. button.addEventListener(MouseEvent.MOUSE_OUT, manageMouseOut);
  3. function manageMouseOver(e:MouseEvent):void{
  4. //your over code here
  5. }
  6. function manageMouseOut(e:MouseEvent):void{
  7. //your out code here
  8. }

Report this snippet 

You need to login to post a comment.