Guest User

Untitled

a guest
Oct 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. prdt.buttonMode = true;
  2. prdt.addEventListener(MouseEvent.CLICK, clica);
  3. prdt.addEventListener(MouseEvent.MOUSE_OVER, over);
  4. prdt.addEventListener(MouseEvent.MOUSE_OUT, out);
  5. var myURL:String = new String("produtos.php");
  6. var myRequest:URLRequest = new URLRequest(myURL);
  7. var snd:Sound = new Sound();
  8. snd.load(new URLRequest("btn.mp3"));
  9.  
  10.  
  11. function clica(e:MouseEvent):void{
  12.  
  13. navigateToURL(myRequest, "all");
  14.  
  15. }
  16.  
  17. function over(e:MouseEvent):void{
  18. gotoAndPlay(2);
  19. snd.play();
  20.  
  21. }
  22.  
  23. function out(e:MouseEvent):void{
  24. gotoAndPlay(7);
  25. }
Add Comment
Please, Sign In to add comment