Section 1
//MainTimeline (rotoboobler_fla.MainTimeline)
package rotoboobler_fla {
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public dynamic class MainTimeline extends MovieClip {
public var g:Sprite;
public var w:TextField;
public var mc:Sprite;
public var gBD:BitmapData;
public function MainTimeline(){
addFrameScript(0, frame1);
}
function frame1(){
stage.align = "TL";
stage.scaleMode = "noScale";
g = new Sprite();
gBD = new BitmapData(stage.stageWidth, stage.stageHeight, false, 0);
w = new TextField();
w.autoSize = "left";
mc = new Sprite();
mc.alpha = 0.9;
addChild(g);
addChild(mc);
addEventListener("enterFrame", u);
}
public function u(_arg1){
var _local2:Number;
var _local3:Number;
var _local4:BitmapData;
_local2 = Math.sin((getTimer() * 0.0003));
_local3 = Math.cos((getTimer() * 0.0003));
w.htmlText = (("<font face='_sans' size='80'> " + getTimer()) + "</font>");
_local4 = new BitmapData(w.width, w.height, false, 0);
_local4.draw(w);
g.graphics.clear();
g.graphics.beginGradientFill("radial", [0xFFFFFF, 0], [1, 1], [0, 0xFF], new Matrix(((_local2 * 0.5) + 0.5), 0, 0, ((_local2 * 0.5) + 0.5), (stage.stageWidth * 0.5), (stage.stageHeight * 0.5)), "reflect", "linearRGB");
g.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
gBD.draw(g);
mc.graphics.clear();
mc.graphics.beginBitmapFill(_local4, new Matrix(((_local3 * _local2) + 1), _local2, -(_local2), ((_local3 * _local2) + 1), 0, 0), true, false);
mc.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
mc.filters = [new DisplacementMapFilter(gBD, null, 1, 1, (_local3 * 500), (_local3 * 500), "ignore", 0, 0)];
}
}
}//package rotoboobler_fla