Hey all. I have created an animation in flash, imported it and added a button. I have used the following code to activate the animation when the button is clicked - however the animation plays continuously rather than just once. Does anyone know how to run it just once? ..thanks one & all..
This is my code:
Code Actionscript:DecimalOdds.stop(); StartButton.addEventListener(MouseEvent.MOUSE_DOWN,StartClip); function StartClip(e:MouseEvent):void { DecimalOdds.play(); }




Bookmarks