Advertisement
Alonnso_888

MiniWindows

Oct 11th, 2018
1,001
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. /* Arrastar e soltar
  3. Torna a instância do símbolo especificada móvel com arrastar e soltar.
  4. */
  5.  
  6. janela.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
  7.  
  8. function fl_ClickToDrag(event:MouseEvent):void
  9. {
  10.     janela.startDrag();
  11. }
  12.  
  13. stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
  14.  
  15. function fl_ReleaseToDrop(event:MouseEvent):void
  16. {
  17.     janela.stopDrag();
  18. }
  19.  
  20. janela.bt_fechar.addEventListener(MouseEvent.CLICK,fechar_janela_0);
  21. function fechar_janela_0(event:MouseEvent){
  22.     janela.visible=false;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement