clip como boton as3


/ Published in: ActionScript 3
Save to your folder(s)

para hacer un boton con un clip


Copy this code and paste it in your HTML
  1. import flash.events.MouseEvent;
  2.  
  3. boton.buttonMode = true;
  4.  
  5. boton.useHandCursor = true;
  6.  
  7.  
  8. boton.addEventListener(MouseEvent.CLICK, onClickHandler);
  9.  
  10.  
  11. function onClickHandler(myEvent:MouseEvent){
  12.  
  13. //accion
  14.  
  15. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.