Section 1
//BitmapAsset (mx.core.BitmapAsset)
package mx.core {
import flash.display.*;
public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject {
mx_internal static const VERSION:String = "3.5.0.12683";
public function BitmapAsset(bitmapData:BitmapData=null, pixelSnapping:String="auto", smoothing:Boolean=false){
super(bitmapData, pixelSnapping, smoothing);
}
public function get measuredWidth():Number{
if (bitmapData){
return (bitmapData.width);
};
return (0);
}
public function get measuredHeight():Number{
if (bitmapData){
return (bitmapData.height);
};
return (0);
}
public function setActualSize(newWidth:Number, newHeight:Number):void{
width = newWidth;
height = newHeight;
}
public function move(x:Number, y:Number):void{
this.x = x;
this.y = y;
}
}
}//package mx.core
Section 2
//FlexBitmap (mx.core.FlexBitmap)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexBitmap extends Bitmap {
mx_internal static const VERSION:String = "3.5.0.12683";
public function FlexBitmap(bitmapData:BitmapData=null, pixelSnapping:String="auto", smoothing:Boolean=false){
var bitmapData = bitmapData;
var pixelSnapping = pixelSnapping;
var smoothing = smoothing;
super(bitmapData, pixelSnapping, smoothing);
name = NameUtil.createUniqueName(this);
//unresolved jump
var _slot1 = e;
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 3
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 4
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.accessibility.*;
public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher {
function get visible():Boolean;
function get rotation():Number;
function localToGlobal(void:Point):Point;
function get name():String;
function set width(flash.display:Number):void;
function get measuredHeight():Number;
function get blendMode():String;
function get scale9Grid():Rectangle;
function set name(flash.display:String):void;
function set scaleX(flash.display:Number):void;
function set scaleY(flash.display:Number):void;
function get measuredWidth():Number;
function get accessibilityProperties():AccessibilityProperties;
function set scrollRect(flash.display:Rectangle):void;
function get cacheAsBitmap():Boolean;
function globalToLocal(void:Point):Point;
function get height():Number;
function set blendMode(flash.display:String):void;
function get parent():DisplayObjectContainer;
function getBounds(String:DisplayObject):Rectangle;
function get opaqueBackground():Object;
function set scale9Grid(flash.display:Rectangle):void;
function setActualSize(_arg1:Number, _arg2:Number):void;
function set alpha(flash.display:Number):void;
function set accessibilityProperties(flash.display:AccessibilityProperties):void;
function get width():Number;
function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean;
function set cacheAsBitmap(flash.display:Boolean):void;
function get scaleX():Number;
function get scaleY():Number;
function get scrollRect():Rectangle;
function get mouseX():Number;
function get mouseY():Number;
function set height(flash.display:Number):void;
function set mask(flash.display:DisplayObject):void;
function getRect(String:DisplayObject):Rectangle;
function get alpha():Number;
function set transform(flash.display:Transform):void;
function move(_arg1:Number, _arg2:Number):void;
function get loaderInfo():LoaderInfo;
function get root():DisplayObject;
function hitTestObject(mx.core:IFlexDisplayObject/mx.core:IFlexDisplayObject:stage/get:DisplayObject):Boolean;
function set opaqueBackground(flash.display:Object):void;
function set visible(flash.display:Boolean):void;
function get mask():DisplayObject;
function set x(flash.display:Number):void;
function set y(flash.display:Number):void;
function get transform():Transform;
function set filters(flash.display:Array):void;
function get x():Number;
function get y():Number;
function get filters():Array;
function set rotation(flash.display:Number):void;
function get stage():Stage;
}
}//package mx.core
Section 5
//IRepeaterClient (mx.core.IRepeaterClient)
package mx.core {
public interface IRepeaterClient {
function get instanceIndices():Array;
function set instanceIndices(C:\autobuild\3.5.0\frameworks\projects\framework\src;mx\core;IRepeaterClient.as:Array):void;
function get isDocument():Boolean;
function set repeaters(C:\autobuild\3.5.0\frameworks\projects\framework\src;mx\core;IRepeaterClient.as:Array):void;
function initializeRepeaterArrays(C:\autobuild\3.5.0\frameworks\projects\framework\src;mx\core;IRepeaterClient.as:IRepeaterClient):void;
function get repeaters():Array;
function set repeaterIndices(C:\autobuild\3.5.0\frameworks\projects\framework\src;mx\core;IRepeaterClient.as:Array):void;
function get repeaterIndices():Array;
}
}//package mx.core
Section 6
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 7
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import flash.display.*;
import mx.core.*;
import flash.utils.*;
public class NameUtil {
mx_internal static const VERSION:String = "3.5.0.12683";
private static var counter:int = 0;
public function NameUtil(){
super();
}
public static function displayObjectToString(displayObject:DisplayObject):String{
var result:String;
var o:DisplayObject;
var s:String;
var indices:Array;
var displayObject = displayObject;
o = displayObject;
while (o != null) {
if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){
break;
};
s = o.name;
if ((o is IRepeaterClient)){
indices = IRepeaterClient(o).instanceIndices;
if (indices){
s = (s + (("[" + indices.join("][")) + "]"));
};
};
result = ((result == null)) ? s : ((s + ".") + result);
o = o.parent;
};
//unresolved jump
var _slot1 = e;
return (result);
}
public static function createUniqueName(object:Object):String{
if (!object){
return (null);
};
var name:String = getQualifiedClassName(object);
var index:int = name.indexOf("::");
if (index != -1){
name = name.substr((index + 2));
};
var charCode:int = name.charCodeAt((name.length - 1));
if ((((charCode >= 48)) && ((charCode <= 57)))){
name = (name + "_");
};
return ((name + counter++));
}
}
}//package mx.utils
Section 8
//Animation (Animation)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Animation extends Bitmap {
private var frame4_bitmap:Bitmap;
private var totalFrames:int;// = 12
private var frame0_bitmap:Bitmap;
private var animationTimer:Timer;
private var loop:Boolean;// = false
private var frame5_bitmap:Bitmap;
private var frame3_bitmap:Bitmap;
private var frame1_bitmap:Bitmap;
private var F1:Class;
private var frame:int;// = 0
private var F4:Class;
private var F5:Class;
private var F0:Class;
private var F3:Class;
public function Animation(delay:int){
F0 = Animation_F0;
frame0_bitmap = (new F0() as Bitmap);
F1 = Animation_F1;
frame1_bitmap = (new F1() as Bitmap);
F3 = Animation_F3;
frame3_bitmap = (new F3() as Bitmap);
F4 = Animation_F4;
frame4_bitmap = (new F4() as Bitmap);
F5 = Animation_F5;
frame5_bitmap = (new F5() as Bitmap);
super();
this.animationTimer = new Timer(delay);
this.bitmapData = frame0_bitmap.bitmapData.clone();
}
public function playOnce(event:MouseEvent):void{
loop = false;
animationTimer.start();
}
public function init():Bitmap{
this.animationTimer.addEventListener(TimerEvent.TIMER, animate);
return (this.frame0_bitmap);
}
private function animate(event:TimerEvent):void{
if (!loop){
this.totalFrames = 7;
} else {
this.totalFrames = 12;
};
frame++;
if (frame >= totalFrames){
frame = 0;
if (!loop){
animationTimer.stop();
};
};
switch (frame){
case 0:
this.bitmapData = frame0_bitmap.bitmapData.clone();
break;
case 1:
this.bitmapData = frame1_bitmap.bitmapData.clone();
break;
case 2:
this.bitmapData = frame5_bitmap.bitmapData.clone();
break;
case 3:
this.bitmapData = frame5_bitmap.bitmapData.clone();
break;
case 4:
this.bitmapData = frame3_bitmap.bitmapData.clone();
break;
case 5:
this.bitmapData = frame4_bitmap.bitmapData.clone();
break;
case 6:
this.bitmapData = frame0_bitmap.bitmapData.clone();
break;
case 7:
this.bitmapData = frame0_bitmap.bitmapData.clone();
break;
case 8:
this.bitmapData = frame0_bitmap.bitmapData.clone();
break;
case 9:
this.bitmapData = frame0_bitmap.bitmapData.clone();
break;
case 10:
this.bitmapData = frame0_bitmap.bitmapData.clone();
break;
case 11:
this.bitmapData = frame0_bitmap.bitmapData.clone();
break;
};
event.updateAfterEvent();
}
public function playLoop(event:MouseEvent):void{
loop = true;
animationTimer.start();
}
}
}//package
Section 9
//Animation_F0 (Animation_F0)
package {
import mx.core.*;
public class Animation_F0 extends BitmapAsset {
}
}//package
Section 10
//Animation_F1 (Animation_F1)
package {
import mx.core.*;
public class Animation_F1 extends BitmapAsset {
}
}//package
Section 11
//Animation_F3 (Animation_F3)
package {
import mx.core.*;
public class Animation_F3 extends BitmapAsset {
}
}//package
Section 12
//Animation_F4 (Animation_F4)
package {
import mx.core.*;
public class Animation_F4 extends BitmapAsset {
}
}//package
Section 13
//Animation_F5 (Animation_F5)
package {
import mx.core.*;
public class Animation_F5 extends BitmapAsset {
}
}//package
Section 14
//Button (Button)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public class Button extends SimpleButton {
private var clickState_bitmap:Bitmap;
private var textField:TextField;
private var overState_bitmap:Bitmap;
private var B_Over:Class;
private var upState_bitmap:Bitmap;
private var B_Up:Class;
private var animationTimer:Timer;
private var baseX:Number;
private var baseY:Number;
private var B_Click:Class;
private var maxStance:Number;// = 0.01
private var stanceDir:Number;// = 0.001
private var stance:Number;// = 0
public function Button(text:String, x:int, y:int, listener:Function){
B_Up = Button_B_Up;
upState_bitmap = (new B_Up() as Bitmap);
B_Over = Button_B_Over;
overState_bitmap = (new B_Over() as Bitmap);
B_Click = Button_B_Click;
clickState_bitmap = (new B_Click() as Bitmap);
textField = new TextField();
animationTimer = new Timer(5);
this.textField.text = text;
this.textField.x = ((this.upState_bitmap.width / 2) - (this.textField.width / 2));
this.textField.y = ((this.upState_bitmap.height / 2) - (this.textField.height / 2));
this.x = x;
this.y = y;
this.baseX = x;
this.baseY = y;
super(upState_bitmap, overState_bitmap, clickState_bitmap, upState_bitmap);
this.addEventListener(MouseEvent.MOUSE_OVER, over);
this.addEventListener(MouseEvent.MOUSE_OUT, out);
this.addEventListener(MouseEvent.MOUSE_DOWN, listener);
}
public function hide(event:MouseEvent):void{
clicked(event);
}
private function over(event:MouseEvent):void{
}
private function out(event:MouseEvent):void{
}
private function dispatchAnimation(event:TimerEvent):void{
y--;
rotation++;
event.updateAfterEvent();
}
private function clicked(event:MouseEvent):void{
this.animationTimer.addEventListener(TimerEvent.TIMER, dispatchAnimation);
this.animationTimer.start();
}
}
}//package
Section 15
//Button_B_Click (Button_B_Click)
package {
import mx.core.*;
public class Button_B_Click extends BitmapAsset {
}
}//package
Section 16
//Button_B_Over (Button_B_Over)
package {
import mx.core.*;
public class Button_B_Over extends BitmapAsset {
}
}//package
Section 17
//Button_B_Up (Button_B_Up)
package {
import mx.core.*;
public class Button_B_Up extends BitmapAsset {
}
}//package
Section 18
//Button2 (Button2)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public class Button2 extends SimpleButton {
private var clickState_bitmap:Bitmap;
private var textField:TextField;
private var overState_bitmap:Bitmap;
private var B_Over:Class;
private var upState_bitmap:Bitmap;
private var B_Up:Class;
private var animationTimer:Timer;
private var baseX:Number;
private var baseY:Number;
private var B_Click:Class;
private var maxStance:Number;// = 0.01
private var stanceDir:Number;// = 0.001
private var stance:Number;// = 0
public function Button2(text:String, x:int, y:int, listener:Function, listener2:Function){
B_Up = Button2_B_Up;
upState_bitmap = (new B_Up() as Bitmap);
B_Over = Button2_B_Over;
overState_bitmap = (new B_Over() as Bitmap);
B_Click = Button2_B_Click;
clickState_bitmap = (new B_Click() as Bitmap);
textField = new TextField();
animationTimer = new Timer(5);
this.textField.text = text;
this.textField.x = ((this.upState_bitmap.width / 2) - (this.textField.width / 2));
this.textField.y = ((this.upState_bitmap.height / 2) - (this.textField.height / 2));
this.x = x;
this.y = y;
this.baseX = x;
this.baseY = y;
super(upState_bitmap, overState_bitmap, clickState_bitmap, upState_bitmap);
this.addEventListener(MouseEvent.MOUSE_OVER, over);
this.addEventListener(MouseEvent.MOUSE_OUT, out);
this.addEventListener(MouseEvent.MOUSE_DOWN, listener);
this.addEventListener(MouseEvent.MOUSE_DOWN, listener2);
this.addEventListener(MouseEvent.MOUSE_DOWN, clicked);
}
private function over(event:MouseEvent):void{
}
private function out(event:MouseEvent):void{
}
private function dispatchAnimation(event:TimerEvent):void{
y = (y - 2);
rotation++;
event.updateAfterEvent();
}
private function clicked(event:MouseEvent):void{
this.animationTimer.addEventListener(TimerEvent.TIMER, dispatchAnimation);
this.animationTimer.start();
}
}
}//package
Section 19
//Button2_B_Click (Button2_B_Click)
package {
import mx.core.*;
public class Button2_B_Click extends BitmapAsset {
}
}//package
Section 20
//Button2_B_Over (Button2_B_Over)
package {
import mx.core.*;
public class Button2_B_Over extends BitmapAsset {
}
}//package
Section 21
//Button2_B_Up (Button2_B_Up)
package {
import mx.core.*;
public class Button2_B_Up extends BitmapAsset {
}
}//package
Section 22
//button3 (button3)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public class button3 extends SimpleButton {
private var clickState_bitmap:Bitmap;
private var textField:TextField;
private var overState_bitmap:Bitmap;
private var B_Over:Class;
private var upState_bitmap:Bitmap;
private var B_Up:Class;
private var animationTimer:Timer;
private var baseX:Number;
private var baseY:Number;
private var B_Click:Class;
private var maxStance:Number;// = 0.01
private var stanceDir:Number;// = 0.001
private var stance:Number;// = 0
public function button3(text:String, x:int, y:int, listener:Function, listener2:Function){
B_Up = button3_B_Up;
upState_bitmap = (new B_Up() as Bitmap);
B_Over = button3_B_Over;
overState_bitmap = (new B_Over() as Bitmap);
B_Click = button3_B_Click;
clickState_bitmap = (new B_Click() as Bitmap);
textField = new TextField();
animationTimer = new Timer(5);
this.textField.text = text;
this.textField.x = ((this.upState_bitmap.width / 2) - (this.textField.width / 2));
this.textField.y = ((this.upState_bitmap.height / 2) - (this.textField.height / 2));
this.x = x;
this.y = y;
this.baseX = x;
this.baseY = y;
super(upState_bitmap, overState_bitmap, clickState_bitmap, upState_bitmap);
this.addEventListener(MouseEvent.MOUSE_OVER, over);
this.addEventListener(MouseEvent.MOUSE_OUT, out);
this.addEventListener(MouseEvent.MOUSE_DOWN, listener);
this.addEventListener(MouseEvent.MOUSE_DOWN, listener2);
this.addEventListener(MouseEvent.MOUSE_DOWN, clicked);
}
private function over(event:MouseEvent):void{
}
private function out(event:MouseEvent):void{
}
private function dispatchAnimation(event:TimerEvent):void{
y = (y - 2);
rotation++;
event.updateAfterEvent();
}
private function clicked(event:MouseEvent):void{
this.animationTimer.addEventListener(TimerEvent.TIMER, dispatchAnimation);
this.animationTimer.start();
}
}
}//package
Section 23
//button3_B_Click (button3_B_Click)
package {
import mx.core.*;
public class button3_B_Click extends BitmapAsset {
}
}//package
Section 24
//button3_B_Over (button3_B_Over)
package {
import mx.core.*;
public class button3_B_Over extends BitmapAsset {
}
}//package
Section 25
//button3_B_Up (button3_B_Up)
package {
import mx.core.*;
public class button3_B_Up extends BitmapAsset {
}
}//package
Section 26
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class Main extends Sprite {
public function Main():void{
super();
if (stage){
init();
} else {
addEventListener(Event.ADDED_TO_STAGE, init);
};
}
private function init(e:Event=null):void{
removeEventListener(Event.ADDED_TO_STAGE, init);
var t:TextField = new TextField();
t.text = "LOADING....";
t.scaleX = 5;
t.scaleY = 5;
t.x = 200;
t.y = 200;
stage.addChild(t);
var a:Animation = new Animation(105);
var b:Bitmap = a.init();
var b1:Button = new Button("yes", 10, 10, a.playOnce);
var b2:Button2 = new Button2("yes", 10, 60, a.playLoop, b1.hide);
stage.addChild(a);
stage.addChild(b1);
stage.addChild(b2);
var c:button3 = new button3("", 800, 5, a.playOnce, a.playOnce);
c.rotation = 90;
stage.addChild(c);
}
}
}//package