Ho questa AS:
vorrei poter sfruttare una motion che ho fatto ad ogni pulsante che creo e quando terminano la motion voglio che stiano fermi.
per la motion uso "Copy motion AS Actionscript3" ma poi non so dove e come infilare il codice in quello che io ho qui sotto...


Codice PHP:
package fscommand.lib {
    
import flash.display.*;
    
import flash.text.*;
    
import flash.system.fscommand;
    
import flash.events.MouseEvent;
    
import fl.motion.Animator;
    
//import fscommand.lib.spiral;

    
public class intro extends Sprite {
        private var 
size:uint 100;

        public function 
intro() {
            
fscommand("fullscreen""true");
            
fscommand("allowscale""false");
            
draw();
            
        }

        private function 
clickHandler(event:MouseEvent):void {
            var 
strpath:String "hydropreloader.exe";
            
fscommand("exec"strpath);
        }

        private function 
draw():void {            
            var 
pulsante:MovieClip = new mcbutton();
            
pulsante.name "bottoneuno";
            
pulsante.buttonMode true;
            
addEventListener(MouseEvent.CLICKclickHandler);            
            var 
format1:TextFormat = new TextFormat();
            
format1.font="Lithos Pro Regular";
            
format1.size=14;
            
format1.color 0x0098FF;

            var 
label:TextField = new TextField();
            
label.defaultTextFormat format1;
            
label.text "Lancia il gioco";
            
label.autoSize "center";
            
label.y=80;
            
label.selectable false;
            
label.mouseEnabled false;
            
            
addChild(pulsante);
            
pulsante.addChild(label);
        }
    }