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

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

HamsterTrainer2.swf

This is the info page for
Flash #50940

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


Text
<p align="left"><font face="Eras Bold ITC" size="12" color="#e8491c" letterSpacing="0.000000" kerning="1"><b>372</b></font></p>

ActionScript [AS3]

Section 1
//bg_1 (hamster_fla.bg_1) package hamster_fla { import flash.display.*; public dynamic class bg_1 extends MovieClip { public function bg_1(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package hamster_fla
Section 2
//MainTimeline (hamster_fla.MainTimeline) package hamster_fla { import flash.media.*; import flash.display.*; import flash.text.*; import flash.events.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.geom.*; import flash.net.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.utils.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var bg:MovieClip; public var hamsters:Array; public var screen:MovieClip; public var score:TextField; public var hamster001:hamster; public var screenarea:MovieClip; public function MainTimeline(){ addFrameScript(0, frame1); } public function upHandler(_arg1):void{ bg.gotoAndStop(1); } public function downHandler(_arg1):void{ var _local2:end; var _local3:hit; var _local4:hamster; bg.gotoAndStop(2); if (Number(score.text) == 1){ hamster001.play(); stage.removeEventListener(MouseEvent.MOUSE_DOWN, downHandler); stage.addEventListener(MouseEvent.MOUSE_DOWN, downHandler2, false, 0, true); _local2 = new end(); _local2.play(); } else { _local3 = new hit(); _local3.play(); _local4 = new hamster(); hamsters.push(_local4); _local4.x = 165; _local4.y = 174.5; _local4.vx = ((Math.random() * 20) - 10); _local4.vy = ((Math.random() * 10) - 13); _local4.vr = ((Math.random() * 70) - 35); screen.addChild(_local4); }; score.text = String((Number(score.text) - 1)); } public function enterHandler(_arg1):void{ var _local2:hamster; for each (_local2 in hamsters) { _local2.x = (_local2.x + _local2.vx); _local2.y = (_local2.y + _local2.vy); _local2.rotation = (_local2.rotation + _local2.vr); if ((((_local2.x < -30)) || ((_local2.x > (stage.stageWidth + 30))))){ hamsters.splice(hamsters.indexOf(_local2), 1); screen.removeChild(_local2); }; if (_local2.y > (stage.stageHeight + 30)){ hamsters.splice(hamsters.indexOf(_local2), 1); screen.removeChild(_local2); }; _local2.vy = (_local2.vy + 0.5); _local2.vx = (_local2.vx / 1.07); }; } function frame1(){ hamsters = new Array(); screen = new MovieClip(); stage.addChild(screen); screen.mask = screenarea; stage.addEventListener(Event.ENTER_FRAME, enterHandler, false, 0, true); stage.addEventListener(MouseEvent.MOUSE_DOWN, downHandler, false, 0, true); stage.addEventListener(MouseEvent.MOUSE_UP, upHandler, false, 0, true); stage.addEventListener(Event.ACTIVATE, startHandler, false, 0, true); } public function startHandler(_arg1):void{ var _local2:start; _local2 = new start(); _local2.play(); stage.removeEventListener(Event.ACTIVATE, startHandler); } public function downHandler2(_arg1):void{ bg.gotoAndStop(2); } } }//package hamster_fla
Section 3
//end (end) package { import flash.media.*; public dynamic class end extends Sound { } }//package
Section 4
//hamster (hamster) package { import flash.display.*; public dynamic class hamster extends MovieClip { public function hamster(){ addFrameScript(0, frame1, 29, frame30); } function frame1(){ stop(); } function frame30(){ stop(); } } }//package
Section 5
//hit (hit) package { import flash.media.*; public dynamic class hit extends Sound { } }//package
Section 6
//start (start) package { import flash.media.*; public dynamic class start extends Sound { } }//package

Library Items

Symbol 1 Sound {hit}
Symbol 2 Sound {start}
Symbol 3 Sound {end}
Symbol 4 GraphicUsed by:10
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:5Used by:10
Symbol 7 GraphicUsed by:10
Symbol 8 BitmapUsed by:9
Symbol 9 GraphicUses:8Used by:10
Symbol 10 MovieClip {hamster}Uses:4 6 7 9Used by:Timeline
Symbol 11 BitmapUsed by:12
Symbol 12 GraphicUses:11Used by:15
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:15
Symbol 15 MovieClip {hamster_fla.bg_1}Uses:12 14Used by:Timeline
Symbol 16 FontUsed by:17
Symbol 17 EditableTextUses:16Used by:Timeline
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:18Used by:Timeline

Instance Names

"bg"Frame 1Symbol 15 MovieClip {hamster_fla.bg_1}
"score"Frame 1Symbol 17 EditableText
"hamster001"Frame 1Symbol 10 MovieClip {hamster}
"screenarea"Frame 1Symbol 19 MovieClip

Special Tags

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




http://swfchan.com/11/50940/info.shtml
Created: 25/4 -2019 17:41:48 Last modified: 25/4 -2019 17:41:48 Server time: 01/05 -2024 20:02:25