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

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

nils.swf

This is the info page for
Flash #82767

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


ActionScript [AS1/AS2]
Instance of Symbol 2 MovieClip "vcam" in Frame 1
onClipEvent (enterFrame) { _y = (_y + ((_root.char._y - _y) / 4)); _x = (_x + ((_root.char._x - _x) / 4)); }
Instance of Symbol 8 MovieClip "char" in Frame 1
onClipEvent (load) { var ground = _root.ground; var grav = 0; var gravity = 2; var speed = 10; var maxJump = -20; var touchingGround = false; } onClipEvent (enterFrame) { _y = (_y + grav); grav = grav + gravity; while (ground.hitTest(_x, _y, true)) { _y = (_y - gravity); grav = 0; } if (ground.hitTest(_x, _y + 5, true)) { touchingGround = true; } else { touchingGround = false; } if (Key.isDown(39)) { _x = (_x + speed); } if (Key.isDown(37)) { _x = (_x - speed); } if (Key.isDown(38) && (touchingGround)) { grav = maxJump; } if (ground.hitTest(_x + (_width / 2), _y - (_height / 2), true)) { _x = (_x - speed); } if (ground.hitTest(_x - (_width / 2), _y - (_height / 2), true)) { _x = (_x + speed); } if (ground.hitTest(_x, _y - height, true)) { grav = 3; } }
Instance of Symbol 10 MovieClip "restart" in Frame 1
onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { (_root.char._x = Type - 2105); (_root.char._y = Type - 2291); } }
Symbol 2 MovieClip Frame 1
function camControl() { rp.x = _x; rp.y = _y; var _local5 = camH * (_yscale * 0.01); var _local6 = camW * (_xscale * 0.01); var _local3 = sH / _local5; var _local4 = sW / _local6; _x2 = (_local6 / 2) * _local4; _y2 = (_local5 / 2) * _local3; _xscale2 = _local4 * 100; _yscale2 = _local3 * 100; _rotation2 = -_rotation; _parent.filters = this.filters; _parent.transform.colorTransform = this.transform.colorTransform; } function reset() { _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; _parent._rotation = 0; _parent._visible = true; } function set_x2(value) { var _local2 = {x:rp.x, y:rp.y}; _parent.localToGlobal(_local2); _parent._x = _parent._x + (value - _local2.x); } function get_x2() { var _local2 = {x:rp.x, y:rp.y}; _parent.localToGlobal(_local2); return(_local2.x); } function set_y2(value) { var _local2 = {x:rp.x, y:rp.y}; _parent.localToGlobal(_local2); _parent._y = _parent._y + (value - _local2.y); } function get_y2() { var _local2 = {x:rp.x, y:rp.y}; _parent.localToGlobal(_local2); return(_local2.y); } function get_xscale2() { return(_parent._xscale); } function set_xscale2(value) { setProperty2("_xscale", value); } function get_yscale2() { return(_parent._yscale); } function set_yscale2(value) { setProperty2("_yscale", value); } function get_rotation2() { return(parent.rotation); } function set_rotation2(value) { setProperty2("_rotation", value); } function setProperty2(prop, n) { var _local3 = {x:rp.x, y:rp.y}; _parent.localToGlobal(_local3); _parent[prop] = n; var _local2 = {x:rp.x, y:rp.y}; _parent.localToGlobal(_local2); _parent._x = _parent._x - (_local2.x - _local3.x); _parent._y = _parent._y - (_local2.y - _local3.y); } addProperty("_x2", get_x2, set_x2); addProperty("_y2", get_y2, set_y2); addProperty("_xscale2", get_xscale2, set_xscale2); addProperty("_yscale2", get_yscale2, set_yscale2); addProperty("_rotation2", get_rotation2, set_rotation2); var oldScaleMode = stage.scaleMode; stage.scaleMode = "exactFit"; var sW = Stage.width; var sH = Stage.height; stage.scaleMode = oldScaleMode; var bounds_obj = this.getBounds(this); var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin); var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin); var rp = {x:this._x, y:this._y}; onEnterFrame = function () { camControl(); }; this.onUnload = reset;

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:Timeline
Symbol 3 GraphicUsed by:6
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:6
Symbol 6 MovieClipUses:3 5Used by:Timeline
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:Timeline
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:9Used by:Timeline

Instance Names

"vcam"Frame 1Symbol 2 MovieClip
"ground"Frame 1Symbol 6 MovieClip
"char"Frame 1Symbol 8 MovieClip
"restart"Frame 1Symbol 10 MovieClip

Special Tags

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




http://swfchan.com/17/82767/info.shtml
Created: 1/4 -2019 06:00:30 Last modified: 1/4 -2019 06:00:30 Server time: 03/05 -2024 07:10:59