Section 1
//cursorTunnel (cursorTunnel)
package {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class cursorTunnel extends MovieClip {
var counter:int;// = 0
var currentRotation:int;// = 0
var newTunnel:tunnel;
public function cursorTunnel(){
counter = 0;
currentRotation = 0;
newTunnel = new tunnel();
super();
init();
}
private function init():void{
addEventListener(Event.ENTER_FRAME, always);
}
private function always(_arg1):void{
if (counter == 0){
Mouse.hide();
};
if ((counter % 2) == 0){
addChild(newTunnel);
newTunnel = new tunnel();
};
currentRotation = (currentRotation + 5);
counter++;
}
}
}//package
Section 2
//tunnel (tunnel)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
public class tunnel extends MovieClip {
var counter:int;// = 0
var thisColor:ColorTransform;
var hasBeenRemoved:Boolean;// = false
public function tunnel(){
counter = 0;
thisColor = new ColorTransform();
hasBeenRemoved = false;
super();
init();
}
private function init():void{
this.height = 1;
this.width = 1;
addEventListener(Event.ENTER_FRAME, always);
}
private function always(_arg1):void{
if (MovieClip(parent) != null){
if (counter == 0){
resetValues();
counter++;
};
rotate();
increaseSize();
};
}
private function rotate():void{
this.rotation = (this.rotation - 10);
}
private function increaseSize():void{
var _local1:int;
_local1 = this.rotation;
this.rotation = 0;
this.height = (this.height * 3);
this.width = (this.width * 1.5);
handleCleanUp();
if (!hasBeenRemoved){
this.rotation = _local1;
};
}
private function resetValues():void{
this.rotation = MovieClip(parent).currentRotation;
this.x = ((MovieClip(parent).mouseX + (Math.random() * 7)) - 3.5);
this.y = ((MovieClip(parent).mouseY + (Math.random() * 7)) - 3.5);
thisColor = new ColorTransform(1, 1, 1, 1, ((Math.random() * 510) - 0xFF), ((Math.random() * 510) - 0xFF), ((Math.random() * 510) - 0xFF));
this.transform.colorTransform = thisColor;
}
private function handleCleanUp():void{
if ((((this.height >= (MovieClip(parent).stage.stageHeight * 100))) && ((this.width >= (MovieClip(parent).stage.stageWidth * 100))))){
cleanUp();
};
}
private function cleanUp():void{
hasBeenRemoved = true;
removeEventListener(Event.ENTER_FRAME, always);
MovieClip(parent).removeChild(this);
}
}
}//package