STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228071
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2560 · P5120

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/30232084?noj=FRM30232084-28DC" width="1" height="1"></div>

trianglewithhole.swf

This is the info page for
Flash #166790

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS3]
Section 1
//Regular (fl.transitions.easing.Regular) package fl.transitions.easing { public class Regular { public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((_arg3 * _arg1) * _arg1) + _arg2)); } public static function easeInOut(_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)); } } }//package fl.transitions.easing
Section 2
//Tween (fl.transitions.Tween) package fl.transitions { import flash.events.*; import flash.utils.*; import flash.display.*; public class Tween extends EventDispatcher { private var _position:Number;// = NAN public var prevTime:Number;// = NAN public var prevPos:Number;// = NAN public var isPlaying:Boolean;// = false public var begin:Number;// = NAN private var _fps:Number;// = NAN private var _time:Number;// = NAN public var change:Number;// = NAN private var _finish:Number;// = NAN public var looping:Boolean;// = false private var _intervalID:uint;// = 0 public var func:Function; private var _timer:Timer;// = null private var _startTime:Number;// = NAN public var prop:String;// = "" private var _duration:Number;// = NAN public var obj:Object;// = null public var useSeconds:Boolean;// = false protected static var _mc:MovieClip = new MovieClip(); public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){ isPlaying = false; obj = null; prop = ""; func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); }; begin = NaN; change = NaN; useSeconds = false; prevTime = NaN; prevPos = NaN; looping = false; _duration = NaN; _time = NaN; _fps = NaN; _position = NaN; _startTime = NaN; _intervalID = 0; _finish = NaN; _timer = null; super(); if (!arguments.length){ return; }; this.obj = _arg1; this.prop = _arg2; this.begin = _arg4; this.position = _arg4; this.duration = _arg6; this.useSeconds = _arg7; if ((_arg3 is Function)){ this.func = _arg3; }; this.finish = _arg5; this._timer = new Timer(100); this.start(); } public function continueTo(_arg1:Number, _arg2:Number):void{ this.begin = this.position; this.finish = _arg1; if (!isNaN(_arg2)){ this.duration = _arg2; }; this.start(); } public function stop():void{ this.stopEnterFrame(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position)); } private function fixTime():void{ if (this.useSeconds){ this._startTime = (getTimer() - (this._time * 1000)); }; } public function set FPS(_arg1:Number):void{ var _local2:Boolean; _local2 = this.isPlaying; this.stopEnterFrame(); this._fps = _arg1; if (_local2){ this.startEnterFrame(); }; } public function get finish():Number{ return ((this.begin + this.change)); } public function get duration():Number{ return (this._duration); } protected function startEnterFrame():void{ var _local1:Number; if (isNaN(this._fps)){ _mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true); } else { _local1 = (1000 / this._fps); this._timer.delay = _local1; this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true); this._timer.start(); }; this.isPlaying = true; } public function set time(_arg1:Number):void{ this.prevTime = this._time; if (_arg1 > this.duration){ if (this.looping){ this.rewind((_arg1 - this._duration)); this.update(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position)); } else { if (this.useSeconds){ this._time = this._duration; this.update(); }; this.stop(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position)); }; } else { if (_arg1 < 0){ this.rewind(); this.update(); } else { this._time = _arg1; this.update(); }; }; } protected function stopEnterFrame():void{ if (isNaN(this._fps)){ _mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame); } else { this._timer.stop(); }; this.isPlaying = false; } public function getPosition(_arg1:Number=NaN):Number{ if (isNaN(_arg1)){ _arg1 = this._time; }; return (this.func(_arg1, this.begin, this.change, this._duration)); } public function set finish(_arg1:Number):void{ this.change = (_arg1 - this.begin); } public function set duration(_arg1:Number):void{ this._duration = ((_arg1)<=0) ? Infinity : _arg1; } public function setPosition(_arg1:Number):void{ this.prevPos = this._position; if (this.prop.length){ this.obj[this.prop] = (this._position = _arg1); }; this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position)); } public function resume():void{ this.fixTime(); this.startEnterFrame(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position)); } public function fforward():void{ this.time = this._duration; this.fixTime(); } protected function onEnterFrame(_arg1:Event):void{ this.nextFrame(); } public function get position():Number{ return (this.getPosition(this._time)); } public function yoyo():void{ this.continueTo(this.begin, this.time); } public function nextFrame():void{ if (this.useSeconds){ this.time = ((getTimer() - this._startTime) / 1000); } else { this.time = (this._time + 1); }; } protected function timerHandler(_arg1:TimerEvent):void{ this.nextFrame(); _arg1.updateAfterEvent(); } public function get FPS():Number{ return (this._fps); } public function rewind(_arg1:Number=0):void{ this._time = _arg1; this.fixTime(); this.update(); } public function set position(_arg1:Number):void{ this.setPosition(_arg1); } public function get time():Number{ return (this._time); } private function update():void{ this.setPosition(this.getPosition(this._time)); } public function start():void{ this.rewind(); this.startEnterFrame(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position)); } public function prevFrame():void{ if (!this.useSeconds){ this.time = (this._time - 1); }; } } }//package fl.transitions
Section 3
//TweenEvent (fl.transitions.TweenEvent) package fl.transitions { import flash.events.*; public class TweenEvent extends Event { public var time:Number;// = NAN public var position:Number;// = NAN public static const MOTION_START:String = "motionStart"; public static const MOTION_STOP:String = "motionStop"; public static const MOTION_LOOP:String = "motionLoop"; public static const MOTION_CHANGE:String = "motionChange"; public static const MOTION_FINISH:String = "motionFinish"; public static const MOTION_RESUME:String = "motionResume"; public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){ time = NaN; position = NaN; super(_arg1, _arg4, _arg5); this.time = _arg2; this.position = _arg3; } override public function clone():Event{ return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable)); } } }//package fl.transitions
Section 4
//blue_6 (trianglewithhole_fla.blue_6) package trianglewithhole_fla { import flash.events.*; import flash.display.*; public dynamic class blue_6 extends MovieClip { public var isDraggingFilewindow:Boolean; public function blue_6(){ addFrameScript(0, frame1); } function frame1(){ isDraggingFilewindow = false; this.addEventListener(MouseEvent.MOUSE_DOWN, dragFilewindow); stage.addEventListener(MouseEvent.MOUSE_UP, stopdragFilewindow); this.addEventListener(MouseEvent.MOUSE_DOWN, dragFilewindow); stage.addEventListener(MouseEvent.MOUSE_UP, stopdragFilewindow); } public function stopdragFilewindow(_arg1:MouseEvent):void{ if ((isDraggingFilewindow = true)){ this.stopDrag(); }; } public function dragFilewindow(_arg1:MouseEvent):void{ this.startDrag(); isDraggingFilewindow = true; } } }//package trianglewithhole_fla
Section 5
//green_4 (trianglewithhole_fla.green_4) package trianglewithhole_fla { import flash.events.*; import flash.display.*; public dynamic class green_4 extends MovieClip { public var isDraggingFilewindow:Boolean; public function green_4(){ addFrameScript(0, frame1); } function frame1(){ isDraggingFilewindow = false; this.addEventListener(MouseEvent.MOUSE_DOWN, dragFilewindow); stage.addEventListener(MouseEvent.MOUSE_UP, stopdragFilewindow); this.addEventListener(MouseEvent.MOUSE_DOWN, dragFilewindow); stage.addEventListener(MouseEvent.MOUSE_UP, stopdragFilewindow); } public function stopdragFilewindow(_arg1:MouseEvent):void{ if ((isDraggingFilewindow = true)){ this.stopDrag(); }; } public function dragFilewindow(_arg1:MouseEvent):void{ this.startDrag(); isDraggingFilewindow = true; } } }//package trianglewithhole_fla
Section 6
//MainTimeline (trianglewithhole_fla.MainTimeline) package trianglewithhole_fla { import flash.events.*; import fl.transitions.easing.*; import fl.transitions.*; import flash.display.*; public dynamic class MainTimeline extends MovieClip { public var green:MovieClip; public var orange:MovieClip; public var blue:MovieClip; public var red:MovieClip; public var formation2:SimpleButton; public var formation1:SimpleButton; public function MainTimeline(){ addFrameScript(0, frame1); } public function doformation1(_arg1:MouseEvent){ var _local2:Tween; var _local3:Tween; var _local4:Tween; var _local5:Tween; var _local6:Tween; var _local7:Tween; var _local8:Tween; var _local9:Tween; _local2 = new Tween(blue, "x", Regular.easeInOut, blue.x, 60, 1, true); _local3 = new Tween(blue, "y", Regular.easeInOut, blue.y, 240, 1, true); _local4 = new Tween(orange, "x", Regular.easeInOut, orange.x, 360, 1, true); _local5 = new Tween(orange, "y", Regular.easeInOut, orange.y, 240, 1, true); _local6 = new Tween(red, "x", Regular.easeInOut, red.x, 360, 1, true); _local7 = new Tween(red, "y", Regular.easeInOut, red.y, 60, 1, true); _local8 = new Tween(green, "x", Regular.easeInOut, green.x, 540, 1, true); _local9 = new Tween(green, "y", Regular.easeInOut, green.y, 240, 1, true); } function frame1(){ formation1.addEventListener(MouseEvent.CLICK, doformation1); formation2.addEventListener(MouseEvent.CLICK, doformation2); } public function doformation2(_arg1:MouseEvent){ var _local2:Tween; var _local3:Tween; var _local4:Tween; var _local5:Tween; var _local6:Tween; var _local7:Tween; var _local8:Tween; var _local9:Tween; _local2 = new Tween(blue, "x", Regular.easeInOut, blue.x, 540, 1, true); _local3 = new Tween(blue, "y", Regular.easeInOut, blue.y, 60, 1, true); _local4 = new Tween(orange, "x", Regular.easeInOut, orange.x, 540, 1, true); _local5 = new Tween(orange, "y", Regular.easeInOut, orange.y, 180, 1, true); _local6 = new Tween(red, "x", Regular.easeInOut, red.x, 60, 1, true); _local7 = new Tween(red, "y", Regular.easeInOut, red.y, 180, 1, true); _local8 = new Tween(green, "x", Regular.easeInOut, green.x, 540, 1, true); _local9 = new Tween(green, "y", Regular.easeInOut, green.y, 240, 1, true); } } }//package trianglewithhole_fla
Section 7
//orange_5 (trianglewithhole_fla.orange_5) package trianglewithhole_fla { import flash.events.*; import flash.display.*; public dynamic class orange_5 extends MovieClip { public var isDraggingFilewindow:Boolean; public function orange_5(){ addFrameScript(0, frame1); } function frame1(){ isDraggingFilewindow = false; this.addEventListener(MouseEvent.MOUSE_DOWN, dragFilewindow); stage.addEventListener(MouseEvent.MOUSE_UP, stopdragFilewindow); this.addEventListener(MouseEvent.MOUSE_DOWN, dragFilewindow); stage.addEventListener(MouseEvent.MOUSE_UP, stopdragFilewindow); } public function stopdragFilewindow(_arg1:MouseEvent):void{ if ((isDraggingFilewindow = true)){ this.stopDrag(); }; } public function dragFilewindow(_arg1:MouseEvent):void{ this.startDrag(); isDraggingFilewindow = true; } } }//package trianglewithhole_fla
Section 8
//red_3 (trianglewithhole_fla.red_3) package trianglewithhole_fla { import flash.events.*; import flash.display.*; public dynamic class red_3 extends MovieClip { public var isDraggingFilewindow:Boolean; public function red_3(){ addFrameScript(0, frame1); } function frame1(){ isDraggingFilewindow = false; this.addEventListener(MouseEvent.MOUSE_DOWN, dragFilewindow); stage.addEventListener(MouseEvent.MOUSE_UP, stopdragFilewindow); this.addEventListener(MouseEvent.MOUSE_DOWN, dragFilewindow); stage.addEventListener(MouseEvent.MOUSE_UP, stopdragFilewindow); } public function stopdragFilewindow(_arg1:MouseEvent):void{ if ((isDraggingFilewindow = true)){ this.stopDrag(); }; } public function dragFilewindow(_arg1:MouseEvent):void{ this.startDrag(); isDraggingFilewindow = true; } } }//package trianglewithhole_fla

Library Items

Symbol 1 GraphicUsed by:Timeline
Symbol 2 GraphicUsed by:5
Symbol 3 GraphicUsed by:5
Symbol 4 GraphicUsed by:5
Symbol 5 ButtonUses:2 3 4Used by:Timeline
Symbol 6 GraphicUsed by:9
Symbol 7 GraphicUsed by:9
Symbol 8 GraphicUsed by:9
Symbol 9 ButtonUses:6 7 8Used by:Timeline
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClip {trianglewithhole_fla.red_3}Uses:10Used by:Timeline
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClip {trianglewithhole_fla.green_4}Uses:12Used by:Timeline
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip {trianglewithhole_fla.orange_5}Uses:14Used by:Timeline
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClip {trianglewithhole_fla.blue_6}Uses:16Used by:Timeline

Instance Names

"formation1"Frame 1Symbol 5 Button
"formation2"Frame 1Symbol 9 Button
"red"Frame 1Symbol 11 MovieClip {trianglewithhole_fla.red_3}
"green"Frame 1Symbol 13 MovieClip {trianglewithhole_fla.green_4}
"orange"Frame 1Symbol 15 MovieClip {trianglewithhole_fla.orange_5}
"blue"Frame 1Symbol 17 MovieClip {trianglewithhole_fla.blue_6}

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.




http://swfchan.com/34/166790/info.shtml
Created: 18/10 -2018 17:24:38 Last modified: 18/10 -2018 17:24:38 Server time: 28/04 -2024 23:11:31