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

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

nave.swf

This is the info page for
Flash #50991

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


Text
<p align="left"><font face="Trebuchet MS" size="15" color="#555555" letterSpacing="0.000000" kerning="1">x</font></p>

<p align="left"><font face="Trebuchet MS" size="15" color="#555555" letterSpacing="0.000000" kerning="1">y</font></p>

<p align="left"><font face="Trebuchet MS" size="15" color="#555555" letterSpacing="0.000000" kerning="1">x</font></p>

<p align="left"><font face="Trebuchet MS" size="15" color="#555555" letterSpacing="0.000000" kerning="1">y</font></p>

<p align="left"><font face="Trebuchet MS" size="15" color="#555555" letterSpacing="0.000000" kerning="1">Angulo</font></p>

<p align="left"><font face="Trebuchet MS" size="15" color="#555555" letterSpacing="0.000000" kerning="1">y</font></p>

<p align="left"><font face="Trebuchet MS" size="15" color="#555555" letterSpacing="0.000000" kerning="1">y</font></p>

ActionScript [AS3]

Section 1
//MainTimeline (nave_fla.MainTimeline) package nave_fla { import flash.display.*; import flash.text.*; public dynamic class MainTimeline extends MovieClip { public var hipotenusa:TextField; public var lineaX; public var navey:TextField; public var ratax:TextField; public var cateto:TextField; public var navex:TextField; public var ratay:TextField; public var catop:Number; public var mopet:Date; public var lineaY; public var catad:Number; public var borderColor:uint; public var borderSize:uint; public var zona:Number; public var nave:MovieClip; public var angulo:TextField; public var hipo:Number; public var nave2:MovieClip; public var angu; public var linea2:Shape; public var linea:Shape; public function MainTimeline(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ mopet = new Date(); nave.rotation = ((mopet.getSeconds() * 60) + (mopet.getMilliseconds() * 0.06)); ratax.text = ("X = " + stage.mouseX); ratay.text = ("Y = " + stage.mouseY); navex.text = ("Nave x = " + nave2.x); navey.text = ("Nave y = " + nave2.y); catop = (stage.mouseY - nave2.y); catad = (stage.mouseX - nave2.x); hipo = Math.sqrt((Math.pow(catop, 2) + Math.pow(catad, 2))); angu = ((Math.asin((catop / hipo)) * 180) / Math.PI); zona = 0; if (catop >= 0){ zona = 1; } else { if (catop < 0){ zona = 0; }; }; if (catad < 0){ switch (zona){ case 1: angu = (180 - angu); break; case 0: angu = (-180 - angu); break; }; }; nave2.rotation = (angu + 90); cateto.text = ("Cat OP = " + catop); hipotenusa.text = ("Cat AD = " + catad); borderColor = 0xFF00; borderSize = 0; lineaX = (Math.sin((((-1 * (nave.rotation + 180)) * Math.PI) / 180)) * 400); lineaY = (Math.cos((((-1 * (nave.rotation + 180)) * Math.PI) / 180)) * 400); angulo.text = ("Angulo Nave = " + nave.rotation); linea = new Shape(); linea.graphics.lineStyle(borderSize, borderColor); linea.graphics.moveTo(nave.x, nave.y); linea.graphics.lineTo((lineaX + nave.x), (lineaY + nave.y)); addChild(linea); linea2 = new Shape(); linea2.graphics.lineStyle(borderSize, borderColor); linea2.graphics.moveTo(nave2.x, nave2.y); linea2.graphics.lineTo(stage.mouseX, stage.mouseY); addChild(linea2); } function frame2(){ removeChild(linea); removeChild(linea2); gotoAndPlay(1); } } }//package nave_fla

Library Items

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

Instance Names

"nave"Frame 1Symbol 2 MovieClip
"ratax"Frame 1Symbol 4 EditableText
"ratay"Frame 1Symbol 5 EditableText
"navex"Frame 1Symbol 6 EditableText
"navey"Frame 1Symbol 7 EditableText
"nave2"Frame 1Symbol 2 MovieClip
"angulo"Frame 1Symbol 8 EditableText
"cateto"Frame 1Symbol 9 EditableText
"hipotenusa"Frame 1Symbol 10 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.
Protect (24)Timeline Frame 10 bytes ""




http://swfchan.com/11/50991/info.shtml
Created: 25/4 -2019 15:32:38 Last modified: 25/4 -2019 15:32:38 Server time: 28/04 -2024 08:33:37