Section 1
//MainTimeline (thebiasphere_fla.MainTimeline)
package thebiasphere_fla {
import flash.events.*;
import flash.display.*;
public dynamic class MainTimeline extends MovieClip {
public var xvel:Number;
public var destinationy:Number;
public var destinationx:Number;
public var action:String;
public var yvel:Number;
public var thebiasphere:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function newvel(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return (((_arg2 - _arg1) / _arg3));
}
function frame1(){
thebiasphere = new Globe();
addChild(thebiasphere);
this.setChildIndex(thebiasphere, 0);
thebiasphere.x = (stage.stageWidth / 2);
thebiasphere.y = (stage.stageHeight / 2);
action = "down";
xvel = 0;
yvel = 0;
destinationx = (Math.random() * stage.stageWidth);
destinationy = (Math.random() * stage.stageHeight);
addEventListener(Event.ENTER_FRAME, movearound);
}
public function movearound(_arg1:Event):void{
if ((((thebiasphere.width < 200)) || ((thebiasphere.height < 105.6)))){
thebiasphere.width = 200;
thebiasphere.height = 105.6;
action = "up";
};
if ((((thebiasphere.width > 800)) || ((thebiasphere.height > 422.4)))){
thebiasphere.width = 800;
thebiasphere.height = 422.4;
action = "down";
};
if ((((thebiasphere.x > (destinationx - 5))) && ((thebiasphere.x < (destinationx + 5))))){
destinationx = (Math.random() * stage.stageWidth);
};
if ((((thebiasphere.y > (destinationy - 5))) && ((thebiasphere.y < (destinationy + 5))))){
destinationy = (Math.random() * stage.stageHeight);
};
switch (action){
case "up":
thebiasphere.width = (thebiasphere.width * 1.001);
thebiasphere.height = (thebiasphere.height * 1.001);
break;
case "down":
thebiasphere.width = (thebiasphere.width / 1.001);
thebiasphere.height = (thebiasphere.height / 1.001);
break;
};
xvel = newvel(thebiasphere.x, destinationx, 75);
yvel = newvel(thebiasphere.y, destinationy, 75);
thebiasphere.x = (thebiasphere.x + xvel);
thebiasphere.y = (thebiasphere.y + yvel);
}
}
}//package thebiasphere_fla
Section 2
//Globe (Globe)
package {
import flash.display.*;
public dynamic class Globe extends MovieClip {
}
}//package