Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prdt.buttonMode = true;
- prdt.addEventListener(MouseEvent.CLICK, clica);
- prdt.addEventListener(MouseEvent.MOUSE_OVER, over);
- prdt.addEventListener(MouseEvent.MOUSE_OUT, out);
- var myURL:String = new String("produtos.php");
- var myRequest:URLRequest = new URLRequest(myURL);
- var snd:Sound = new Sound();
- snd.load(new URLRequest("btn.mp3"));
- function clica(e:MouseEvent):void{
- navigateToURL(myRequest, "all");
- }
- function over(e:MouseEvent):void{
- gotoAndPlay(2);
- snd.play();
- }
- function out(e:MouseEvent):void{
- gotoAndPlay(7);
- }
Add Comment
Please, Sign In to add comment