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

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

5297.swf

This is the info page for
Flash #83529

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


ActionScript [AS3]
Section 1
//MainTimeline (both_0_fla.MainTimeline) package both_0_fla { import flash.events.*; import flash.display.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.geom.*; import flash.media.*; import flash.net.*; import flash.printing.*; import flash.system.*; import flash.text.*; import flash.ui.*; import flash.utils.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var game:Object; public function MainTimeline(){ addFrameScript(0, frame1); } function frame1(){ game = new Object(); game.people = 50; createPeople(); } public function createPeople(){ var _local1:uint; _local1 = 1; while (_local1 <= game.people) { this[("p" + _local1)] = new Person(); this[("p" + _local1)].setStageDims(stage.stageWidth, stage.stageHeight); stage.addChild(this[("p" + _local1)]); this[("p" + _local1)].init(); _local1++; }; } } }//package both_0_fla
Section 2
//Car (Car) package { import flash.events.*; import flash.display.*; import flash.ui.*; public class Car extends MovieClip { private var carDirection:Number;// = 1 private var left:Boolean;// = false private var lenkReibung:Number;// = 0.06 private var right:Boolean;// = false public var pVR:MovieClip; public var pVL:MovieClip; public var au:MovieClip; public var maxSpeed:Number;// = 20 private var speed:Number;// = 0 public var pHL:MovieClip; public var brems:Number;// = 0.9 public var pHR:MovieClip; private var down:Boolean;// = false public var mp:MovieClip; private var lenkfaktor:Number;// = 0 private var isActive:Boolean;// = false private var up:Boolean;// = false public var gas:Number;// = 0.3 private var reibung:Number;// = 0.09 private static var piOver180:Number = 0.0174532925199433; public function Car(){ maxSpeed = 20; gas = 0.3; brems = 0.9; reibung = 0.09; lenkReibung = 0.06; speed = 0; lenkfaktor = 0; carDirection = 1; up = false; down = false; left = false; right = false; isActive = false; super(); } public function init(){ this.isActive = true; this.stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown); this.stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); } public function uninit(){ this.isActive = false; this.stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDown); this.stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); } private function keyUp(_arg1:KeyboardEvent):void{ switch (_arg1.keyCode){ case Keyboard.UP: this.up = false; break; case Keyboard.DOWN: this.down = false; break; case Keyboard.LEFT: this.left = false; break; case Keyboard.RIGHT: this.right = false; break; }; stage.addEventListener(Event.ENTER_FRAME, render); } private function keyDown(_arg1:KeyboardEvent):void{ switch (_arg1.keyCode){ case Keyboard.UP: this.up = true; break; case Keyboard.DOWN: this.down = true; break; case Keyboard.LEFT: this.left = true; break; case Keyboard.RIGHT: this.right = true; break; }; stage.addEventListener(Event.ENTER_FRAME, render); } public function getProperties(){ trace(this.lenkfaktor); trace(this.maxSpeed); trace(this.lenkReibung); trace(this.gas); trace(this.brems); } function render(_arg1:Event):void{ if (up){ if (carDirection == -1){ speed = (speed - brems); }; if (speed <= 0){ carDirection = 1; speed = (speed + gas); } else { speed = (speed + gas); }; } else { if (down){ if (carDirection == 1){ speed = (speed - brems); }; if (speed <= 0){ carDirection = -1; speed = (speed + gas); } else { speed = (speed + gas); }; }; }; speed = (speed - reibung); if (speed <= 0){ speed = 0; }; if (speed > maxSpeed){ speed = maxSpeed; }; if (speed < 6){ lenkfaktor = (speed / 1.5); } else { lenkfaktor = ((1 - (speed / maxSpeed)) + 4); }; if (left){ this.rotation = (this.rotation - (lenkfaktor * carDirection)); } else { if (right){ this.rotation = (this.rotation + (lenkfaktor * carDirection)); }; }; if (((((left) || (right))) && ((speed > 0)))){ speed = (speed - ((1 - (speed / maxSpeed)) * lenkReibung)); }; this.x = (this.x + ((Math.sin((this.rotation * piOver180)) * speed) * carDirection)); this.y = (this.y - ((Math.cos((this.rotation * piOver180)) * speed) * carDirection)); } public function deleteMe(){ this.parent.removeChild(this); } public function getState(){ return (this.isActive); } } }//package
Section 3
//Mini (Mini) package { public dynamic class Mini extends Car { } }//package
Section 4
//Person (Person) package { import flash.events.*; import flash.display.*; public class Person extends MovieClip { private var timeIntervall:Number; private var rotationBetrag:Number; private var stageX:Number;// = 500 private var stageY:Number;// = 500 private var sprung:Number; private var maxSpeed:Number;// = 5 private var rotDir:Number;// = 1 private var speed:Number; private var piOver180;// = 0.0174532925199433 private var minY:Number; private var maxY:Number; private var timeCounter:Number;// = 0 private var minX:Number; private var maxX:Number; private var randabstand:Number;// = 9 private var inited:Boolean;// = false private var maxTimeIntervall:Number;// = 60 public function Person(){ maxSpeed = 5; piOver180 = (Math.PI / 180); rotationBetrag = speed; sprung = speed; stageX = 500; stageY = 500; rotDir = 1; maxTimeIntervall = 60; timeCounter = 0; inited = false; randabstand = 9; super(); } public function init(){ maxDims(); removeEventListener(Event.ENTER_FRAME, enterFrame); if (!inited){ zufallizeStartPos(); }; inited = true; zufallizeMe(); addEventListener(Event.ENTER_FRAME, enterFrame); } private function zufallizeStartPos(){ x = (Math.random() * stageX); y = (Math.random() * stageY); } public function SollIchAbpralln(){ if ((((((((x >= maxX)) || ((x <= minX)))) || ((y >= maxY)))) || ((y <= minY)))){ if (rotation <= 0){ rotation = (rotation + 180); } else { rotation = (rotation - 180); }; if (x >= maxX){ x = (maxX - 1); } else { if (x <= minX){ x = (minX + 1); }; }; if (y >= maxY){ y = (maxY - 1); } else { if (y <= minY){ y = minY; }; }; x = (x + (Math.sin((rotation * piOver180)) * 5)); y = (y - (Math.cos((rotation * piOver180)) * 5)); }; } private function enterFrame(_arg1:Event){ timeCounter++; rotation = (rotation + (rotationBetrag * rotDir)); x = (x + (Math.sin((rotation * piOver180)) * speed)); y = (y - (Math.cos((rotation * piOver180)) * speed)); SollIchAbpralln(); if (currentFrame >= (totalFrames - sprung)){ gotoAndPlay(1); } else { gotoAndPlay((currentFrame + sprung)); }; if (timeCounter >= timeIntervall){ timeCounter = 0; init(); }; } private function maxDims(){ minX = randabstand; maxX = (stageX - randabstand); minY = randabstand; maxY = (stageY - randabstand); } public function deleteMe(){ } private function zufallizeMe(){ timeIntervall = Math.round((Math.random() * maxTimeIntervall)); if (Math.random() < 0.5){ rotDir = 1; } else { rotDir = -1; }; speed = ((Math.random() * maxSpeed) + 1); sprung = (Math.round(speed) + 1); rotationBetrag = speed; rotation = (Math.random() * 360); } public function setStageDims(_arg1:Number, _arg2:Number){ stageX = _arg1; stageY = _arg2; } } }//package
Section 5
//Spacer (Spacer) package { public dynamic class Spacer extends Car { } }//package

Library Items

Symbol 1 BitmapUsed by:2
Symbol 2 GraphicUses:1Used by:3
Symbol 3 MovieClipUses:2Used by:6
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:6 10
Symbol 6 MovieClip {Spacer}Uses:3 5
Symbol 7 BitmapUsed by:8
Symbol 8 GraphicUses:7Used by:9
Symbol 9 MovieClipUses:8Used by:10
Symbol 10 MovieClip {Mini}Uses:9 5
Symbol 11 BitmapUsed by:12
Symbol 12 GraphicUses:11Used by:133
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:133
Symbol 15 BitmapUsed by:16
Symbol 16 GraphicUses:15Used by:133
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:133
Symbol 19 BitmapUsed by:20
Symbol 20 GraphicUses:19Used by:133
Symbol 21 BitmapUsed by:22
Symbol 22 GraphicUses:21Used by:133
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:133
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:133
Symbol 27 BitmapUsed by:28
Symbol 28 GraphicUses:27Used by:133
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:133
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:133
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:133
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:35Used by:133
Symbol 37 BitmapUsed by:38
Symbol 38 GraphicUses:37Used by:133
Symbol 39 BitmapUsed by:40
Symbol 40 GraphicUses:39Used by:133
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:133
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:133
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:133
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:133
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:133
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:133
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:133
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:133
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:133
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:133
Symbol 61 BitmapUsed by:62
Symbol 62 GraphicUses:61Used by:133
Symbol 63 BitmapUsed by:64
Symbol 64 GraphicUses:63Used by:133
Symbol 65 BitmapUsed by:66
Symbol 66 GraphicUses:65Used by:133
Symbol 67 BitmapUsed by:68
Symbol 68 GraphicUses:67Used by:133
Symbol 69 BitmapUsed by:70
Symbol 70 GraphicUses:69Used by:133
Symbol 71 BitmapUsed by:72
Symbol 72 GraphicUses:71Used by:133
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73Used by:133
Symbol 75 BitmapUsed by:76
Symbol 76 GraphicUses:75Used by:133
Symbol 77 BitmapUsed by:78
Symbol 78 GraphicUses:77Used by:133
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:133
Symbol 81 BitmapUsed by:82
Symbol 82 GraphicUses:81Used by:133
Symbol 83 BitmapUsed by:84
Symbol 84 GraphicUses:83Used by:133
Symbol 85 BitmapUsed by:86
Symbol 86 GraphicUses:85Used by:133
Symbol 87 BitmapUsed by:88
Symbol 88 GraphicUses:87Used by:133
Symbol 89 BitmapUsed by:90
Symbol 90 GraphicUses:89Used by:133
Symbol 91 BitmapUsed by:92
Symbol 92 GraphicUses:91Used by:133
Symbol 93 BitmapUsed by:94
Symbol 94 GraphicUses:93Used by:133
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:133
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:133
Symbol 99 BitmapUsed by:100
Symbol 100 GraphicUses:99Used by:133
Symbol 101 BitmapUsed by:102
Symbol 102 GraphicUses:101Used by:133
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:133
Symbol 105 BitmapUsed by:106
Symbol 106 GraphicUses:105Used by:133
Symbol 107 BitmapUsed by:108
Symbol 108 GraphicUses:107Used by:133
Symbol 109 BitmapUsed by:110
Symbol 110 GraphicUses:109Used by:133
Symbol 111 BitmapUsed by:112
Symbol 112 GraphicUses:111Used by:133
Symbol 113 BitmapUsed by:114
Symbol 114 GraphicUses:113Used by:133
Symbol 115 BitmapUsed by:116
Symbol 116 GraphicUses:115Used by:133
Symbol 117 BitmapUsed by:118
Symbol 118 GraphicUses:117Used by:133
Symbol 119 BitmapUsed by:120
Symbol 120 GraphicUses:119Used by:133
Symbol 121 BitmapUsed by:122
Symbol 122 GraphicUses:121Used by:133
Symbol 123 BitmapUsed by:124
Symbol 124 GraphicUses:123Used by:133
Symbol 125 BitmapUsed by:126
Symbol 126 GraphicUses:125Used by:133
Symbol 127 BitmapUsed by:128
Symbol 128 GraphicUses:127Used by:133
Symbol 129 BitmapUsed by:130
Symbol 130 GraphicUses:129Used by:133
Symbol 131 BitmapUsed by:132
Symbol 132 GraphicUses:131Used by:133
Symbol 133 MovieClip {Person}Uses:12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132
Symbol 134 SoundUsed by:Timeline

Instance Names

"mp"Symbol 6 MovieClip {Spacer} Frame 1Symbol 5 MovieClip
"pVL"Symbol 6 MovieClip {Spacer} Frame 1Symbol 5 MovieClip
"pVR"Symbol 6 MovieClip {Spacer} Frame 1Symbol 5 MovieClip
"pHR"Symbol 6 MovieClip {Spacer} Frame 1Symbol 5 MovieClip
"pHL"Symbol 6 MovieClip {Spacer} Frame 1Symbol 5 MovieClip
"au"Symbol 10 MovieClip {Mini} Frame 1Symbol 9 MovieClip
"mp"Symbol 10 MovieClip {Mini} Frame 1Symbol 5 MovieClip
"pVL"Symbol 10 MovieClip {Mini} Frame 1Symbol 5 MovieClip
"pVR"Symbol 10 MovieClip {Mini} Frame 1Symbol 5 MovieClip
"pHR"Symbol 10 MovieClip {Mini} Frame 1Symbol 5 MovieClip
"pHL"Symbol 10 MovieClip {Mini} Frame 1Symbol 5 MovieClip

Special Tags

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




http://swfchan.com/17/83529/info.shtml
Created: 31/3 -2019 19:57:17 Last modified: 31/3 -2019 19:57:17 Server time: 09/05 -2024 10:53:35