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>

rji.swf

This is the info page for
Flash #78861

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


ActionScript [AS3]
Section 1
//MainTimeline (rji_fla.MainTimeline) package rji_fla { import flash.events.*; import flash.display.*; public dynamic class MainTimeline extends MovieClip { public var gravity:Number; public var level:Level; public var jumped:Boolean; public var velocity:Number; public var player:Player; public function MainTimeline(){ addFrameScript(0, frame1); } public function jump(_arg1:Event){ if (!jumped){ player.y = (player.y - 5); velocity = -20; jumped = true; }; } function frame1(){ velocity = 0; jumped = false; gravity = 1; addEventListener(Event.ENTER_FRAME, control_hero); stage.addEventListener(MouseEvent.CLICK, jump); } public function control_hero(_arg1:Event){ var _local2:int; if ((player.x - 20) < mouseX){ player.x = (player.x + 5); }; if ((player.x + 20) > mouseX){ player.x = (player.x - 5); }; velocity = (velocity + gravity); if (!level.hitTestPoint(player.x, player.y, true)){ player.y = (player.y + velocity); }; if (velocity > 10){ velocity = 10; }; _local2 = 0; while (_local2 < 10) { if (level.hitTestPoint(player.x, player.y, true)){ player.y--; velocity = 0; jumped = false; }; _local2++; }; } } }//package rji_fla
Section 2
//Level (Level) package { import flash.display.*; public dynamic class Level extends MovieClip { } }//package
Section 3
//Player (Player) package { import flash.display.*; public dynamic class Player extends MovieClip { } }//package

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip {Level}Uses:1Used by:Timeline
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClip {Player}Uses:3Used by:Timeline

Instance Names

"player"Frame 1Symbol 4 MovieClip {Player}
"level"Frame 1Symbol 2 MovieClip {Level}

Special Tags

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




http://swfchan.com/16/78861/info.shtml
Created: 3/4 -2019 09:24:57 Last modified: 3/4 -2019 09:24:57 Server time: 01/05 -2024 19:45:18