Section 1
//Arms_8 (Lanturn_fla.Arms_8)
package Lanturn_fla {
import flash.display.*;
public dynamic class Arms_8 extends MovieClip {
public var arms:MovieClip;
public function Arms_8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Lanturn_fla
Section 2
//Belly2_13 (Lanturn_fla.Belly2_13)
package Lanturn_fla {
import flash.display.*;
public dynamic class Belly2_13 extends MovieClip {
public function Belly2_13(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Lanturn_fla
Section 3
//Eyes_10 (Lanturn_fla.Eyes_10)
package Lanturn_fla {
import flash.display.*;
public dynamic class Eyes_10 extends MovieClip {
public function Eyes_10(){
addFrameScript(0, frame1, 7, frame8, 61, frame62, 89, frame90);
}
function frame90(){
stop();
}
function frame1(){
stop();
}
function frame8(){
stop();
}
function frame62(){
stop();
}
}
}//package Lanturn_fla
Section 4
//Head_7 (Lanturn_fla.Head_7)
package Lanturn_fla {
import flash.display.*;
public dynamic class Head_7 extends MovieClip {
public var frontlantern:MovieClip;
public var eyes:MovieClip;
public var arms:MovieClip;
}
}//package Lanturn_fla
Section 5
//Lantern_11 (Lanturn_fla.Lantern_11)
package Lanturn_fla {
import flash.display.*;
public dynamic class Lantern_11 extends MovieClip {
public var frontlight:MovieClip;
public function Lantern_11(){
addFrameScript(0, frame1, 102, frame103, 153, frame154, 190, frame191);
}
function frame154(){
stop();
}
function frame1(){
stop();
}
function frame103(){
stop();
}
function frame191(){
stop();
}
}
}//package Lanturn_fla
Section 6
//MainTimeline (Lanturn_fla.MainTimeline)
package Lanturn_fla {
import flash.events.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var count:int;
public var star1:MovieClip;
public var star3:MovieClip;
public var star2:MovieClip;
public var tail:MovieClip;
public var belly:MovieClip;
public var head:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 28, frame29, 54, frame55, 102, frame103, 158, frame159, 172, frame173, 204, frame205, 290, frame291);
}
public function shake(_arg1:MouseEvent):void{
belly.gotoAndPlay("first");
head.arms.gotoAndPlay("first");
}
function frame159(){
head.frontlantern.gotoAndPlay("second");
}
public function loader(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = loaderInfo.bytesTotal;
_local3 = loaderInfo.bytesLoaded;
if (_local3 == _local2){
removeEventListener(Event.ENTER_FRAME, loader);
play();
};
}
function frame205(){
head.frontlantern.gotoAndPlay("third");
head.eyes.gotoAndPlay("third");
}
function frame291(){
gotoAndPlay("first");
}
function frame1(){
stop();
addEventListener(Event.ENTER_FRAME, loader);
count = 0;
star1.visible = false;
star2.visible = false;
star3.visible = false;
starRotation(star1.btnStar1, star1, 0.3);
starRotation(star2.btnStar2, star2, -0.5);
starRotation(star3.btnStar3, star3, 0.15);
}
function frame103(){
if (count == 1){
gotoAndPlay("second");
} else {
gotoAndPlay("first");
};
count = ((count + 1) % 2);
}
function frame29(){
if (count == 1){
head.eyes.gotoAndPlay("first");
};
}
function frame2(){
head.frontlantern.gotoAndPlay("first");
belly.addEventListener(MouseEvent.CLICK, shake);
star1.visible = true;
star2.visible = true;
star3.visible = true;
}
function frame173(){
head.eyes.gotoAndPlay("second");
}
function frame55(){
if (count == 0){
head.eyes.gotoAndPlay("first");
};
}
public function starRotation(_arg1:MovieClip, _arg2:MovieClip, _arg3:Number):void{
var c:Number;
var cChange:Number;
var rotator:Function;
var initAccel:Function;
var initDecel:Function;
var accel:Function;
var decel:Function;
var btn = _arg1;
var star = _arg2;
var speed = _arg3;
rotator = function (_arg1:Event):void{
star.rotation = c;
c = ((c + cChange) % 360);
};
initAccel = function (_arg1:MouseEvent):void{
star.addEventListener(Event.ENTER_FRAME, accel);
star.removeEventListener(Event.ENTER_FRAME, decel);
};
initDecel = function (_arg1:MouseEvent):void{
star.addEventListener(Event.ENTER_FRAME, decel);
star.removeEventListener(Event.ENTER_FRAME, accel);
};
accel = function (_arg1:Event):void{
if (Math.abs(cChange) < (20 * Math.abs(speed))){
cChange = (cChange + (speed / 2));
};
};
decel = function (_arg1:Event):void{
if (Math.abs(cChange) > Math.abs(speed)){
cChange = (cChange - (speed / 2));
};
};
c = 0;
cChange = speed;
star.addEventListener(Event.ENTER_FRAME, rotator);
star.addEventListener(Event.ENTER_FRAME, decel);
btn.addEventListener(MouseEvent.MOUSE_OVER, initAccel);
btn.addEventListener(MouseEvent.MOUSE_OUT, initDecel);
}
}
}//package Lanturn_fla
Section 7
//Star1_1 (Lanturn_fla.Star1_1)
package Lanturn_fla {
import flash.display.*;
public dynamic class Star1_1 extends MovieClip {
public var btnStar1:MovieClip;
}
}//package Lanturn_fla
Section 8
//Star2_3 (Lanturn_fla.Star2_3)
package Lanturn_fla {
import flash.display.*;
public dynamic class Star2_3 extends MovieClip {
public var btnStar2:MovieClip;
}
}//package Lanturn_fla
Section 9
//Star3_5 (Lanturn_fla.Star3_5)
package Lanturn_fla {
import flash.display.*;
public dynamic class Star3_5 extends MovieClip {
public var btnStar3:MovieClip;
}
}//package Lanturn_fla