Section 1
//FilterActuator (com.eclecticdesignstudio.motion.actuators.FilterActuator)
package com.eclecticdesignstudio.motion.actuators {
import flash.display.*;
import flash.filters.*;
public class FilterActuator extends SimpleActuator {
protected var filterClass:Class;
protected var filter:BitmapFilter;
protected var filterIndex:int;// = -1
public function FilterActuator(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:BitmapFilter;
super(_arg1, _arg2, _arg3);
if ((_arg3.filter is Class)){
filterClass = _arg3.filter;
for each (_local4 in (_arg1 as DisplayObject).filters) {
if ((_local4 is filterClass)){
this.filter = _local4;
};
};
} else {
filterIndex = _arg3.filter;
this.filter = (_arg1 as DisplayObject).filters[filterIndex];
};
}
override protected function initialize():void{
var _local1:PropertyDetails;
var _local2:Number;
var _local3:String;
for (_local3 in properties) {
if (_local3 != "filter"){
_local2 = Number(filter[_local3]);
_local1 = new PropertyDetails(filter, _local3, _local2, Number((properties[_local3] - _local2)));
propertyDetails.push(_local1);
};
};
detailsLength = propertyDetails.length;
initialized = true;
}
override function update(_arg1:Number):void{
var _local3:uint;
super.update(_arg1);
var _local2:Array = (target as DisplayObject).filters;
if (filterIndex > -1){
_local2[properties.filter] = filter;
} else {
_local3 = 0;
while (_local3 < _local2.length) {
if ((_local2[_local3] is filterClass)){
_local2[_local3] = filter;
};
_local3++;
};
};
target.filters = _local2;
}
override function apply():void{
var _local1:String;
var _local2:Array;
for (_local1 in properties) {
if (_local1 != "filter"){
filter[_local1] = properties[_local1];
};
};
_local2 = target.filters;
_local2[properties.filter] = filter;
target.filters = _local2;
}
}
}//package com.eclecticdesignstudio.motion.actuators
Section 2
//GenericActuator (com.eclecticdesignstudio.motion.actuators.GenericActuator)
package com.eclecticdesignstudio.motion.actuators {
import com.eclecticdesignstudio.motion.easing.*;
import com.eclecticdesignstudio.motion.*;
public class GenericActuator {
var autoVisible:Boolean;// = true
var onUpdate:Function;
var delay:Number;// = 0
var snapping:Boolean;// = false
var target:Object;
var duration:Number;
var repeat:int;// = 0
var onCompleteParams:Array;
var smartRotation:Boolean;// = false
var reverse:Boolean;// = false
var ease:IEasing;
var properties:Object;
var onUpdateParams:Array;
var onComplete:Function;
var special:Boolean;// = false
var reflect:Boolean;// = false
public function GenericActuator(_arg1:Object, _arg2:Number, _arg3:Object){
this.target = _arg1;
this.properties = _arg3;
this.duration = _arg2;
ease = Actuate.defaultEase;
}
protected function complete(_arg1:Boolean=true):void{
if (_arg1){
change();
if (onComplete != null){
onComplete.apply(null, onCompleteParams);
};
};
Actuate.unload(this);
}
function pause():void{
}
public function onComplete(_arg1:Function, ... _args):GenericActuator{
onComplete = _arg1;
onCompleteParams = _args;
if (duration == 0){
complete();
};
return (this);
}
public function smartRotation(_arg1:Boolean=true):GenericActuator{
smartRotation = _arg1;
special = true;
return (this);
}
public function reflect(_arg1:Boolean=true):GenericActuator{
reflect = true;
special = true;
return (this);
}
public function onUpdate(_arg1:Function, ... _args):GenericActuator{
onUpdate = _arg1;
onUpdateParams = _args;
return (this);
}
public function autoVisible(_arg1:Boolean=true):GenericActuator{
autoVisible = _arg1;
return (this);
}
function move():void{
}
function stop(_arg1:Object, _arg2:Boolean, _arg3:Boolean):void{
}
public function snapping(_arg1:Boolean=true):GenericActuator{
snapping = _arg1;
special = true;
return (this);
}
public function ease(_arg1:IEasing):GenericActuator{
ease = _arg1;
return (this);
}
public function delay(_arg1:Number):GenericActuator{
delay = _arg1;
return (this);
}
public function repeat(_arg1:int=-1):GenericActuator{
repeat = _arg1;
return (this);
}
function resume():void{
}
public function reverse(_arg1:Boolean=true):GenericActuator{
reverse = _arg1;
special = true;
return (this);
}
function apply():void{
var _local1:String;
for (_local1 in properties) {
target[_local1] = properties[_local1];
};
}
protected function change():void{
if (onUpdate != null){
onUpdate.apply(null, onUpdateParams);
};
}
}
}//package com.eclecticdesignstudio.motion.actuators
Section 3
//MethodActuator (com.eclecticdesignstudio.motion.actuators.MethodActuator)
package com.eclecticdesignstudio.motion.actuators {
public class MethodActuator extends SimpleActuator {
protected var tweenProperties:Object;
public function MethodActuator(_arg1:Object, _arg2:Number, _arg3:Object){
tweenProperties = new Object();
super(_arg1, _arg2, _arg3);
if (!_arg3.start){
_arg3.start = new Array();
};
if (!_arg3.end){
_arg3.end = _arg3.start;
};
}
override protected function initialize():void{
var _local1:PropertyDetails;
var _local2:String;
var _local3:Object;
var _local4:uint;
while (_local4 < (properties.start as Array).length) {
_local2 = ("param" + _local4);
_local3 = properties.start[_local4];
tweenProperties[_local2] = _local3;
if ((_local3 is Number)){
_local1 = new PropertyDetails(tweenProperties, _local2, (_local3 as Number), (Number(properties.end[_local4]) - (_local3 as Number)));
propertyDetails.push(_local1);
};
_local4++;
};
detailsLength = propertyDetails.length;
initialized = true;
}
override function update(_arg1:Number):void{
super.update(_arg1);
var _local2:Array = new Array();
var _local3:uint;
while (_local3 < properties.start.length) {
_local2.push(tweenProperties[("param" + _local3)]);
_local3++;
};
(target as Function).apply(null, _local2);
}
override function apply():void{
(target as Function).apply(null, properties.end);
}
}
}//package com.eclecticdesignstudio.motion.actuators
Section 4
//MotionInternal (com.eclecticdesignstudio.motion.actuators.MotionInternal)
package com.eclecticdesignstudio.motion.actuators {
public namespace MotionInternal;
}//package com.eclecticdesignstudio.motion.actuators
Section 5
//MotionPathActuator (com.eclecticdesignstudio.motion.actuators.MotionPathActuator)
package com.eclecticdesignstudio.motion.actuators {
import com.eclecticdesignstudio.motion.*;
public class MotionPathActuator extends SimpleActuator {
public function MotionPathActuator(_arg1:Object, _arg2:Number, _arg3:Object){
super(_arg1, _arg2, _arg3);
}
override protected function initialize():void{
var _local1:PropertyPathDetails;
var _local2:MotionPath;
var _local3:String;
for (_local3 in properties) {
_local2 = (properties[_local3] as MotionPath);
if (_local2){
_local2.start = Number(target[_local3]);
_local1 = new PropertyPathDetails(target, _local3, _local2);
propertyDetails.push(_local1);
};
};
detailsLength = propertyDetails.length;
initialized = true;
}
override function update(_arg1:Number):void{
var _local2:PropertyPathDetails;
var _local3:Number;
var _local4:uint;
var _local5:Number;
var _local6:Number;
if (!paused){
_local5 = ((_arg1 - timeOffset) / duration);
if (_local5 > 1){
_local5 = 1;
};
if (!initialized){
initialize();
};
if (!special){
_local3 = ease.calculate(_local5);
_local4 = 0;
while (_local4 < detailsLength) {
_local2 = propertyDetails[_local4];
_local2.target[_local2.propertyName] = _local2.path.calculate(_local3);
_local4++;
};
} else {
if (!reverse){
_local3 = ease.calculate(_local5);
} else {
_local3 = ease.calculate((1 - _local5));
};
_local4 = 0;
while (_local4 < detailsLength) {
_local2 = propertyDetails[_local4];
if (!snapping){
_local2.target[_local2.propertyName] = _local2.path.calculate(_local3);
} else {
_local2.target[_local2.propertyName] = Math.round(_local2.path.calculate(_local3));
};
_local4++;
};
};
if (_local5 === 1){
if (repeat === 0){
active = false;
if (((toggleVisible) && ((target.alpha === 0)))){
target.visible = false;
};
complete(true);
return;
} else {
if (reflect){
reverse = !(reverse);
};
startTime = _arg1;
timeOffset = (startTime + delay);
if (repeat > 0){
repeat--;
};
};
};
if (sendChange){
change();
};
};
}
override function apply():void{
var _local1:String;
for (_local1 in properties) {
target[_local1] = (properties[_local1] as MotionPath).end;
};
}
}
}//package com.eclecticdesignstudio.motion.actuators
import com.eclecticdesignstudio.motion.*;
class PropertyPathDetails {
public var propertyName:String;
public var target:Object;
public var path:MotionPath;
private function PropertyPathDetails(_arg1:Object, _arg2:String, _arg3:MotionPath){
this.target = _arg1;
this.propertyName = _arg2;
this.path = _arg3;
}
}
Section 6
//PropertyDetails (com.eclecticdesignstudio.motion.actuators.PropertyDetails)
package com.eclecticdesignstudio.motion.actuators {
public class PropertyDetails {
public var propertyName:String;
public var target:Object;
public var start:Number;
public var change:Number;
public function PropertyDetails(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{
this.target = _arg1;
this.propertyName = _arg2;
this.start = _arg3;
this.change = _arg4;
}
}
}//package com.eclecticdesignstudio.motion.actuators
Section 7
//SimpleActuator (com.eclecticdesignstudio.motion.actuators.SimpleActuator)
package com.eclecticdesignstudio.motion.actuators {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
public class SimpleActuator extends GenericActuator {
var timeOffset:Number;
protected var active:Boolean;// = true
protected var detailsLength:uint;
protected var startTime:Number;
protected var initialized:Boolean;
protected var cacheVisible:Boolean;
protected var sendChange:Boolean;// = false
protected var pauseTime:Number;
protected var propertyDetails:Array;
protected var paused:Boolean;
protected var setVisible:Boolean;
protected var toggleVisible:Boolean;
protected static var actuatorsLength:uint = 0;
protected static var shape:Shape;
protected static var actuators:Array = new Array();
public function SimpleActuator(_arg1:Object, _arg2:Number, _arg3:Object){
propertyDetails = new Array();
startTime = (getTimer() / 1000);
super(_arg1, _arg2, _arg3);
if (!shape){
shape = new Shape();
shape.addEventListener(Event.ENTER_FRAME, shape_onEnterFrame);
};
}
override function stop(_arg1:Object, _arg2:Boolean, _arg3:Boolean):void{
var _local4:String;
if (active){
for (_local4 in _arg1) {
if ((_local4 in this.properties)){
active = false;
if (_arg2){
apply();
};
this.complete(_arg3);
return;
};
};
if (!_arg1){
active = false;
if (_arg2){
apply();
};
this.complete(_arg3);
return;
};
};
}
override public function autoVisible(_arg1:Boolean=true):GenericActuator{
autoVisible = _arg1;
if (!_arg1){
toggleVisible = false;
if (setVisible){
target.visible = cacheVisible;
};
};
return (this);
}
function update(_arg1:Number):void{
var _local2:PropertyDetails;
var _local3:Number;
var _local4:uint;
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (!paused){
_local5 = ((_arg1 - timeOffset) / duration);
if (_local5 > 1){
_local5 = 1;
};
if (!initialized){
initialize();
};
if (!special){
_local3 = ease.calculate(_local5);
_local4 = 0;
while (_local4 < detailsLength) {
_local2 = propertyDetails[_local4];
_local2.target[_local2.propertyName] = (_local2.start + (_local2.change * _local3));
_local4++;
};
} else {
if (!reverse){
_local3 = ease.calculate(_local5);
} else {
_local3 = ease.calculate((1 - _local5));
};
_local4 = 0;
while (_local4 < detailsLength) {
_local2 = propertyDetails[_local4];
if (((smartRotation) && ((((((((_local2.propertyName == "rotation")) || ((_local2.propertyName == "rotationX")))) || ((_local2.propertyName == "rotationY")))) || ((_local2.propertyName == "rotationZ")))))){
_local7 = (_local2.change % 360);
if (_local7 > 180){
_local7 = (_local7 - 360);
} else {
if (_local7 < -180){
_local7 = (_local7 + 360);
};
};
_local6 = (_local2.start + (_local7 * _local3));
} else {
_local6 = (_local2.start + (_local2.change * _local3));
};
if (!snapping){
_local2.target[_local2.propertyName] = _local6;
} else {
_local2.target[_local2.propertyName] = Math.round(_local6);
};
_local4++;
};
};
if (_local5 === 1){
if (repeat === 0){
active = false;
if (((toggleVisible) && ((target.alpha === 0)))){
target.visible = false;
};
complete(true);
return;
} else {
if (reflect){
reverse = !(reverse);
};
startTime = _arg1;
timeOffset = (startTime + delay);
if (repeat > 0){
repeat--;
};
};
};
if (sendChange){
change();
};
};
}
override public function delay(_arg1:Number):GenericActuator{
delay = _arg1;
timeOffset = (startTime + _arg1);
return (this);
}
override function move():void{
toggleVisible = ((("alpha" in properties)) && ((target is DisplayObject)));
if (((((toggleVisible) && (!(target.visible)))) && (!((properties.alpha == 0))))){
setVisible = true;
cacheVisible = target.visible;
target.visible = true;
};
timeOffset = startTime;
actuators.push(this);
actuatorsLength++;
}
protected function initialize():void{
var _local1:PropertyDetails;
var _local2:Number;
var _local3:String;
for (_local3 in properties) {
_local2 = Number(target[_local3]);
_local1 = new PropertyDetails(target, _local3, _local2, Number((properties[_local3] - _local2)));
propertyDetails.push(_local1);
};
detailsLength = propertyDetails.length;
initialized = true;
}
override public function onUpdate(_arg1:Function, ... _args):GenericActuator{
onUpdate = _arg1;
onUpdateParams = _args;
sendChange = true;
return (this);
}
override function resume():void{
if (paused){
paused = false;
timeOffset = (timeOffset + ((getTimer() - pauseTime) / 1000));
};
}
override function pause():void{
paused = true;
pauseTime = getTimer();
}
protected static function shape_onEnterFrame(_arg1:Event):void{
var _local3:SimpleActuator;
var _local2:Number = (getTimer() / 1000);
var _local4:uint;
while (_local4 < actuatorsLength) {
_local3 = actuators[_local4];
if (_local3.active){
if (_local2 > _local3.timeOffset){
_local3.update(_local2);
};
} else {
actuators.splice(_local4, 1);
actuatorsLength--;
_local4--;
};
_local4++;
};
}
}
}//package com.eclecticdesignstudio.motion.actuators
Section 8
//TransformActuator (com.eclecticdesignstudio.motion.actuators.TransformActuator)
package com.eclecticdesignstudio.motion.actuators {
import flash.display.*;
import flash.geom.*;
import flash.media.*;
public class TransformActuator extends SimpleActuator {
protected var endColorTransform:ColorTransform;
protected var tweenSoundTransform:SoundTransform;
protected var tweenColorTransform:ColorTransform;
protected var endSoundTransform:SoundTransform;
public function TransformActuator(_arg1:Object, _arg2:Number, _arg3:Object){
super(_arg1, _arg2, _arg3);
}
protected function initializeSound():void{
var _local1:SoundTransform = target.soundTransform;
endSoundTransform = target.soundTransform;
tweenSoundTransform = new SoundTransform();
if (("soundVolume" in properties)){
endSoundTransform.volume = properties.soundVolume;
propertyDetails.push(new PropertyDetails(tweenSoundTransform, "volume", _local1.volume, (endSoundTransform.volume - _local1.volume)));
};
if (("soundPan" in properties)){
endSoundTransform.pan = properties.soundPan;
propertyDetails.push(new PropertyDetails(tweenSoundTransform, "pan", _local1.pan, (endSoundTransform.pan - _local1.pan)));
};
}
override function update(_arg1:Number):void{
super.update(_arg1);
if (endColorTransform){
target.transform.colorTransform = tweenColorTransform;
};
if (endSoundTransform){
target.soundTransform = tweenSoundTransform;
};
}
override function apply():void{
initialize();
if (endColorTransform){
target.transform.colorTransform = endColorTransform;
};
if (endSoundTransform){
target.soundTransform = endSoundTransform;
};
}
protected function initializeColor():void{
var _local5:PropertyDetails;
var _local6:Number;
var _local7:String;
var _local8:Number;
var _local9:Number;
endColorTransform = new ColorTransform();
var _local1:Number = properties.colorValue;
var _local2:Number = properties.colorStrength;
if (_local2 < 1){
if (_local2 < 0.5){
_local8 = 1;
_local9 = (_local2 * 2);
} else {
_local8 = (1 - ((_local2 - 0.5) * 2));
_local9 = 1;
};
endColorTransform.redMultiplier = _local8;
endColorTransform.greenMultiplier = _local8;
endColorTransform.blueMultiplier = _local8;
endColorTransform.redOffset = (_local9 * ((_local1 >> 16) & 0xFF));
endColorTransform.greenOffset = (_local9 * ((_local1 >> 8) & 0xFF));
endColorTransform.blueOffset = (_local9 * (_local1 & 0xFF));
} else {
endColorTransform.color = _local1;
};
var _local3:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "redOffset", "greenOffset", "blueOffset"];
if (("colorAlpha" in properties)){
endColorTransform.alphaMultiplier = properties.colorAlpha;
_local3.push("alphaMultiplier");
} else {
endColorTransform.alphaMultiplier = target.alpha;
};
var _local4:ColorTransform = target.transform.colorTransform;
tweenColorTransform = new ColorTransform();
for each (_local7 in _local3) {
_local6 = Number(_local4[_local7]);
_local5 = new PropertyDetails(tweenColorTransform, _local7, _local6, Number((endColorTransform[_local7] - _local6)));
propertyDetails.push(_local5);
};
}
override protected function initialize():void{
if (((("colorValue" in properties)) && ((target is DisplayObject)))){
initializeColor();
};
if (((("soundVolume" in properties)) || (("soundPan" in properties)))){
initializeSound();
};
detailsLength = propertyDetails.length;
initialized = true;
}
}
}//package com.eclecticdesignstudio.motion.actuators
Section 9
//ExpoEaseIn (com.eclecticdesignstudio.motion.easing.equations.ExpoEaseIn)
package com.eclecticdesignstudio.motion.easing.equations {
import com.eclecticdesignstudio.motion.easing.*;
public final class ExpoEaseIn implements IEasing {
public function ease(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg1 == 0)) ? _arg2 : ((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2));
}
public function calculate(_arg1:Number):Number{
return (((_arg1 == 0)) ? 0 : Math.pow(2, (10 * (_arg1 - 1))));
}
}
}//package com.eclecticdesignstudio.motion.easing.equations
Section 10
//ExpoEaseInOut (com.eclecticdesignstudio.motion.easing.equations.ExpoEaseInOut)
package com.eclecticdesignstudio.motion.easing.equations {
import com.eclecticdesignstudio.motion.easing.*;
public final class ExpoEaseInOut implements IEasing {
public function ease(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return ((_arg2 + _arg3));
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2));
};
--_arg1;
return ((((_arg3 / 2) * (2 - Math.pow(2, (-10 * _arg1)))) + _arg2));
}
public function calculate(_arg1:Number):Number{
if (_arg1 == 0){
return (0);
};
if (_arg1 == 1){
return (1);
};
_arg1 = (_arg1 / (1 / 2));
if (_arg1 < 1){
return ((0.5 * Math.pow(2, (10 * (_arg1 - 1)))));
};
--_arg1;
return ((0.5 * (2 - Math.pow(2, (-10 * _arg1)))));
}
}
}//package com.eclecticdesignstudio.motion.easing.equations
Section 11
//ExpoEaseOut (com.eclecticdesignstudio.motion.easing.equations.ExpoEaseOut)
package com.eclecticdesignstudio.motion.easing.equations {
import com.eclecticdesignstudio.motion.easing.*;
public final class ExpoEaseOut implements IEasing {
public function ease(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg1 == _arg4)) ? (_arg2 + _arg3) : ((_arg3 * (1 - Math.pow(2, ((-10 * _arg1) / _arg4)))) + _arg2));
}
public function calculate(_arg1:Number):Number{
return (((_arg1 == 1)) ? 1 : (1 - Math.pow(2, (-10 * _arg1))));
}
}
}//package com.eclecticdesignstudio.motion.easing.equations
Section 12
//QuadEaseIn (com.eclecticdesignstudio.motion.easing.equations.QuadEaseIn)
package com.eclecticdesignstudio.motion.easing.equations {
import com.eclecticdesignstudio.motion.easing.*;
public final class QuadEaseIn implements IEasing {
public function ease(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public function calculate(_arg1:Number):Number{
return ((_arg1 * _arg1));
}
}
}//package com.eclecticdesignstudio.motion.easing.equations
Section 13
//QuadEaseInOut (com.eclecticdesignstudio.motion.easing.equations.QuadEaseInOut)
package com.eclecticdesignstudio.motion.easing.equations {
import com.eclecticdesignstudio.motion.easing.*;
public final class QuadEaseInOut implements IEasing {
public function ease(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
public function calculate(_arg1:Number):Number{
_arg1 = (_arg1 * 2);
if (_arg1 < 1){
return ((((1 / 2) * _arg1) * _arg1));
};
--_arg1;
return (((-1 / 2) * ((_arg1 * (_arg1 - 2)) - 1)));
}
}
}//package com.eclecticdesignstudio.motion.easing.equations
Section 14
//QuadEaseOut (com.eclecticdesignstudio.motion.easing.equations.QuadEaseOut)
package com.eclecticdesignstudio.motion.easing.equations {
import com.eclecticdesignstudio.motion.easing.*;
public final class QuadEaseOut implements IEasing {
public function ease(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public function calculate(_arg1:Number):Number{
return ((-(_arg1) * (_arg1 - 2)));
}
}
}//package com.eclecticdesignstudio.motion.easing.equations
Section 15
//Expo (com.eclecticdesignstudio.motion.easing.Expo)
package com.eclecticdesignstudio.motion.easing {
import com.eclecticdesignstudio.motion.easing.equations.*;
public final class Expo {
public static function get easeOut():IEasing{
return (new ExpoEaseOut());
}
public static function get easeIn():IEasing{
return (new ExpoEaseIn());
}
public static function get easeInOut():IEasing{
return (new ExpoEaseInOut());
}
}
}//package com.eclecticdesignstudio.motion.easing
Section 16
//IEasing (com.eclecticdesignstudio.motion.easing.IEasing)
package com.eclecticdesignstudio.motion.easing {
public interface IEasing {
function ease(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number;
function calculate(_arg1:Number):Number;
}
}//package com.eclecticdesignstudio.motion.easing
Section 17
//Quad (com.eclecticdesignstudio.motion.easing.Quad)
package com.eclecticdesignstudio.motion.easing {
import com.eclecticdesignstudio.motion.easing.equations.*;
public final class Quad {
public static function get easeOut():IEasing{
return (new QuadEaseOut());
}
public static function get easeIn():IEasing{
return (new QuadEaseIn());
}
public static function get easeInOut():IEasing{
return (new QuadEaseInOut());
}
}
}//package com.eclecticdesignstudio.motion.easing
Section 18
//Actuate (com.eclecticdesignstudio.motion.Actuate)
package com.eclecticdesignstudio.motion {
import com.eclecticdesignstudio.motion.actuators.*;
import flash.display.*;
import flash.utils.*;
import com.eclecticdesignstudio.motion.easing.*;
public class Actuate {
private static var targetLibraries:Dictionary = new Dictionary(true);
public static var defaultEase:IEasing = Expo.easeOut;
public static var defaultActuator:Class = SimpleActuator;
private static function getLibrary(_arg1:Object):Dictionary{
if (!targetLibraries[_arg1]){
targetLibraries[_arg1] = new Dictionary(true);
};
return (targetLibraries[_arg1]);
}
public static function reset():void{
var _local1:GenericActuator;
var _local2:Dictionary;
for each (_local2 in targetLibraries) {
for each (_local1 in _local2) {
_local1.stop(null, false, false);
};
};
targetLibraries = new Dictionary(true);
}
public static function effects(_arg1:DisplayObject, _arg2:Number, _arg3:Boolean=true):EffectsOptions{
return (new EffectsOptions(_arg1, _arg2, _arg3));
}
public static function tween(_arg1:Object, _arg2:Number, _arg3:Object, _arg4:Boolean=true, _arg5:Class=null):GenericActuator{
var _local6:Class;
var _local7:GenericActuator;
var _local8:Dictionary;
var _local9:GenericActuator;
if (_arg1){
if (_arg2 > 0){
_local6 = ((_arg5) || (defaultActuator));
_local7 = new _local6(_arg1, _arg2, _arg3);
_local8 = getLibrary(_local7.target);
if (_arg4){
for each (_local9 in _local8) {
_local9.stop(_local7.properties, false, false);
};
};
_local8[_local7] = _local7;
_local7.move();
return (_local7);
} else {
return (apply(_arg1, _arg3, _arg5));
};
};
return (null);
}
public static function timer(_arg1:Number, _arg2:Class=null):GenericActuator{
return (tween(new TweenTimer(0), _arg1, new TweenTimer(1), false, _arg2));
}
public static function resume(... _args):void{
var _local2:GenericActuator;
var _local3:Dictionary;
var _local4:Object;
if (_args.length > 0){
for each (_local4 in _args) {
_local3 = getLibrary(_local4);
for each (_local2 in _local3) {
_local2.resume();
};
};
} else {
for each (_local3 in targetLibraries) {
for each (_local2 in _local3) {
_local2.resume();
};
};
};
}
public static function apply(_arg1:Object, _arg2:Object, _arg3:Class=null):GenericActuator{
stop(_arg1, _arg2);
var _local4:Class = ((_arg3) || (defaultActuator));
var _local5:GenericActuator = new _local4(_arg1, 0, _arg2);
_local5.apply();
return (_local5);
}
public static function stop(_arg1:Object, _arg2:Object=null, _arg3:Boolean=false):void{
var _local4:GenericActuator;
var _local5:Dictionary;
var _local6:Object;
var _local7:String;
if (_arg1){
_local5 = getLibrary(_arg1);
if ((_arg2 is String)){
_local6 = new Object();
_local6[_arg2] = null;
_arg2 = _local6;
} else {
if ((_arg2 is Array)){
_local6 = new Object();
for each (_local7 in _arg2) {
_local6[_local7] = null;
};
_arg2 = _local6;
};
};
for each (_local4 in _local5) {
_local4.stop(_arg2, _arg3, true);
};
};
}
public static function transform(_arg1:Object, _arg2:Number=0, _arg3:Boolean=true):TransformOptions{
return (new TransformOptions(_arg1, _arg2, _arg3));
}
public static function pause(... _args):void{
var _local2:GenericActuator;
var _local3:Dictionary;
var _local4:Object;
if (_args.length > 0){
for each (_local4 in _args) {
_local3 = getLibrary(_local4);
for each (_local2 in _local3) {
_local2.pause();
};
};
} else {
for each (_local3 in targetLibraries) {
for each (_local2 in _local3) {
_local2.pause();
};
};
};
}
public static function update(_arg1:Function, _arg2:Number, _arg3:Array=null, _arg4:Array=null, _arg5:Boolean=true):GenericActuator{
var _local6:Object = {start:_arg3, end:_arg4};
return (tween(_arg1, _arg2, _local6, _arg5, MethodActuator));
}
public static function motionPath(_arg1:Object, _arg2:Number, _arg3:Object, _arg4:Boolean=true):GenericActuator{
return (tween(_arg1, _arg2, _arg3, _arg4, MotionPathActuator));
}
static function unload(_arg1:GenericActuator):void{
var _local2:Dictionary = getLibrary(_arg1.target);
delete _local2[_arg1];
}
}
}//package com.eclecticdesignstudio.motion
import com.eclecticdesignstudio.motion.actuators.*;
import flash.display.*;
class EffectsOptions {
protected var target:DisplayObject;
protected var duration:Number;
protected var overwrite:Boolean;
private function EffectsOptions(_arg1:DisplayObject, _arg2:Number, _arg3:Boolean){
this.target = _arg1;
this.duration = _arg2;
this.overwrite = _arg3;
}
public function filter(_arg1, _arg2:Object):GenericActuator{
_arg2.filter = _arg1;
return (Actuate.tween(target, duration, _arg2, overwrite, FilterActuator));
}
}
class TransformOptions {
protected var target:Object;
protected var duration:Number;
protected var overwrite:Boolean;
private function TransformOptions(_arg1:Object, _arg2:Number, _arg3:Boolean){
this.target = _arg1;
this.duration = _arg2;
this.overwrite = _arg3;
}
public function color(_arg1:Number=0, _arg2:Number=1, _arg3=null):GenericActuator{
var _local4:Object = {colorValue:_arg1, colorStrength:_arg2};
if ((_arg3 is Number)){
_local4.colorAlpha = _arg3;
};
return (Actuate.tween(target, duration, _local4, overwrite, TransformActuator));
}
public function sound(_arg1=null, _arg2=null):GenericActuator{
var _local3:Object = new Object();
if ((_arg1 is Number)){
_local3.soundVolume = _arg1;
};
if ((_arg2 is Number)){
_local3.soundPan = _arg2;
};
return (Actuate.tween(target, duration, _local3, overwrite, TransformActuator));
}
}
class TweenTimer {
public var progress:Number;
private function TweenTimer(_arg1:Number):void{
this.progress = _arg1;
}
}
Section 19
//MotionPath (com.eclecticdesignstudio.motion.MotionPath)
package com.eclecticdesignstudio.motion {
public class MotionPath {
public var start:Number;
protected var totalStrength:Number;
protected var paths:Array;
public function MotionPath(){
paths = new Array();
start = 0;
totalStrength = 0;
}
protected function addPath(_arg1:BezierPath):void{
paths.push(_arg1);
totalStrength = (totalStrength + _arg1.strength);
}
function calculate(_arg1:Number):Number{
var _local2:Number;
var _local3:Number;
var _local4:BezierPath;
if (paths.length === 1){
return ((paths[0] as Object).calculate(start, _arg1));
};
_local2 = (_arg1 * totalStrength);
_local3 = start;
for each (_local4 in paths) {
if (_local2 > _local4.strength){
_local2 = (_local2 - _local4.strength);
_local3 = _local4.end;
} else {
return (_local4.calculate(_local3, (_local2 / _local4.strength)));
};
};
return (0);
}
public function line(_arg1:Number, _arg2:Number=1):MotionPath{
addPath(new LinearPath(_arg1, _arg2));
return (this);
}
function get end():Number{
var _local1:BezierPath;
if (paths.length > 0){
_local1 = paths[(paths.length - 1)];
return (_local1.end);
};
return (NaN);
}
public function bezier(_arg1:Number, _arg2:Number, _arg3:Number=1):MotionPath{
addPath(new BezierPath(_arg1, _arg2, _arg3));
return (this);
}
public static function line(_arg1:Number, _arg2:Number=1):MotionPath{
return (new (MotionPath).line(_arg1, _arg2));
}
public static function bezier(_arg1:Number, _arg2:Number, _arg3:Number=1):MotionPath{
return (new (MotionPath).bezier(_arg1, _arg2, _arg3));
}
}
}//package com.eclecticdesignstudio.motion
class LinearPath extends BezierPath {
private function LinearPath(_arg1:Number, _arg2:Number){
super(_arg1, 0, _arg2);
}
override public function calculate(_arg1:Number, _arg2:Number):Number{
return ((_arg1 + (_arg2 * (end - _arg1))));
}
}
class BezierPath {
public var strength:Number;
public var end:Number;
public var control:Number;
private function BezierPath(_arg1:Number, _arg2:Number, _arg3:Number){
this.end = _arg1;
this.control = _arg2;
this.strength = _arg3;
}
public function calculate(_arg1:Number, _arg2:Number):Number{
return ((((((1 - _arg2) * (1 - _arg2)) * _arg1) + (((2 * (1 - _arg2)) * _arg2) * control)) + ((_arg2 * _arg2) * end)));
}
}
Section 20
//MainTimeline (Little_fla.MainTimeline)
package Little_fla {
import flash.display.*;
import flash.utils.*;
import com.eclecticdesignstudio.motion.easing.*;
import com.eclecticdesignstudio.motion.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var leg:MovieClip;
public var bgmSC:SoundChannel;
public var scoreNum0:MovieClip;
public var scoreNum1:MovieClip;
public var scoreNum2:MovieClip;
public var scoreNum3:MovieClip;
public var scoreNum4:MovieClip;
public var goalNum4:MovieClip;
public var goalNum0:MovieClip;
public var goalNum1:MovieClip;
public var goalNum2:MovieClip;
public var goalNum3:MovieClip;
public var wudiArrowArray:Array;
public var canShoot:Boolean;
public var losePage:MovieClip;
public var Prel_mc:MovieClip;
public var canShootCount:int;
public var onTargetArrowArray:Array;
public var sc:SoundChannel;
public var timer:Timer;
public var menu:SimpleButton;
public var foodCount:int;
public var levelNum:MovieClip;
public var g:Number;
public var levelTimeArray:Array;
public var url:String;
public var menuButton:SimpleButton;
public var btnUrl:String;
public var hostingdomain:String;
public var level:int;
public var real_domain:Array;
public var playButton:SimpleButton;
public var winPage:MovieClip;
public var congratulationPage:MovieClip;
public var target:MovieClip;
public var score:int;
public var levelFoodNumArray:Array;
public var body:MovieClip;
public var pausePage:MovieClip;
public var gametitle:String;
public var pauseBlack:MovieClip;
public var domain_parts:Array;
public var nowArrowNum:int;
public var musicButton:MovieClip;
public var flashCurrentDomainName:String;
public var logoButton:SimpleButton;
public var moreGamesButton:SimpleButton;
public var flyingArrowArray:Array;
public var x2:Boolean;
public var localDomainLC:LocalConnection;
public var arrowLayer:MovieClip;
public var flyingFoodArray:Array;
public var time:int;
public var powerBar:MovieClip;
public var pauseButton:SimpleButton;
public var howToPlayButton:SimpleButton;
public var angle:Number;
public var outArrowArray:Array;
public var timeNum0:MovieClip;
public var timeNum1:MovieClip;
public var wudi:Boolean;
public var levelGoalArray:Array;
public var outFoodArray:Array;
public var targetDirection:int;
public var choose1:MovieClip;
public var choose2:MovieClip;
public var choose3:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function targetMove(_arg1:Event):void{
var _local2:Arrow;
var _local3:MovieClip;
var _local4:Arrow;
var _local5:Arrow;
target.y = (target.y - targetDirection);
if (target.y <= 185){
target.y = 185;
targetDirection = (targetDirection * -1);
} else {
if (target.y >= 415){
target.y = 415;
targetDirection = (targetDirection * -1);
};
};
if (!canShoot){
canShootCount++;
if (canShootCount >= 12){
canShootCount = 0;
canShoot = true;
};
};
for each (_local2 in flyingArrowArray) {
if (_local2.speedX > 20){
_local2.speedX = 20;
};
_local2.x = (_local2.x + _local2.speedX);
_local2.y = (_local2.y + _local2.speedY);
_local2.speedY = (_local2.speedY + g);
_local2.rotation = (_local2.rotation + 1);
if (_local2.speedY > 0){
_local2.rotation = (_local2.rotation + (_local2.speedY / 7.5));
};
if (_local2.rotation > 65){
_local2.rotation = 65;
};
if (target.hitTestArea.hitTestPoint((_local2.x - 5), (_local2.y - 1), true)){
onTargetArrowArray.push(_local2);
if (musicButton.currentFrame == 1){
new HitSound().play();
};
} else {
if (_local2.y > (stage.stageHeight * 2)){
outArrowArray.push(_local2);
};
};
};
removeOnTargetArrowsFromFlyingArray();
onTargetArrowArray = [];
outArrowArray = [];
for each (_local3 in flyingFoodArray) {
if (_local3.currentFrame == 1){
_local3.y = (_local3.y - _local3.speed);
for each (_local4 in flyingArrowArray) {
if (_local3.hitTestObject(_local4.arrowHead)){
_local4.foodHitten = true;
foodHitted(_local3);
};
};
for each (_local5 in wudiArrowArray) {
if (_local3.hitTestObject(_local5.arrowHead)){
_local5.foodHitten = true;
foodHitted(_local3);
};
};
if ((((((outFoodArray.indexOf(_local3) < 0)) && ((_local3.y < 0)))) || (_local3.hitten))){
outFoodArray.push(_local3);
};
};
};
removeOutFoods();
outFoodArray = [];
}
public function startTimer():void{
time = levelTimeArray[level];
timer.repeatCount = time;
showTimer();
timer.addEventListener(TimerEvent.TIMER, showTimer);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, lose);
timer.start();
}
public function gotoURL(_arg1:MouseEvent){
navigateToURL(new URLRequest(url), "_blank");
}
public function lose(_arg1:TimerEvent){
trace("lose");
body.face.gotoAndStop("jusang");
body.visible = (leg.visible = false);
powerBar.visible = false;
removeAllListeners();
losePage.playAgainButton.addEventListener(MouseEvent.CLICK, playAgain);
setGoalNumber(losePage);
setScoreNumber(losePage);
losePage.scaleX = (losePage.scaleY = 3);
Actuate.tween(losePage, 1, {scaleX:1, scaleY:1});
losePage.visible = true;
bgmSC.stop();
if (musicButton.currentFrame == 1){
new LoseSound().play();
};
}
public function removeListeners(){
playButton.removeEventListener(MouseEvent.CLICK, playGame);
howToPlayButton.removeEventListener(MouseEvent.CLICK, showHowToPlay);
}
public function MoreGames_fnc(_arg1:MouseEvent):void{
var _local2 = (("http://www.onlyfungames.com/?utm_source=" + flashCurrentDomainName) + "&utm_medium=game&utm_campaign=Onlyfungames - Little Angel Archery Contest");
navigateToURL(new URLRequest(_local2));
}
public function initGame(){
var _local1:Arrow;
var _local2:Arrow;
var _local3:int;
var _local4:int;
var _local5:Arrow;
var _local6:Arrow;
var _local7:MovieClip;
var _local8:MovieClip;
var _local9:DisplayObject;
pausePage.y = -550;
body.visible = (leg.visible = true);
bgmSC.stop();
if (musicButton.currentFrame == 1){
bgmSC = new BGM().play(0, 9999999);
};
for each (_local1 in flyingArrowArray) {
if (arrowLayer.contains(_local1)){
arrowLayer.removeChild(_local1);
};
};
for each (_local2 in onTargetArrowArray) {
if (target.contains(_local2)){
target.removeChild(_local2);
};
};
_local3 = target.numChildren;
_local4 = (_local3 - 1);
while (_local4 >= 0) {
_local9 = target.getChildAt(_local4);
if ((_local9 is Arrow)){
target.removeChild(_local9);
};
_local4--;
};
for each (_local5 in outArrowArray) {
if (arrowLayer.contains(_local5)){
arrowLayer.removeChild(_local5);
};
};
for each (_local6 in wudiArrowArray) {
if (arrowLayer.contains(_local6)){
arrowLayer.removeChild(_local6);
};
};
for each (_local7 in flyingFoodArray) {
if (arrowLayer.contains(_local7)){
arrowLayer.removeChild(_local7);
};
};
for each (_local8 in outFoodArray) {
if (arrowLayer.contains(_local8)){
arrowLayer.removeChild(_local8);
};
};
flyingArrowArray = [];
onTargetArrowArray = [];
outArrowArray = [];
flyingFoodArray = [];
outFoodArray = [];
wudiArrowArray = [];
target.y = 260;
nowArrowNum = 1;
targetDirection = -1;
canShoot = true;
wudi = false;
x2 = false;
canShootCount = 0;
score = 0;
foodCount = 0;
choose1.gotoAndStop(2);
choose2.gotoAndStop(1);
choose3.gotoAndStop(1);
body.bodyArrow.gotoAndStop(1);
body.face.gotoAndStop("gaoxing");
pauseBlack.visible = false;
powerBar.visible = false;
winPage.visible = false;
losePage.visible = false;
congratulationPage.visible = false;
setGoal();
showScore();
startTimer();
body.face.gotoAndStop("gaoxing");
pauseButton.addEventListener(MouseEvent.MOUSE_DOWN, pauseit);
musicButton.addEventListener(MouseEvent.MOUSE_DOWN, musicButtonClicked);
choose1.addEventListener(MouseEvent.MOUSE_DOWN, onChoose1Selected, true);
choose2.addEventListener(MouseEvent.MOUSE_DOWN, onChoose2Selected, true);
choose3.addEventListener(MouseEvent.MOUSE_DOWN, onChoose3Selected, true);
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
stage.addEventListener(Event.ENTER_FRAME, targetMove);
stage.addEventListener(MouseEvent.MOUSE_DOWN, shoot);
}
public function mouseMove(_arg1:MouseEvent):void{
angle = Math.atan2(((_arg1.stageY - body.y) + 70), (_arg1.stageX - body.x));
angle = ((angle / Math.PI) * 180);
if (angle < -30){
angle = -30;
} else {
if (angle > 30){
angle = 30;
};
};
body.rotation = angle;
_arg1.updateAfterEvent();
}
public function playAgainFromLevel1(_arg1:MouseEvent){
level = 1;
initGame();
}
public function findAGoodPlaceOnTargetToPlaceArrow(_arg1:Arrow):void{
if (_arg1.x < 0){
_arg1.x = (_arg1.x + (((50 - Math.abs(_arg1.y)) * (-(_arg1.x) / 37)) * 1.2));
};
_arg1.x = (_arg1.x + ((13.2 + (Math.random() * 20)) - 18));
_arg1.arrowHead.visible = false;
}
public function shoot(_arg1:MouseEvent):void{
if (canShoot){
body.bodyArrow.visible = true;
canShoot = false;
powerBar.visible = true;
powerBar.gotoAndPlay(2);
stage.addEventListener(MouseEvent.MOUSE_UP, shootEnd);
body.face.gotoAndStop("lagong");
};
}
public function playGame(_arg1:MouseEvent){
removeListeners();
gotoAndStop(4);
}
public function showTimer(_arg1:TimerEvent=null):void{
var _local5:int;
if (_arg1){
time--;
};
trace(time);
var _local2:int = time;
var _local3:int;
var _local4:int;
while (_local4 <= 1) {
this[("timeNum" + _local4.toString())].gotoAndStop(1);
_local4++;
};
while (_local2 != 0) {
_local5 = (_local2 % 10);
if ((this[("timeNum" + _local3.toString())] is MovieClip)){
this[("timeNum" + _local3.toString())].gotoAndStop((_local5 + 1));
};
_local3++;
_local2 = (_local2 / 10);
};
foodCount++;
if (foodCount >= 3){
foodCount = 0;
createFood();
};
}
public function showHowToPlay(_arg1:MouseEvent){
removeListeners();
gotoAndStop(3);
}
public function setGoalNumber(_arg1:MovieClip):void{
var _local5:int;
var _local2:int;
while (_local2 <= 4) {
_arg1[("goalNum" + _local2.toString())].gotoAndStop(1);
_local2++;
};
var _local3:int = levelGoalArray[level];
var _local4:int;
while (_local3 != 0) {
_local5 = (_local3 % 10);
if ((_arg1[("goalNum" + _local4.toString())] is MovieClip)){
_arg1[("goalNum" + _local4.toString())].gotoAndStop((_local5 + 1));
};
_local4++;
_local3 = (_local3 / 10);
};
}
public function removeAllListeners():void{
timer.reset();
timer.removeEventListener(TimerEvent.TIMER, showTimer);
timer.removeEventListener(TimerEvent.TIMER_COMPLETE, lose);
choose1.removeEventListener(MouseEvent.MOUSE_DOWN, onChoose1Selected, true);
choose2.removeEventListener(MouseEvent.MOUSE_DOWN, onChoose2Selected, true);
choose3.removeEventListener(MouseEvent.MOUSE_DOWN, onChoose3Selected, true);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
stage.removeEventListener(Event.ENTER_FRAME, targetMove);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, shoot);
stage.removeEventListener(MouseEvent.MOUSE_UP, shootEnd);
pauseButton.removeEventListener(MouseEvent.MOUSE_DOWN, pauseit);
pausePage.removeEventListener(MouseEvent.CLICK, noPause);
winPage.nextLevelButton.removeEventListener(MouseEvent.CLICK, nextLevel);
winPage.playAgainButton.removeEventListener(MouseEvent.CLICK, playAgain);
losePage.playAgainButton.removeEventListener(MouseEvent.CLICK, playAgain);
congratulationPage.playAgainButton.removeEventListener(MouseEvent.CLICK, playAgainFromLevel1);
}
function frame1(){
localDomainLC = new LocalConnection();
flashCurrentDomainName = localDomainLC.domain;
btnUrl = (("http://www.onlyfungames.com/?utm_source=" + flashCurrentDomainName) + "&utm_medium=game&utm_campaign=Onlyfungames - Little Angel Archery Contest");
Prel_mc.Btn_url.addEventListener(MouseEvent.MOUSE_DOWN, MoreGames_fnc);
stage.scaleMode = StageScaleMode.EXACT_FIT;
stage.align = StageAlign.TOP_LEFT;
stop();
}
function frame2(){
stop();
hostingdomain = "";
domain_parts = loaderInfo.url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
if (hostingdomain == ""){
hostingdomain = "unknown";
};
gametitle = "Onlyfungames - Little Angel Archery Contest";
url = ((("http://www.onlyfungames.com/?utm_source=" + hostingdomain) + "&utm_medium=game&utm_campaign=") + gametitle);
trace(btnUrl);
musicButton.visible = false;
if (bgmSC != null){
sc = (bgmSC as SoundChannel);
sc.stop();
};
bgmSC = new BGM().play(0, 9999999);
playButton.addEventListener(MouseEvent.CLICK, playGame);
howToPlayButton.addEventListener(MouseEvent.CLICK, showHowToPlay);
if (!moreGamesButton.hasEventListener(MouseEvent.CLICK)){
moreGamesButton.addEventListener(MouseEvent.CLICK, gotoURL);
logoButton.addEventListener(MouseEvent.CLICK, gotoURL);
} else {
trace("already has eventListener!");
};
}
public function nextLevel(_arg1:MouseEvent){
level++;
initGame();
}
public function gotoMainPage(_arg1:MouseEvent){
removeAllListeners();
gotoAndStop(2);
}
function frame3(){
stop();
musicButton.visible = false;
menu.addEventListener(MouseEvent.CLICK, gotoMain);
}
public function shootEnd(_arg1:MouseEvent):void{
var _local4:Arrow;
var _local5:Point;
var _local6:int;
var _local7:Number;
body.bodyArrow.visible = false;
stage.removeEventListener(MouseEvent.MOUSE_UP, shootEnd);
var _local2:int = powerBar.currentFrame;
powerBar.visible = false;
powerBar.gotoAndStop(1);
body.face.gotoAndStop("gaoxing");
if (musicButton.currentFrame == 1){
new ShootSound().play();
};
var _local3:int;
while (_local3 < nowArrowNum) {
_local4 = new Arrow();
_local5 = body.bodyArrow.localToGlobal(new Point(body.bodyArrow[("arrow" + (_local3 + 1))].x, body.bodyArrow[("arrow" + (_local3 + 1))].y));
_local4.x = (_local5.x + 5);
_local4.y = (_local5.y - 5);
_local4.rotation = angle;
_local4.foodHitten = false;
_local6 = 0;
_local7 = 0;
switch (nowArrowNum){
case 1:
switch (_local3){
case 0:
_local6 = (_local2 + 4);
_local7 = angle;
break;
};
break;
case 2:
switch (_local3){
case 0:
_local6 = (_local2 + 4);
_local7 = (angle - 2);
break;
case 1:
_local6 = (_local2 + 3);
_local7 = (angle + 1);
break;
};
break;
case 3:
switch (_local3){
case 0:
_local6 = (_local2 + 4);
_local7 = (angle - 2);
break;
case 1:
_local6 = (_local2 + 3);
_local7 = (angle - 1);
break;
case 2:
_local6 = (_local2 + 2);
_local7 = (angle + 1);
break;
};
break;
};
_local4.speedX = ((_local6 * 0.8) * Math.cos((((_local7 - 15) / 180) * Math.PI)));
_local4.speedY = ((_local6 * 0.8) * Math.sin((((_local7 - 15) / 180) * Math.PI)));
if (angle > -15){
_local4.y = (_local4.y + ((angle + 15) / 10));
};
arrowLayer.addChild(_local4);
if (wudi){
_local4.toTargetCount = 2;
_local4.onTarget = false;
wudiArrowArray.push(_local4);
Actuate.tween(_local4, _local4.toTargetCount, {rotation:15, x:target.x, y:target.y}, true).onUpdate(toTarget, [_local4]).ease(Quad.easeIn);
} else {
flyingArrowArray.push(_local4);
};
_local3++;
};
if (wudi){
wudi = false;
};
}
function frame4(){
stop();
musicButton.visible = true;
menuButton.removeEventListener(MouseEvent.MOUSE_DOWN, gotoMainPage);
menuButton.addEventListener(MouseEvent.MOUSE_DOWN, gotoMainPage);
time = 0;
level = 1;
levelTimeArray = [null, 15, 25, 35, 45, 55, 65, 75, 85, 95, 99];
levelGoalArray = [null, 100, 300, 500, 700, 900, 1200, 1500, 1700, 2000, 2500];
levelFoodNumArray = [null, 3, 5, 7, 10, 13, 15, 17, 20, 23, 30];
onTargetArrowArray = [];
outArrowArray = [];
outFoodArray = [];
nowArrowNum = 1;
angle = 0;
targetDirection = -1;
canShoot = true;
canShootCount = 0;
timer = new Timer(1000);
flyingArrowArray = [];
flyingFoodArray = [];
wudiArrowArray = [];
g = 0.5;
score = 0;
foodCount = 0;
wudi = false;
x2 = false;
initGame();
}
public function musicButtonClicked(_arg1:MouseEvent){
_arg1.stopImmediatePropagation();
if (musicButton.currentFrame == 1){
musicButton.gotoAndStop(2);
bgmSC.stop();
} else {
musicButton.gotoAndStop(1);
bgmSC.stop();
bgmSC = new BGM().play(0, 9999999);
};
}
public function createFood():void{
var _local3:MovieClip;
var _local1:int = (375 + (Math.random() * 200));
var _local2:int = int((Math.random() * 5));
switch (_local2){
case 0:
_local3 = new HeartX2();
break;
case 1:
_local3 = new HeartReduce50();
break;
case 2:
_local3 = new HeartPlus3s();
break;
case 3:
_local3 = new HeartRandom();
break;
case 4:
_local3 = new HeartPrecise();
break;
};
_local3.hitten = false;
_local3.x = _local1;
_local3.y = stage.stageHeight;
_local3.speed = int(((Math.random() * 3) + 1));
flyingFoodArray.push(_local3);
arrowLayer.addChild(_local3);
}
public function removeOnTargetArrowsFromFlyingArray():void{
var _local2:Array;
var _local3:Arrow;
var _local4:Point;
var _local5:Array;
var _local6:Arrow;
var _local1:int = (flyingArrowArray.length - 1);
while (_local1 >= 0) {
if (onTargetArrowArray.indexOf(flyingArrowArray[_local1]) >= 0){
_local2 = flyingArrowArray.splice(_local1, 1);
_local3 = _local2[0];
_local4 = target.globalToLocal(new Point(_local3.x, _local3.y));
_local3.x = _local4.x;
_local3.y = _local4.y;
findAGoodPlaceOnTargetToPlaceArrow(_local3);
target.addChild(_local3);
score = (score + 20);
if (x2){
score = (score + 20);
};
} else {
if (outArrowArray.indexOf(flyingArrowArray[_local1]) >= 0){
_local5 = flyingArrowArray.splice(_local1, 1);
_local6 = _local5[0];
if (arrowLayer.contains(_local6)){
arrowLayer.removeChild(_local6);
};
};
};
_local1--;
};
showScore();
checkWin();
}
public function playAgain(_arg1:MouseEvent){
initGame();
}
public function sureOnTarget(_arg1:Array):void{
var _local2:Arrow = _arg1[0];
if (musicButton.currentFrame == 1){
new HitSound().play();
};
score = (score + 20);
if (x2){
score = (score + 20);
};
var _local3:int = (wudiArrowArray.length - 1);
while (_local3 >= 0) {
if (wudiArrowArray.indexOf(_local2) >= 0){
wudiArrowArray.splice(_local3, 1);
};
_local3--;
};
if (arrowLayer.contains(_local2)){
arrowLayer.removeChild(_local2);
};
var _local4:Arrow = new Arrow();
_local4.x = (((Math.random() * 8) - 4) + 10);
_local4.y = ((Math.random() * 12) - 4);
_local4.rotation = 15;
_local4.arrowHead.visible = false;
target.addChild(_local4);
trace("wudi Arrow on target");
}
public function foodHitted(_arg1:MovieClip):void{
var _local2:int;
if (_arg1.currentFrame != 1){
return;
};
if ((_arg1 is HeartX2)){
x2 = true;
_arg1.gotoAndStop(2);
} else {
if ((_arg1 is HeartPlus3s)){
time = (time + 3);
timer.repeatCount = time;
timer.reset();
timer.start();
_arg1.gotoAndStop(2);
} else {
if ((_arg1 is HeartReduce50)){
if (score > 50){
score = (score - 50);
} else {
score = 0;
};
showScore();
_arg1.gotoAndStop(2);
} else {
if ((_arg1 is HeartPrecise)){
wudi = true;
_arg1.gotoAndStop(2);
} else {
if ((_arg1 is HeartRandom)){
_local2 = int((Math.random() * 4));
switch (_local2){
case 0:
x2 = true;
_arg1.gotoAndStop(2);
break;
case 1:
time = (time + 3);
_arg1.gotoAndStop(3);
break;
case 2:
if (score > 50){
score = (score - 50);
} else {
score = 0;
};
showScore();
_arg1.gotoAndStop(4);
break;
case 3:
wudi = true;
_arg1.gotoAndStop(5);
break;
};
trace(("randomHeart!" + _local2));
};
};
};
};
};
}
public function pauseit(_arg1:MouseEvent){
_arg1.stopImmediatePropagation();
pauseButton.removeEventListener(MouseEvent.MOUSE_DOWN, pauseit, true);
pauseBlack.visible = true;
timer.stop();
pausePage.y = -550;
stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
stage.removeEventListener(Event.ENTER_FRAME, targetMove);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, shoot);
Actuate.tween(pausePage, 1, {y:300});
pausePage.addEventListener(MouseEvent.CLICK, noPause);
}
public function setGoal():void{
var _local4:int;
this.levelNum.gotoAndStop((level + 1));
var _local1:int;
while (_local1 <= 4) {
this[("goalNum" + _local1.toString())].gotoAndStop(1);
_local1++;
};
var _local2:int = levelGoalArray[level];
var _local3:int;
while (_local2 != 0) {
_local4 = (_local2 % 10);
if ((this[("goalNum" + _local3.toString())] is MovieClip)){
this[("goalNum" + _local3.toString())].gotoAndStop((_local4 + 1));
};
_local3++;
_local2 = (_local2 / 10);
};
}
public function checkWin():void{
if (score >= levelGoalArray[level]){
body.visible = (leg.visible = false);
powerBar.visible = false;
removeAllListeners();
trace("win");
bgmSC.stop();
if (musicButton.currentFrame == 1){
new WinSound().play();
};
if (level < 10){
winPage.nextLevelButton.addEventListener(MouseEvent.CLICK, nextLevel);
winPage.playAgainButton.addEventListener(MouseEvent.CLICK, playAgain);
setGoalNumber(winPage);
setScoreNumber(winPage);
winPage.scaleX = (winPage.scaleY = 3);
Actuate.tween(winPage, 1, {scaleX:1, scaleY:1});
winPage.visible = true;
} else {
congratulationPage.playAgainButton.addEventListener(MouseEvent.CLICK, playAgainFromLevel1);
setScoreNumber(congratulationPage);
congratulationPage.scaleX = (congratulationPage.scaleY = 2);
Actuate.tween(congratulationPage, 1, {scaleX:1, scaleY:1});
congratulationPage.visible = true;
};
};
}
public function noPause(_arg1:MouseEvent){
pausePage.removeEventListener(MouseEvent.CLICK, noPause);
pauseBlack.visible = false;
Actuate.tween(pausePage, 1, {y:-550});
timer.start();
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
stage.addEventListener(Event.ENTER_FRAME, targetMove);
stage.addEventListener(MouseEvent.MOUSE_DOWN, shoot);
pauseButton.addEventListener(MouseEvent.MOUSE_DOWN, pauseit, true);
}
public function setScoreNumber(_arg1:MovieClip):void{
var _local5:int;
var _local2:int = score;
var _local3:int;
var _local4:int;
while (_local4 <= 4) {
_arg1[("scoreNum" + _local4.toString())].gotoAndStop(1);
_local4++;
};
while (_local2 != 0) {
_local5 = (_local2 % 10);
if ((_arg1[("scoreNum" + _local3.toString())] is MovieClip)){
_arg1[("scoreNum" + _local3.toString())].gotoAndStop((_local5 + 1));
};
_local3++;
_local2 = (_local2 / 10);
};
}
public function gotoMain(_arg1:MouseEvent){
menu.removeEventListener(MouseEvent.CLICK, gotoMain);
gotoAndStop(2);
}
public function showScore():void{
var _local4:int;
var _local1:int = score;
var _local2:int;
var _local3:int;
while (_local3 <= 4) {
this[("scoreNum" + _local3.toString())].gotoAndStop(1);
_local3++;
};
while (_local1 != 0) {
_local4 = (_local1 % 10);
if ((this[("scoreNum" + _local2.toString())] is MovieClip)){
this[("scoreNum" + _local2.toString())].gotoAndStop((_local4 + 1));
};
_local2++;
_local1 = (_local1 / 10);
};
}
public function removeOutFoods():void{
var _local2:Array;
var _local3:MovieClip;
var _local1:int = (flyingFoodArray.length - 1);
while (_local1 >= 0) {
if (outFoodArray.indexOf(flyingFoodArray[_local1]) >= 0){
_local2 = flyingFoodArray.splice(_local1, 1);
_local3 = _local2[0];
if (arrowLayer.contains(_local3)){
arrowLayer.removeChild(_local3);
};
};
_local1--;
};
}
public function onChoose1Selected(_arg1:MouseEvent){
_arg1.stopImmediatePropagation();
if (choose1.currentFrame == 1){
choose2.gotoAndStop(1);
choose3.gotoAndStop(1);
choose1.gotoAndStop(2);
nowArrowNum = 1;
body.bodyArrow.gotoAndStop(1);
};
}
public function onChoose3Selected(_arg1:MouseEvent){
_arg1.stopImmediatePropagation();
if (choose3.currentFrame == 1){
choose1.gotoAndStop(1);
choose2.gotoAndStop(1);
choose3.gotoAndStop(2);
nowArrowNum = 3;
body.bodyArrow.gotoAndStop(3);
};
}
public function toTarget(_arg1:Array):void{
var _local2:Arrow = _arg1[0];
_local2.toTargetCount = (_local2.toTargetCount - 0.1);
if ((((_local2.toTargetCount <= 0)) && (!(_local2.onTarget)))){
_local2.onTarget = true;
Actuate.stop(_local2);
sureOnTarget([_local2]);
} else {
if (_local2.toTargetCount > 0){
Actuate.tween(_local2, _local2.toTargetCount, {rotation:15, x:target.x, y:target.y}, true).onUpdate(toTarget, [_local2]);
};
};
}
public function onChoose2Selected(_arg1:MouseEvent){
_arg1.stopImmediatePropagation();
if (choose2.currentFrame == 1){
choose1.gotoAndStop(1);
choose3.gotoAndStop(1);
choose2.gotoAndStop(2);
nowArrowNum = 2;
body.bodyArrow.gotoAndStop(2);
};
}
}
}//package Little_fla
Section 21
//plus3s_222 (Little_fla.plus3s_222)
package Little_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class plus3s_222 extends MovieClip {
public function plus3s_222(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
this["parent"].hitten = true;
}
}
}//package Little_fla
Section 22
//precise_226 (Little_fla.precise_226)
package Little_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class precise_226 extends MovieClip {
public function precise_226(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
this["parent"].hitten = false;
}
}
}//package Little_fla
Section 23
//Preloader_news123_5 (Little_fla.Preloader_news123_5)
package Little_fla {
import flash.display.*;
public dynamic class Preloader_news123_5 extends MovieClip {
public function Preloader_news123_5(){
addFrameScript(145, frame146);
}
function frame146(){
stop();
}
}
}//package Little_fla
Section 24
//reduce50_220 (Little_fla.reduce50_220)
package Little_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class reduce50_220 extends MovieClip {
public function reduce50_220(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
this["parent"].hitten = true;
}
}
}//package Little_fla
Section 25
//S_1 (Little_fla.S_1)
package Little_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class S_1 extends MovieClip {
public var Play_btn:SimpleButton;
public var More_btn:SimpleButton;
public var Btn_url:SimpleButton;
public function S_1(){
addFrameScript(313, frame314);
}
public function Play_fnc(_arg1:MouseEvent):void{
this["parent"].play();
}
function frame314(){
Play_btn.addEventListener(MouseEvent.MOUSE_DOWN, Play_fnc);
More_btn.addEventListener(MouseEvent.MOUSE_DOWN, MoreGames_fnc);
stop();
}
public function MoreGames_fnc(_arg1:MouseEvent):void{
var _local2 = (("http://www.onlyfungames.com/?utm_source=" + this["parent"].flashCurrentDomainName) + "&utm_medium=game&utm_campaign=Onlyfungames - Little Angel Archery Contest");
navigateToURL(new URLRequest(_local2));
}
}
}//package Little_fla
Section 26
//Timeline_151 (Little_fla.Timeline_151)
package Little_fla {
import flash.display.*;
public dynamic class Timeline_151 extends MovieClip {
public function Timeline_151(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package Little_fla
Section 27
//Timeline_153 (Little_fla.Timeline_153)
package Little_fla {
import flash.display.*;
public dynamic class Timeline_153 extends MovieClip {
public function Timeline_153(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Little_fla
Section 28
//Timeline_163 (Little_fla.Timeline_163)
package Little_fla {
import flash.display.*;
public dynamic class Timeline_163 extends MovieClip {
public var hands:MovieClip;
public var leg:MovieClip;
public var bodyArrow:MovieClip;
public var face:MovieClip;
public function Timeline_163(){
addFrameScript(212, frame213);
}
function frame213(){
}
}
}//package Little_fla
Section 29
//Timeline_187 (Little_fla.Timeline_187)
package Little_fla {
import flash.display.*;
public dynamic class Timeline_187 extends MovieClip {
public function Timeline_187(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package Little_fla
Section 30
//Timeline_188 (Little_fla.Timeline_188)
package Little_fla {
import flash.display.*;
public dynamic class Timeline_188 extends MovieClip {
public var arrow1:MovieClip;
public var arrow2:MovieClip;
public var arrow3:MovieClip;
public function Timeline_188(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame1(){
stop();
}
}
}//package Little_fla
Section 31
//Timeline_198 (Little_fla.Timeline_198)
package Little_fla {
import flash.display.*;
public dynamic class Timeline_198 extends MovieClip {
public function Timeline_198(){
addFrameScript(0, frame1, 29, frame30);
}
function frame30(){
stop();
}
function frame1(){
stop();
}
}
}//package Little_fla
Section 32
//Timeline_200 (Little_fla.Timeline_200)
package Little_fla {
import flash.display.*;
public dynamic class Timeline_200 extends MovieClip {
public function Timeline_200(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame9(){
stop();
}
}
}//package Little_fla
Section 33
//Timeline_201 (Little_fla.Timeline_201)
package Little_fla {
import flash.display.*;
public dynamic class Timeline_201 extends MovieClip {
public function Timeline_201(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.buttonMode = true;
}
function frame2(){
stop();
}
}
}//package Little_fla
Section 34
//Timeline_228 (Little_fla.Timeline_228)
package Little_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_228 extends MovieClip {
public function Timeline_228(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
this["parent"].hitten = true;
}
}
}//package Little_fla
Section 35
//Timeline_229 (Little_fla.Timeline_229)
package Little_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_229 extends MovieClip {
public function Timeline_229(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
this["parent"].hitten = true;
}
}
}//package Little_fla
Section 36
//Timeline_230 (Little_fla.Timeline_230)
package Little_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_230 extends MovieClip {
public function Timeline_230(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
this["parent"].hitten = true;
}
}
}//package Little_fla
Section 37
//Timeline_231 (Little_fla.Timeline_231)
package Little_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_231 extends MovieClip {
public function Timeline_231(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
this["parent"].hitten = true;
}
}
}//package Little_fla
Section 38
//x2_224 (Little_fla.x2_224)
package Little_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class x2_224 extends MovieClip {
public function x2_224(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
this["parent"].hitten = true;
}
}
}//package Little_fla
Section 39
//Arrow (Arrow)
package {
import flash.display.*;
public dynamic class Arrow extends MovieClip {
public var arrowHead:MovieClip;
}
}//package
Section 40
//BGM (BGM)
package {
import flash.media.*;
public dynamic class BGM extends Sound {
}
}//package
Section 41
//HeartPlus3s (HeartPlus3s)
package {
import flash.display.*;
public dynamic class HeartPlus3s extends MovieClip {
public function HeartPlus3s(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 42
//HeartPrecise (HeartPrecise)
package {
import flash.display.*;
public dynamic class HeartPrecise extends MovieClip {
public function HeartPrecise(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 43
//HeartRandom (HeartRandom)
package {
import flash.display.*;
public dynamic class HeartRandom extends MovieClip {
public function HeartRandom(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package
Section 44
//HeartReduce50 (HeartReduce50)
package {
import flash.display.*;
public dynamic class HeartReduce50 extends MovieClip {
public function HeartReduce50(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 45
//HeartX2 (HeartX2)
package {
import flash.display.*;
public dynamic class HeartX2 extends MovieClip {
public function HeartX2(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 46
//HitSound (HitSound)
package {
import flash.media.*;
public dynamic class HitSound extends Sound {
}
}//package
Section 47
//LoseSound (LoseSound)
package {
import flash.media.*;
public dynamic class LoseSound extends Sound {
}
}//package
Section 48
//ShootSound (ShootSound)
package {
import flash.media.*;
public dynamic class ShootSound extends Sound {
}
}//package
Section 49
//WinSound (WinSound)
package {
import flash.media.*;
public dynamic class WinSound extends Sound {
}
}//package