[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Section 1 (676 B)
//MainTimeline (nobodycame_fla.MainTimeline)
package nobodycame_fla {
import flash.events.*;
import flash.display.*;
public dynamic class MainTimeline extends MovieClip {
public var container:MovieClip;
public var nnn:Number;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function tick(_arg1:Event){
nnn = (nnn + 0.01);
if (nnn > 1){
nnn = (nnn - 1);
};
container.x = (20 + (Math.cos(((Math.PI * nnn) * 2)) * 20));
container.y = (20 + (Math.sin(((Math.PI * nnn) * 2)) * 20));
}
function frame1(){
stage.addEventListener(Event.ENTER_FRAME, tick);
nnn = 0;
tick(null);
}
}
}//package nobodycame_fla