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

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

Kondense.swf

This is the info page for
Flash #42181

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


Text
<p align="center"><font face="Verdana" size="10" color="#ffffff" letterSpacing="2.000000" kerning="0"><b>sfg</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0">v1.00 Developer: <a href="http://tamugaia.com" target = "_blank">tamugaia.com</a> Sponsor: <a href="http://armorgames.com" target = "_blank">Armor Games</a></font></p>

<p align="left"><font face="Verdana" size="10" color="#003366" letterSpacing="0.000000" kerning="0">This game needs Flash Player 9.0.45.0 or higher</font></p>

<p align="left"><font face="Arial" size="10" color="#333333" letterSpacing="0.000000" kerning="1">FLASH PLAYER VERSION REQUIRED:</font></p>

<p align="right"><font face="Arial" size="10" color="#333333" letterSpacing="0.000000" kerning="1">YOUR FLASH PLAYER VERSION:</font></p>

<p align="left"></p>

<p align="left"></p>

<p align="center"><font face="Arial" size="12" color="#ffffff" letterSpacing="6.000000" kerning="0">LOADING...</font></p>

.COM

<p align="left"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">Your flash player version is not high enough. Some functions may <sbr />not work. Please &quot;get flash player&quot; from adobe.com</font></p>

<p align="left"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">Your flash player version is not high enough. Some functions may <sbr />not work. Please &quot;get flash player&quot; from adobe.com or take the risk...</font></p>

<p align="center"><font face="Arial" size="12" color="#ffffff" letterSpacing="6.000000" kerning="0">COMPLETE</font></p>

3333

9999

Armor
Games

Armor Games

<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>CREDITS</b></font></p>

<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>ARMOR GAMES KONDENSE</b></font></p><p align="left"></p><p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>MADE BY JOSH TAM &lt; TAMUGAIA.COM &gt; FOR ARMORGAMES.COM</b></font></p><p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>CONCEPT, ARTWORK, PROGRAMMING, GAMEPLAY BY JOSH TAM</b></font></p><p align="left"></p><p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>MUSIC:</b></font></p><p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- TAMUGAIA ORCHESTRA</b></font></p><p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- PS2DOG [WOLFENSTINE MIXER]</b></font></p><p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- LINK BRYAN [MY WORLD IS BUBBLES]</b></font></p><p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- CNS SHADOW [LETHAL LANDS]</b></font></p><p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- AUDIOSYNCRATIC [MARKING]</b></font></p><p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- TROGDAR [FULL FLOW]</b></font></p><p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>- AL SARCI [SWAT THAT WASP]</b></font></p><p align="left"></p><p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>THANKS FOR PLAYING!</b></font></p>

<p align="left"><font face="Arial" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>&quot;Q&quot; to toggle Quality</b></font></p><p align="left"><font face="Arial" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>&quot;M&quot; to toggle Music</b></font></p>

HOW TO PLAY

HOW TO PLAY

<p align="left"><font face="Tahoma" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>Just use the mouse to <sbr />tilt the board and <sbr />move the water blob.</b></font></p>

OBJECTIVE

<p align="left"><font face="Tahoma" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>Collect kondensation <sbr />water and useful <sbr />items. Avoid harmful <sbr />items.</b></font></p>

GAMEPLAY

<p align="left"><font face="Tahoma" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>As you collect kondensation, your waterblob will get <sbr />bigger and will be harder to control. &nbsp;Just </b><font color="#ffff99"><b>don&apos;t fall off <sbr />the edge</b></font><b> or </b><font color="#ffff99"><b>hit a bomb</b></font><b> or </b><font color="#ffff99"><b>drain away</b></font><b>!</b></font></p>

ITEMS

<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>Silver - gives you 3333 points</b></font></p>

<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>Gold - gives you 9999 points</b></font></p>

<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>Bomb - Explodes upon <sbr />touch. Instant Game Over!</b></font></p>

<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>Drain Hole - drains <sbr />water from your blob. <sbr />Dangerous if your <sbr />blob is small, useful if <sbr />your blob is big.</b></font></p>

<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>Speed Up</b></font></p>

<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>Slow Down</b></font></p>

<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>Freeze the board</b></font></p><p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>(1 second)</b></font></p>

<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>Size <sbr />reduction</b></font></p>

<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>Reverse <sbr />mode</b></font></p>

START

<p align="left"><font face="Arial" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>&quot;Q&quot; to toggle Quality</b></font></p><p align="left"><font face="Arial" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>&quot;M&quot; to toggle Music</b></font></p>

Score so far:

000000000000000000

P

SCORE

<p align="left"><font face="Arial" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0">&quot;Q&quot; to toggle Quality</font></p><p align="left"><font face="Arial" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0">&quot;M&quot; to toggle Music</font></p>

REVERSAL

REVERSAL

SLOW

SLOW

FROZEN

FROZEN

SPEED UP

SPEED UP

LEVEL COMPLETION TIME

000000000000000000

CLEAR! Next...

C

000000000000000000

000000000000000000

M

000000000000000000

000000000000000000

000000000000000000

000000000000000000

000000000000000000

000000000000000000

<p align="right"><font face="Arial Narrow" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>SUBMIT YOUR SCORE</b></font></p>

<p align="right"><font face="Arial Narrow" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>NAME:</b></font></p>

<p align="right"><font face="Arial Narrow" size="15" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>SCORE:</b></font></p>

<p align="left"><font face="Arial Narrow" size="11" color="#ffffff" letterSpacing="15.000000" kerning="0"><b>TYPE!</b></font></p>

<p align="left"><font face="Arial Narrow" size="11" color="#ffffff" letterSpacing="15.000000" kerning="0"><b>TYPE!</b></font></p>

<p align="left"><font face="Arial Narrow" size="11" color="#ffffff" letterSpacing="15.000000" kerning="0"><b>TYPE!</b></font></p>

<p align="left"><font face="Arial Narrow" size="11" color="#ffffff" letterSpacing="15.000000" kerning="0"><b>TYPE!</b></font></p>

<p align="left"><font face="Arial Narrow" size="11" color="#ffffff" letterSpacing="15.000000" kerning="0"><b>TYPE!</b></font></p>

<p align="left"><font face="Arial Narrow" size="11" color="#ffffff" letterSpacing="15.000000" kerning="0"><b>TYPE!</b></font></p>

<p align="left"><font face="Arial Narrow" size="11" color="#ffffff" letterSpacing="15.000000" kerning="0"><b>TYPE!</b></font></p>

<p align="center"><font face="Arial Narrow" size="11" color="#ffffff" letterSpacing="15.000000" kerning="0"><b>SUBMIT</b></font></p>

<p align="center"><font face="Verdana" size="10" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>To submit, POPUP BLOCKER needs to be <sbr />DISABLED for THIS WEBSITE</b></font></p>

000

000

ActionScript [AS3]

Section 1
//DisplayObject2D (com.blitzagency.papervision3d.DisplayObject2D) package com.blitzagency.papervision3d { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.display.*; import org.papervision3d.core.proto.*; public class DisplayObject2D extends DisplayObject3D { private var className:String; private var scaleFactor:Number; public var imageSequence:MovieClip; private var vertex:Vertex3D; public var displayObject:DisplayObject; public var framer:Number; public var framer_last:Number; public function DisplayObject2D(_arg1:DisplayObject, _arg2:Number=1, _arg3:String=null, _arg4:Object=null){ this.displayObject = _arg1; this.className = className; this.scaleFactor = _arg2; vertex = new Vertex3D(0, 0, 0); super(_arg3, null, _arg4); } override public function project(_arg1:DisplayObject3D, _arg2:CameraObject3D, _arg3:Array=null):Number{ var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; super.project(_arg1, _arg2, _arg3); _local4 = _arg2.focus; _local5 = _arg2.zoom; super.project(_arg1, _arg2, _arg3); _local6 = ((_local4 / (_local4 + screen.z)) * _local5); _local7 = ((_local6 / _local5) * scaleFactor); _local8 = convertAngleTo360((_arg2.rotationX - this.rotationX)); _local9 = convertAngleTo360((_arg2.rotationY - this.rotationY)); _local10 = convertAngleTo360((_arg2.rotationZ - this.rotationZ)); displayObject.x = screen.x; displayObject.y = screen.y; displayObject.scaleX = (displayObject.scaleY = _local7); displayObject.visible = (screen.z >= 0); if (imageSequence){ framer = Math.round(((_local9 * (imageSequence.totalFrames - 1)) / 360)); if (framer_last != framer){ imageSequence.gotoAndStop((framer + 1)); //unresolved jump }; framer_last = framer; }; screenZ = screen.z; return (0); } private function convertAngleTo360(_arg1:Number):Number{ var _local2:Number; _local2 = (_arg1 % 360); if (_local2 < 0){ _local2 = (_local2 + 360); }; return (_local2); } override public function createContainer():void{ super.createContainer(); container.addChild(displayObject); } } }//package com.blitzagency.papervision3d
Section 2
//DebugDispatcher (com.blitzagency.xray.logger.events.DebugDispatcher) package com.blitzagency.xray.logger.events { import flash.events.*; public class DebugDispatcher extends EventDispatcher { public static var TRACE:String = "trace"; public function sendEvent(_arg1:String, _arg2:Object):void{ dispatchEvent(new DebugEvent(DebugDispatcher.TRACE, false, false, _arg2)); } } }//package com.blitzagency.xray.logger.events
Section 3
//DebugEvent (com.blitzagency.xray.logger.events.DebugEvent) package com.blitzagency.xray.logger.events { import flash.events.*; public class DebugEvent extends Event { public var obj:Object; public function DebugEvent(_arg1:String, _arg2:Boolean, _arg3:Boolean, _arg4:Object):void{ obj = new Object(); super(_arg1, _arg2, _arg3); obj = _arg4; } } }//package com.blitzagency.xray.logger.events
Section 4
//ObjectTools (com.blitzagency.xray.logger.util.ObjectTools) package com.blitzagency.xray.logger.util { import com.blitzagency.xray.logger.*; import flash.utils.*; public class ObjectTools { private static var log:XrayLog = new XrayLog(); public function resolveBaseType(_arg1:Object):String{ return (""); } public static function getImmediateClassPath(_arg1:Object):String{ var _local2:String; var _local3:String; _local2 = getQualifiedClassName(_arg1); _local3 = getQualifiedSuperclassName(_arg1); _local2 = ((_local2.indexOf("::") > -1)) ? _local2.split("::").join(".") : _local2; if (_local3 == null){ return (_local2); }; _local3 = ((_local3.indexOf("::") > -1)) ? _local3.split("::").join(".") : _local3; return (((_local3 + ".") + _local2)); } public static function getFullClassPath(_arg1:Object):String{ var _local2:XML; var _local3:Array; var _local4:String; var _local5:XML; var _local6:String; _local2 = describeType(_arg1); _local3 = []; _local4 = getQualifiedClassName(_arg1); _local4 = ((_local4.indexOf("::") > -1)) ? _local4.split("::").join(".") : _local4; _local3.push(_local4); for each (_local5 in _local2.extendsClass) { _local6 = ((_local5.@type.toString().indexOf("::") > -1)) ? _local5.@type.toString().split("::")[1] : _local5.@type.toString(); _local3.push(_local6); }; return (_local3.join(".")); } } }//package com.blitzagency.xray.logger.util
Section 5
//PropertyTools (com.blitzagency.xray.logger.util.PropertyTools) package com.blitzagency.xray.logger.util { import flash.utils.*; public class PropertyTools { private static function getVariables():void{ } public static function getProperties(_arg1:Object):Array{ var ary:Array; var xmlDoc:XML; var item:XML; var name:String; var type:String; var value:Object; var obj = _arg1; ary = []; try { xmlDoc = describeType(obj); for each (item in xmlDoc.variable) { name = item.@name.toString(); type = item.@type.toString(); value = ((obj[name])!=null) ? obj[name] : ""; ary.push({name:name, type:type, value:value}); }; } catch(e:Error) { }; return (ary); } private static function getMethods():void{ } } }//package com.blitzagency.xray.logger.util
Section 6
//Debug (com.blitzagency.xray.logger.Debug) package com.blitzagency.xray.logger { import flash.events.*; import flash.utils.*; import com.blitzagency.xray.logger.events.*; import flash.net.*; public class Debug { private static var connected:Boolean = false; private static var xrayLC:LocalConnection; private static var ed:DebugDispatcher = new DebugDispatcher(); public static function traceObject(_arg1:Object, _arg2:Number=254, _arg3:Number=0, _arg4:String="", _arg5:Number=0):void{ var recurseDepth:Number; var indent:Number; var prop:String; var lead:String; var i:Number; var obj:String; var o = _arg1; var pRecurseDepth = _arg2; var pIndent = _arg3; var pPackage = _arg4; var pLevel = _arg5; try { recurseDepth = pRecurseDepth; indent = pIndent; for (prop in o) { lead = ""; i = 0; while (i < indent) { lead = (lead + " "); i = (i + 1); }; obj = o[prop].toString(); if ((o[prop] is Array)){ obj = "[Array]"; }; if (obj == "[object Object]"){ obj = "[Object]"; }; Debug.trace((((lead + prop) + ": ") + obj), pPackage, pLevel); if (recurseDepth > 0){ Debug.traceObject(o[prop], (recurseDepth - 1), (indent + 1), pPackage, pLevel); }; }; } catch(e:Error) { }; } public static function trace(_arg1:Object, _arg2:String="", _arg3:Number=0):void{ var msg:String; var pMsg = _arg1; var pPackage = _arg2; var pLevel = _arg3; ed.sendEvent(DebugDispatcher.TRACE, {message:pMsg, classPackage:pPackage}); if (!connected){ makeConnection(); }; if (connected){ try { msg = ((String(pMsg).length >= 39995)) ? (String(pMsg).substr(0, 39995) + "...") : String(pMsg); xrayLC.send("_xray_view_conn", "setTrace", msg, pLevel, pPackage); } catch(e:LogError) { LogError("No Xray Interface running"); }; }; } private static function makeConnection():void{ var err:LogError; xrayLC = new LocalConnection(); xrayLC.addEventListener("status", statusHandler); xrayLC.allowDomain("*"); try { xrayLC.connect(("_xray_standAlone_debug" + getTimer())); connected = true; } catch(e:Error) { err = new LogError("log"); setTimeout(makeConnection, 1000); }; } public static function addEventListener(_arg1:String, _arg2:Function):void{ ed.addEventListener(_arg1, _arg2); } private static function initialize():Boolean{ ed = new DebugDispatcher(); return (true); } private static function statusHandler(_arg1:StatusEvent):void{ if ((((((_arg1.code == null)) && ((_arg1.level == "error")))) && (connected))){ connected = false; } else { if ((((_arg1.level == "status")) && ((_arg1.code == null)))){ connected = true; }; }; } } }//package com.blitzagency.xray.logger class LogError extends Error { private function LogError(_arg1:String){ super(_arg1); } }
Section 7
//Log (com.blitzagency.xray.logger.Log) package com.blitzagency.xray.logger { import com.blitzagency.xray.logger.util.*; public class Log { private var level:Number; private var caller:String;// = "" private var classPackage:String; private var dump:Object; private var message:String; public function Log(_arg1:String, _arg2:Object, _arg3:Number, ... _args){ var err:LogError; var nullArray:Array; var str:String; var p_message = _arg1; var p_dump = _arg2; var p_level = _arg3; var rest = _args; caller = ""; super(); try { nullArray.push("bogus"); } catch(e:Error) { err = new LogError("log"); } finally { if (err.hasOwnProperty("getStackTrace")){ str = err.getStackTrace(); setCaller(resolveCaller(str)); } else { setCaller(""); }; setMessage(p_message); setDump(p_dump); setLevel(p_level); setClassPackage(p_dump); }; } public function setLevel(_arg1:Number):void{ level = _arg1; } public function getCaller():String{ return (caller); } public function setMessage(_arg1:String):void{ message = _arg1; } public function getLevel():Number{ return (level); } public function getDump():Object{ return (dump); } public function setCaller(_arg1:String):void{ caller = _arg1; } public function setClassPackage(_arg1:Object):void{ classPackage = ObjectTools.getImmediateClassPath(_arg1); } public function getMessage():String{ return (message); } public function getClassPackage():String{ return (classPackage); } public function setDump(_arg1:Object):void{ dump = _arg1; } private function resolveCaller(_arg1:String):String{ var ary:Array; var str = _arg1; ary = []; try { str = str.split("\n").join(""); ary = str.split("\tat "); str = ary[3]; } catch(e:Error) { } finally { str = ""; }; return (str); } } }//package com.blitzagency.xray.logger class LogError extends Error { private function LogError(_arg1:String){ super(_arg1); } }
Section 8
//Logger (com.blitzagency.xray.logger.Logger) package com.blitzagency.xray.logger { public interface Logger { function setLevel(_arg1:Number=0):void; function debug(_arg1:Log):void; function fatal(_arg1:Log):void; function warn(_arg1:Log):void; function error(_arg1:Log):void; function log(_arg1:String, _arg2:String, _arg3:String, _arg4:Number, _arg5:Object=null):void; function info(_arg1:Log):void; } }//package com.blitzagency.xray.logger
Section 9
//XrayLog (com.blitzagency.xray.logger.XrayLog) package com.blitzagency.xray.logger { public class XrayLog { private var logger:XrayLogger; public function XrayLog(){ logger = XrayLogger.getInstance(); } public function debug(_arg1:String, ... _args):void{ var _local3:Number; if (_args.length == 0){ logger.debug(new Log(_arg1, null, XrayLogger.DEBUG)); }; _local3 = 0; while (_local3 < _args.length) { if (_local3 > 0){ _arg1 = ""; }; logger.debug(new Log(_arg1, _args[_local3], XrayLogger.DEBUG)); _local3++; }; } public function fatal(_arg1:String, ... _args):void{ var _local3:Number; if (_args.length == 0){ logger.fatal(new Log(_arg1, null, XrayLogger.FATAL)); }; _local3 = 0; while (_local3 < _args.length) { if (_local3 > 0){ _arg1 = ""; }; logger.fatal(new Log(_arg1, _args[_local3], XrayLogger.FATAL)); _local3++; }; } public function info(_arg1:String, ... _args):void{ var _local3:Number; if (_args.length == 0){ logger.info(new Log(_arg1, null, XrayLogger.INFO)); }; _local3 = 0; while (_local3 < _args.length) { if (_local3 > 0){ _arg1 = ""; }; logger.info(new Log(_arg1, _args[_local3], XrayLogger.INFO)); _local3++; }; } public function warn(_arg1:String, ... _args):void{ var _local3:Number; if (_args.length == 0){ logger.warn(new Log(_arg1, null, XrayLogger.WARN)); }; _local3 = 0; while (_local3 < _args.length) { if (_local3 > 0){ _arg1 = ""; }; logger.warn(new Log(_arg1, _args[_local3], XrayLogger.WARN)); _local3++; }; } public function error(_arg1:String, ... _args):void{ var _local3:Number; if (_args.length == 0){ logger.error(new Log(_arg1, null, XrayLogger.ERROR)); }; _local3 = 0; while (_local3 < _args.length) { if (_local3 > 0){ _arg1 = ""; }; logger.error(new Log(_arg1, _args[_local3], XrayLogger.ERROR)); _local3++; }; } } }//package com.blitzagency.xray.logger
Section 10
//XrayLogger (com.blitzagency.xray.logger.XrayLogger) package com.blitzagency.xray.logger { import flash.events.*; import flash.utils.*; import com.blitzagency.xray.logger.util.*; public class XrayLogger extends EventDispatcher implements Logger { private var displayObjectRecursionDepth:Number;// = 3 private var level:Number;// = 0 private var indentation:Number;// = 0 private var objectRecursionDepth:Number;// = 254 private var filters:Array; public static var FATAL:Number = 4; public static var WARN:Number = 2; public static var ERROR:Number = 3; public static var INFO:Number = 1; public static var DEBUG:Number = 0; private static var _instance:XrayLogger = null; public static var NONE:Number = 5; public function XrayLogger(){ level = 0; displayObjectRecursionDepth = 3; objectRecursionDepth = 254; indentation = 0; filters = []; super(); } public function checkFilters():Boolean{ var _local1:uint; if (filters.length == 0){ return (true); }; _local1 = 0; while (_local1 < filters.length) { _local1++; }; return (true); } public function debug(_arg1:Log):void{ if (_arg1.getLevel() == level){ log(_arg1.getMessage(), _arg1.getCaller(), _arg1.getClassPackage(), 0, _arg1.getDump()); }; } public function setIndentation(_arg1:Number=0):void{ indentation = _arg1; } public function error(_arg1:Log):void{ if (_arg1.getLevel() >= level){ log(_arg1.getMessage(), _arg1.getCaller(), _arg1.getClassPackage(), 3, _arg1.getDump()); }; } public function setLevel(_arg1:Number=0):void{ level = _arg1; } public function fatal(_arg1:Log):void{ if (_arg1.getLevel() >= level){ log(_arg1.getMessage(), _arg1.getCaller(), _arg1.getClassPackage(), 4, _arg1.getDump()); }; } public function warn(_arg1:Log):void{ if (_arg1.getLevel() >= level){ log(_arg1.getMessage(), _arg1.getCaller(), _arg1.getClassPackage(), 2, _arg1.getDump()); }; } public function setObjectRecursionDepth(_arg1:Number):void{ objectRecursionDepth = _arg1; } public function setDisplayClipRecursionDepth(_arg1:Number):void{ displayObjectRecursionDepth = _arg1; } public function info(_arg1:Log):void{ if (_arg1.getLevel() >= level){ log(_arg1.getMessage(), _arg1.getCaller(), _arg1.getClassPackage(), 1, _arg1.getDump()); }; } public function log(_arg1:String, _arg2:String, _arg3:String, _arg4:Number, _arg5:Object=null):void{ var _local6:String; var _local7:String; var _local8:String; var _local9:Object; _local6 = (("(" + getTimer()) + ") "); if (_arg3.length > 0){ _local6 = (_local6 + (_arg2 + "\n")); }; _local6 = (_local6 + _arg1); if (_arg1.length > 0){ Debug.trace(_local6, _arg3, _arg4); }; if (_arg5 == null){ return; }; _local7 = typeof(_arg5); if ((((((((((_local7 == "string")) || ((_local7 == "number")))) || ((_local7 == "boolean")))) || ((_local7 == "undefined")))) || ((_local7 == "null")))){ Debug.trace(_arg5, _arg3, _arg4); } else { if (_local7 == "xml"){ Debug.trace(_arg5.toString(), _arg3, _arg4); } else { _local8 = ObjectTools.getImmediateClassPath(_arg5); if ((((_local8 == "Object")) || ((_local8 == "Object.Array")))){ Debug.traceObject(_arg5, objectRecursionDepth, indentation, _arg3, _arg4); } else { _local9 = PropertyTools.getProperties(_arg5); Debug.traceObject(_local9, displayObjectRecursionDepth, indentation, _arg3, _arg4); }; }; }; } public function setFilters(_arg1:Array):void{ filters = _arg1; } public static function getInstance():XrayLogger{ if (_instance == null){ _instance = new (XrayLogger); }; return (_instance); } public static function resolveLevelAsName(_arg1:Number):String{ switch (_arg1){ case 0: return ("debug"); case 1: return ("info"); case 2: return ("warn"); case 3: return ("error"); case 4: return ("fatal"); default: return ("debug"); }; } } }//package com.blitzagency.xray.logger
Section 11
//2d_droplet_57 (kondensensation_fla.2d_droplet_57) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class 2d_droplet_57 extends MovieClip { public var timer; public function 2d_droplet_57(){ addFrameScript(0, frame1); } function frame1(){ MovieClip(root).d2d.push(this); timer = 500; visible = false; } } }//package kondensensation_fla
Section 12
//2dhole_56 (kondensensation_fla.2dhole_56) package kondensensation_fla { import flash.display.*; public dynamic class 2dhole_56 extends MovieClip { public function 2dhole_56(){ addFrameScript(0, frame1); } function frame1(){ visible = false; } } }//package kondensensation_fla
Section 13
//armorgames_3d_2008_10 (kondensensation_fla.armorgames_3d_2008_10) package kondensensation_fla { import flash.display.*; public dynamic class armorgames_3d_2008_10 extends MovieClip { public function armorgames_3d_2008_10(){ addFrameScript(0, frame1, 96, frame97); } function frame97(){ MovieClip(parent).play(); } function frame1(){ MovieClip(parent).stop(); } } }//package kondensensation_fla
Section 14
//armorgames_buttonmc_8 (kondensensation_fla.armorgames_buttonmc_8) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class armorgames_buttonmc_8 extends MovieClip { public var agbutton:SimpleButton; public function armorgames_buttonmc_8(){ addFrameScript(0, frame1); } function frame1(){ agbutton.addEventListener(MouseEvent.MOUSE_UP, gotoAG); } public function gotoAG(_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://armorgames.com"), "_blank"); } } }//package kondensensation_fla
Section 15
//bgl1_48 (kondensensation_fla.bgl1_48) package kondensensation_fla { import flash.display.*; public dynamic class bgl1_48 extends MovieClip { public function bgl1_48(){ addFrameScript(7, frame8, 15, frame16, 23, frame24, 31, frame32, 39, frame40); } function frame16(){ stop(); } function frame8(){ stop(); } function frame24(){ stop(); } function frame40(){ stop(); } function frame32(){ stop(); } } }//package kondensensation_fla
Section 16
//cloud_44 (kondensensation_fla.cloud_44) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class cloud_44 extends MovieClip { public function cloud_44(){ addFrameScript(0, frame1, 13, frame14); } function frame14(){ gotoAndPlay((2 + Math.floor((Math.random() * 5)))); } function frame1(){ MovieClip(root).cloudos.push(this); } } }//package kondensensation_fla
Section 17
//explodelah_23 (kondensensation_fla.explodelah_23) package kondensensation_fla { import flash.display.*; public dynamic class explodelah_23 extends MovieClip { public function explodelah_23(){ addFrameScript(27, frame28); } function frame28(){ stop(); } } }//package kondensensation_fla
Section 18
//fadein_43 (kondensensation_fla.fadein_43) package kondensensation_fla { import flash.display.*; public dynamic class fadein_43 extends MovieClip { public function fadein_43(){ addFrameScript(7, frame8); } function frame8(){ stop(); } } }//package kondensensation_fla
Section 19
//FPS_68 (kondensensation_fla.FPS_68) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.text.*; public dynamic class FPS_68 extends MovieClip { public var prevSecondTime:Number; public var secondTime:Number; public var tf:TextField; public var frames:Number; public var time:Number; public var frameTime:Number; public var fps:String; public var prevFrameTime:Number; public var iBar:MovieClip; public function FPS_68(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ prevFrameTime = getTimer(); prevSecondTime = getTimer(); frames = 0; fps = "..."; } function frame2(){ stop(); this.addEventListener(Event.ENTER_FRAME, onEnterFrame); } public function onEnterFrame(_arg1:Event):void{ time = getTimer(); frameTime = (time - prevFrameTime); secondTime = (time - prevSecondTime); if (secondTime >= 1000){ fps = frames.toString(); frames = 0; prevSecondTime = time; } else { frames++; }; prevFrameTime = time; tf.text = (((fps + " FPS / ") + frameTime) + " MS"); iBar.scaleX = (iBar.scaleX - ((iBar.scaleX - (frameTime / 10)) / 5)); } } }//package kondensensation_fla
Section 20
//gamebg_47 (kondensensation_fla.gamebg_47) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class gamebg_47 extends MovieClip { public var bgeffects:MovieClip; public function gamebg_47(){ addFrameScript(0, frame1); } function frame1(){ gotoAndStop(MovieClip(root).level); } } }//package kondensensation_fla
Section 21
//gameover_anim_92 (kondensensation_fla.gameover_anim_92) package kondensensation_fla { import flash.display.*; public dynamic class gameover_anim_92 extends MovieClip { public function gameover_anim_92(){ addFrameScript(10, frame11); } function frame11(){ stop(); } } }//package kondensensation_fla
Section 22
//highscoresub_89 (kondensensation_fla.highscoresub_89) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class highscoresub_89 extends MovieClip { public var submitbutt:SimpleButton; public var totsuko; public var namitz:TextField; public var sturl; public var typeblinker:MovieClip; public var scoritz:TextField; public function highscoresub_89(){ addFrameScript(0, frame1, 2, frame3, 9, frame10); } function frame10(){ stop(); } function frame3(){ submitbutt.addEventListener(MouseEvent.CLICK, clickoSubmit); stop(); } function frame1(){ totsuko = (MovieClip(root).totsuko * MovieClip(root).yos); sturl = MovieClip(root).sturl; scoritz.text = String(MovieClip(parent).totsuko); } public function clickoSubmit(_arg1:MouseEvent):void{ var _local2:URLRequest; var _local3:URLVariables; if (namitz.text != ""){ _local2 = new URLRequest(((("http://tamugaia.com/highscores/insert_kondense.php?playername=" + namitz.text) + "&score=") + scoritz.text)); _local3 = new URLVariables(); _local3.totalscore = namitz.text; _local3.parser = totsuko; _local3.fromwhere = sturl; _local2.data = _local3; _local2.method = URLRequestMethod.POST; navigateToURL(_local2, "_blank"); play(); submitbutt.removeEventListener(MouseEvent.CLICK, clickoSubmit); } else { typeblinker.play(); }; } } }//package kondensensation_fla
Section 23
//indi_62 (kondensensation_fla.indi_62) package kondensensation_fla { import flash.display.*; import flash.text.*; public dynamic class indi_62 extends MovieClip { public var levelscaler:MovieClip; public var indi_frozen:MovieClip; public var suko:TextField; public var indi_reversal:MovieClip; public var starto:SimpleButton; public var indi_speedup:MovieClip; public var indi_slow:MovieClip; public function indi_62(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package kondensensation_fla
Section 24
//indi_freeze_65 (kondensensation_fla.indi_freeze_65) package kondensensation_fla { import flash.display.*; public dynamic class indi_freeze_65 extends MovieClip { public function indi_freeze_65(){ addFrameScript(5, frame6); } function frame6(){ stop(); } } }//package kondensensation_fla
Section 25
//indi_reversal_63 (kondensensation_fla.indi_reversal_63) package kondensensation_fla { import flash.display.*; public dynamic class indi_reversal_63 extends MovieClip { public function indi_reversal_63(){ addFrameScript(5, frame6); } function frame6(){ stop(); } } }//package kondensensation_fla
Section 26
//indi_slow_64 (kondensensation_fla.indi_slow_64) package kondensensation_fla { import flash.display.*; public dynamic class indi_slow_64 extends MovieClip { public function indi_slow_64(){ addFrameScript(5, frame6); } function frame6(){ stop(); } } }//package kondensensation_fla
Section 27
//indi_speedup_66 (kondensensation_fla.indi_speedup_66) package kondensensation_fla { import flash.display.*; public dynamic class indi_speedup_66 extends MovieClip { public function indi_speedup_66(){ addFrameScript(5, frame6); } function frame6(){ stop(); } } }//package kondensensation_fla
Section 28
//intro_tamugaia_11 (kondensensation_fla.intro_tamugaia_11) package kondensensation_fla { import flash.display.*; public dynamic class intro_tamugaia_11 extends MovieClip { public function intro_tamugaia_11(){ addFrameScript(0, frame1, 91, frame92); } function frame1(){ MovieClip(parent).stop(); } function frame92(){ MovieClip(parent).play(); } } }//package kondensensation_fla
Section 29
//item_3D_anim_19 (kondensensation_fla.item_3D_anim_19) package kondensensation_fla { import flash.display.*; public dynamic class item_3D_anim_19 extends MovieClip { public var flake:MovieClip; public function item_3D_anim_19(){ addFrameScript(8, frame9, 14, frame15, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 41, frame42, 50, frame51, 56, frame57, 65, frame66, 74, frame75, 110, frame111, 146, frame147, 155, frame156); } function frame156(){ gotoAndPlay((currentFrame - 8)); } function frame75(){ gotoAndPlay((currentFrame - 8)); } function frame15(){ stop(); } function frame25(){ flake.rotation = (flake.rotation + 20); } function frame26(){ flake.rotation = (flake.rotation + 20); } function frame24(){ gotoAndPlay((currentFrame - 8)); } function frame9(){ gotoAndPlay((currentFrame - 8)); } function frame29(){ flake.rotation = (flake.rotation + 20); } function frame111(){ stop(); } function frame27(){ flake.rotation = (flake.rotation + 20); } function frame30(){ flake.rotation = (flake.rotation + 20); } function frame28(){ flake.rotation = (flake.rotation + 20); } function frame31(){ flake.rotation = (flake.rotation + 20); } function frame33(){ gotoAndPlay((currentFrame - 8)); } function frame32(){ flake.rotation = (flake.rotation + 20); } function frame42(){ gotoAndPlay((currentFrame - 8)); } function frame51(){ gotoAndPlay((currentFrame - 8)); } function frame57(){ stop(); } function frame66(){ gotoAndPlay((currentFrame - 8)); } function frame147(){ stop(); } } }//package kondensensation_fla
Section 30
//item_bomb_58 (kondensensation_fla.item_bomb_58) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class item_bomb_58 extends MovieClip { public var funk; public function item_bomb_58(){ addFrameScript(0, frame1); } function frame1(){ MovieClip(root)._item.push(this); funk = "bomb"; visible = false; } } }//package kondensensation_fla
Section 31
//item_cutsize_71 (kondensensation_fla.item_cutsize_71) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class item_cutsize_71 extends MovieClip { public var funk; public function item_cutsize_71(){ addFrameScript(0, frame1); } function frame1(){ MovieClip(root)._item.push(this); funk = "cutsize"; visible = false; } } }//package kondensensation_fla
Section 32
//item_frozen_75 (kondensensation_fla.item_frozen_75) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class item_frozen_75 extends MovieClip { public var funk; public function item_frozen_75(){ addFrameScript(0, frame1); } function frame1(){ MovieClip(root).time_item.push(this); funk = "frozen"; visible = false; } } }//package kondensensation_fla
Section 33
//item_megapoints_77 (kondensensation_fla.item_megapoints_77) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class item_megapoints_77 extends MovieClip { public var funk; public function item_megapoints_77(){ addFrameScript(0, frame1); } function frame1(){ MovieClip(root)._item.push(this); funk = "megapoints"; visible = false; } } }//package kondensensation_fla
Section 34
//item_points_59 (kondensensation_fla.item_points_59) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class item_points_59 extends MovieClip { public var funk; public function item_points_59(){ addFrameScript(0, frame1); } function frame1(){ MovieClip(root)._item.push(this); funk = "points"; visible = false; } } }//package kondensensation_fla
Section 35
//item_reversal_78 (kondensensation_fla.item_reversal_78) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class item_reversal_78 extends MovieClip { public var funk; public function item_reversal_78(){ addFrameScript(0, frame1); } function frame1(){ MovieClip(root).time_item.push(this); funk = "reversal"; visible = false; } } }//package kondensensation_fla
Section 36
//item_slowmo_74 (kondensensation_fla.item_slowmo_74) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class item_slowmo_74 extends MovieClip { public var funk; public function item_slowmo_74(){ addFrameScript(0, frame1); } function frame1(){ MovieClip(root).time_item.push(this); funk = "slow"; visible = false; } } }//package kondensensation_fla
Section 37
//item_speedup_72 (kondensensation_fla.item_speedup_72) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class item_speedup_72 extends MovieClip { public var funk; public function item_speedup_72(){ addFrameScript(0, frame1); } function frame1(){ MovieClip(root).time_item.push(this); funk = "speedup"; visible = false; } } }//package kondensensation_fla
Section 38
//kondense_35 (kondensensation_fla.kondense_35) package kondensensation_fla { import flash.display.*; public dynamic class kondense_35 extends MovieClip { public function kondense_35(){ addFrameScript(8, frame9); } function frame9(){ stop(); } } }//package kondensensation_fla
Section 39
//MainTimeline (kondensensation_fla.MainTimeline) package kondensensation_fla { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.display.*; import org.papervision3d.materials.*; import org.papervision3d.core.*; import org.papervision3d.utils.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import flash.media.*; import com.blitzagency.papervision3d.*; import org.papervision3d.scenes.*; import org.papervision3d.cameras.*; import flash.text.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var loaded:Number; public var levelmaxers; public var bombhspeed; public var targetrotation; public var b2:SimpleButton; public var b4:SimpleButton; public var b5:SimpleButton; public var b3:SimpleButton; public var levelmaps; public var yos; public var size; public var music:uint; public var bbg:MovieClip; public var totsuko:uint; public var otimer; public var fpver_a:Array; public var yosko:MovieClip; public var bg:MovieClip; public var leveltimer:uint; public var percent:int; public var fpver_n:Array; public var holevspeed; public var plane:MovieClip; public var sound_click:buttonclick; public var itemlinkage; public var appd:TextField; public var sound_point; public var speeding; public var indi:MovieClip; public var sound_soot; public var ti; public var grounder:Sprite; public var itimer; public var groundmat; public var scene:MovieScene3D; public var dr; public var preloader:MovieClip; public var fpver:String; public var mydrop; public var score:uint; public var rotud; public var container:Sprite; public var bombvspeed; public var myd2d:MovieClip; public var myd3d2; public var myd3d; public var item3D; public var myd2d2:MovieClip; public var cloudos; public var hspeed; public var sound_loser; public var mylobang; public var drop; public var sound_victory; public var flake:MovieClip; public var bgmusic; public var bgchannel:SoundChannel; public var camera:Camera3D; public var reversing; public var itemo3D; public var sound_slow; public var hole2d:MovieClip; public var rot1:MovieClip; public var rot2:MovieClip; public var mydrops; public var timer:uint; public var sound_drainage; public var hssub:MovieClip; public var hole3d; public var sound_poot; public var time_item; public var slowmo; public var groundscene:MovieScene3D; public var sturl:String; public var sound_winning; public var dr3D; public var readytimer; public var level:uint; public var ground:Plane; public var froze; public var vspeed; public var scoritz:TextField; public var rotlr; public var holehspeed; public var sound_explode; public var b1start:SimpleButton; public var d2d; public var scoresofar:TextField; public var _item; public function MainTimeline(){ addFrameScript(0, frame1, 2, frame3, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 37, frame38, 38, frame39, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 46, frame47, 47, frame48, 49, frame50, 50, frame51, 51, frame52, 53, frame54, 54, frame55, 56, frame57, 57, frame58, 58, frame59, 60, frame61, 61, frame62, 63, frame64, 64, frame65, 65, frame66, 67, frame68, 68, frame69, 70, frame71, 71, frame72, 72, frame73, 74, frame75, 75, frame76, 77, frame78, 78, frame79, 79, frame80, 81, frame82, 82, frame83, 84, frame85, 85, frame86, 86, frame87, 88, frame89, 89, frame90, 91, frame92, 92, frame93, 93, frame94, 95, frame96, 96, frame97, 98, frame99, 99, frame100, 100, frame101, 102, frame103, 103, frame104, 105, frame106, 106, frame107, 107, frame108, 109, frame110, 110, frame111, 112, frame113, 113, frame114, 114, frame115, 122, frame123, 123, frame124, 132, frame133); } public function progressListener(_arg1:ProgressEvent):void{ loaded = (_arg1.bytesLoaded / _arg1.bytesTotal); percent = (loaded * 100); preloader.bar.percen.text = percent; preloader.bar.x = (-41 + (loaded * 100)); } public function gotoTamugaia(_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://tamugaia.com"), "_blank"); } function frame10(){ } function frame3(){ if ((((percent >= 100)) || ((preloader.bar.percen.text == "")))){ preloader.playbutton.addEventListener(MouseEvent.CLICK, clickSubmit); preloader.play(); loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressListener); stop(); } else { gotoAndPlay(2); }; } function frame8(){ } function frame9(){ stage.addEventListener(KeyboardEvent.KEY_UP, qtoggle); gotoAndPlay("letsgo"); } function frame1(){ sturl = String(this.root.loaderInfo.url); appd.text = String(sturl); fpver = Capabilities.version.slice(4, Capabilities.version.length); preloader.fpreq.text = "9,0,45,0"; preloader.fpyours.text = String(fpver); fpver_a = String(fpver).split(",", 4); fpver_n = preloader.fpreq.text.split(",", 4); if (int(fpver_a[0]) > int(fpver_n[0])){ preloader.gotoAndStop("ok"); } else { if (int(fpver_a[0]) < int(fpver_n[0])){ preloader.gotoAndStop("notok"); } else { if (int(fpver_a[1]) > int(fpver_n[1])){ preloader.gotoAndStop("ok"); } else { if (int(fpver_a[1]) < int(fpver_n[1])){ preloader.gotoAndStop("notok"); } else { if (int(fpver_a[2]) > int(fpver_n[2])){ preloader.gotoAndStop("ok"); } else { if (int(fpver_a[2]) < int(fpver_n[2])){ preloader.gotoAndStop("notok"); } else { if (int(fpver_a[3]) >= int(fpver_n[3])){ preloader.gotoAndStop("ok"); } else { if (int(fpver_a[3]) < int(fpver_n[3])){ preloader.gotoAndStop("notok"); }; }; }; }; }; }; }; }; percent = 100; loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener); preloader.button.addEventListener(MouseEvent.MOUSE_UP, gotoTamugaia); stage.showDefaultContextMenu = false; } function frame6(){ stage.showDefaultContextMenu = false; stage.quality = "MEDIUM"; } public function slow(_arg1, _arg2, _arg3){ if (itimer[_arg2] > 0){ var _local4 = itimer; var _local5 = _arg2; var _local6 = (_local4[_local5] - 1); _local4[_local5] = _local6; slowmo = 2; _arg1.visible = false; indi.indi_slow.play(); } else { slowmo = 1; }; if (itimer[_arg2] == 1){ bg.bgeffects.gotoAndPlay("no"); _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); while (!(plane.hitTestPoint(_arg1.x, _arg1.y, true))) { _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); }; item3D[_arg2].imageSequence.anim.gotoAndPlay(("mainloop_" + _arg3)); }; if ((((itimer[_arg2] == 0)) && ((Math.sqrt((((myd2d.x - _arg1.x) * (myd2d.x - _arg1.x)) + ((myd2d.y - _arg1.y) * (myd2d.y - _arg1.y)))) < (myd2d.width / 2))))){ itimer[_arg2] = 150; sound_slow.play(); bg.bgeffects.gotoAndPlay("slow"); item3D[_arg2].imageSequence.anim.gotoAndPlay("disappear"); }; } public function clickGo(_arg1:MouseEvent):void{ indi.play(); stage.addEventListener(Event.ENTER_FRAME, enterframe); stage.addEventListener(KeyboardEvent.KEY_UP, mtoggle); if (music == 1){ bgchannel = bgmusic.play(); //unresolved jump }; indi.starto.removeEventListener(MouseEvent.CLICK, clickGo); } public function frozen(_arg1, _arg2, _arg3){ if (itimer[_arg2] > 0){ var _local4 = itimer; var _local5 = _arg2; var _local6 = (_local4[_local5] - 1); _local4[_local5] = _local6; froze = 1; _arg1.visible = false; indi.indi_frozen.play(); } else { froze = 0; }; if (itimer[_arg2] == 1){ bg.bgeffects.gotoAndPlay("no"); _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); while (!(plane.hitTestPoint(_arg1.x, _arg1.y, true))) { _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); }; item3D[_arg2].imageSequence.anim.gotoAndPlay(("mainloop_" + _arg3)); ground.container.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0); }; if ((((itimer[_arg2] == 0)) && ((Math.sqrt((((myd2d.x - _arg1.x) * (myd2d.x - _arg1.x)) + ((myd2d.y - _arg1.y) * (myd2d.y - _arg1.y)))) < (myd2d.width / 2))))){ itimer[_arg2] = 30; sound_poot.play(); bg.bgeffects.gotoAndPlay("frozen"); ground.container.transform.colorTransform = new ColorTransform(1, 2, 2, 2, 0, 0, 0, 0); item3D[_arg2].imageSequence.anim.gotoAndPlay("disappear"); }; } public function playmore(_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://armorgames.com"), "_blank"); } function frame44(){ b5.removeEventListener(MouseEvent.CLICK, clickPlay); play(); } function frame39(){ cloudos = new Array(); b1start.addEventListener(MouseEvent.CLICK, clickPlay); stage.addEventListener(KeyboardEvent.KEY_UP, mtoggle); bgmusic = new bubbles(); if (music == 1){ bgchannel = bgmusic.play(); //unresolved jump }; } public function bomb(_arg1, _arg2, _arg3){ if (otimer[_arg2] > 0){ var _local4 = otimer; var _local5 = _arg2; var _local6 = (_local4[_local5] - 1); _local4[_local5] = _local6; _arg1.visible = false; //unresolved jump }; if (otimer[_arg2] == 1){ _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); while (!(plane.hitTestPoint(_arg1.x, _arg1.y, true))) { _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); }; itemo3D[_arg2].imageSequence.anim.gotoAndPlay(("mainloop_" + _arg3)); }; if ((((otimer[_arg2] == 0)) && ((Math.sqrt((((myd2d.x - _arg1.x) * (myd2d.x - _arg1.x)) + ((myd2d.y - _arg1.y) * (myd2d.y - _arg1.y)))) < (myd2d.width / 2))))){ otimer[_arg2] = 300; size = -1; sound_explode.play(); itemo3D[_arg2].imageSequence.anim.gotoAndPlay("explode"); }; _arg1.x = (_arg1.x + bombhspeed); _arg1.y = (_arg1.y + bombvspeed); if ((timer % 90) == 0){ bombhspeed = (Math.floor((Math.random() * 5)) - 2); //unresolved jump }; if ((timer % 176) == 0){ bombvspeed = (Math.floor((Math.random() * 5)) - 2); //unresolved jump }; if (((plane.hitTestPoint((_arg1.x + 10), _arg1.y, true)) && (plane.hitTestPoint((_arg1.x - 10), _arg1.y, true)))){ } else { bombhspeed = (bombhspeed * -1); }; if (((plane.hitTestPoint(_arg1.x, (_arg1.y + 10), true)) && (plane.hitTestPoint(_arg1.x, (_arg1.y - 10), true)))){ } else { bombvspeed = (bombvspeed * -1); }; } public function playagain(_arg1:MouseEvent):void{ gotoAndPlay("mainmenu", "mainmenu"); removeChild(container); removeChild(grounder); removeChild(bbg); b2.removeEventListener(MouseEvent.CLICK, playmore); b3.removeEventListener(MouseEvent.CLICK, helptips); b4.removeEventListener(MouseEvent.CLICK, playagain); } function frame45(){ bgchannel.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, mtoggle); Mouse.show(); d2d = new Array(); leveltimer = 0; timer = 0; itimer = [0, 0, 0, 0]; otimer = [0, 0, 0, 0, 0]; hspeed = 0; vspeed = 0; holehspeed = 0; holevspeed = 0; bombhspeed = 0; bombvspeed = 0; targetrotation = 0; level = 1; size = 0; totsuko = 0; totsuko = 0; _item = []; time_item = []; reversing = 1; speeding = 1; froze = 0; readytimer = 60; cloudos = new Array(); scoresofar.text = String(totsuko); } public function mtoggle(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 77){ music = (1 - music); if (music == 1){ bgchannel = bgmusic.play(); } else { bgchannel.stop(); }; sound_poot.play(); }; } function frame38(){ sound_click = new buttonclick(); sound_point = new buttonpoint(); sound_poot = new poot(); sound_slow = new slowdown(); sound_soot = new soot(); sound_explode = new explop(); sound_drainage = new drainage(); sound_loser = new loser(); sound_victory = new victory(); sound_winning = new winning(); bgmusic = new bubbles(); yos = yosko.height; } function frame41(){ stage.addEventListener(Event.ENTER_FRAME, enterframecloud); stop(); } function frame43(){ b5.addEventListener(MouseEvent.CLICK, clickPlay); b1start.removeEventListener(MouseEvent.CLICK, clickPlay); stop(); } function frame51(){ indi.starto.addEventListener(MouseEvent.CLICK, clickGo); trace(((leveltimer + " ") + levelmaxers[level])); stop(); } function frame52(){ bgchannel.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, mtoggle); removeChild(indi); removeChild(container); removeChild(grounder); sound_winning.play(0, 0, new SoundTransform(0.5)); Mouse.show(); d2d = new Array(); leveltimer = 0; timer = 0; itimer = [0, 0, 0, 0]; otimer = [0, 0, 0, 0, 0]; hspeed = 0; vspeed = 0; holehspeed = 0; holevspeed = 0; bombhspeed = 0; bombvspeed = 0; targetrotation = 0; size = 0; _item = new Array(); time_item = new Array(); reversing = 1; speeding = 1; froze = 0; readytimer = 60; cloudos = new Array(); scoresofar.text = String(totsuko); } function frame47(){ stage.addEventListener(Event.ENTER_FRAME, enterframecloudagain); stop(); } function frame48(){ stage.removeEventListener(Event.ENTER_FRAME, enterframecloudagain); bgmusic = new fullflow(); } function frame57(){ grounder = new Sprite(); grounder.x = 275; grounder.y = 206; addChild(grounder); container = new Sprite(); container.x = 275; container.y = 206; addChild(container); scene = new MovieScene3D(container); groundscene = new MovieScene3D(grounder); camera = new Camera3D(); camera.z = -300; camera.y = -300; camera.zoom = 70; camera.focus = 5; groundmat = new PreciseMovieAssetMaterial(levelmaps[level], true); ground = new Plane(groundmat, plane.width, plane.height, 1, 1); ground.rotationX = -150; ground.y = 0; ground.x = 0; ground.z = 0; groundscene.addChild(ground); dr3D = new Array(); for (dr in d2d) { drop = new d3d(); dr3D[dr] = new DisplayObject2D((drop as DisplayObject), 100); dr3D[dr].imageSequence = (drop as MovieClip); scene.addChild(dr3D[dr]); dr3D[dr].x = (d2d[dr].x - 275); dr3D[dr].y = -((d2d[dr].y - 206)); dr3D[dr].z = 0; }; mydrop = new my_d3d(); myd3d = new DisplayObject2D((mydrop as DisplayObject), 100); myd3d.imageSequence = (mydrop as MovieClip); myd3d.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d); mydrops = new my_d3d(); myd3d2 = new DisplayObject2D((mydrops as DisplayObject), 100); myd3d2.imageSequence = (mydrops as MovieClip); myd3d2.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d2); mylobang = new lobang(); hole3d = new DisplayObject2D((mylobang as DisplayObject), 100); hole3d.imageSequence = (mylobang as MovieClip); scene.addChild(hole3d); item3D = new Array(); for (ti in time_item) { itemlinkage = new item_3d(); item3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); item3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(item3D[ti]); item3D[ti].x = (time_item[ti].x - 275); item3D[ti].y = -((time_item[ti].y - 206)); item3D[ti].z = 0; item3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + time_item[ti].funk)); }; itemo3D = new Array(); for (ti in _item) { itemlinkage = new item_3d(); itemo3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); itemo3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(itemo3D[ti]); itemo3D[ti].x = (_item[ti].x - 275); itemo3D[ti].y = -((_item[ti].y - 206)); itemo3D[ti].z = 0; itemo3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + _item[ti].funk)); }; scene.renderCamera(camera); groundscene.renderCamera(camera); addChild(indi); } function frame50(){ grounder = new Sprite(); grounder.x = 275; grounder.y = 206; addChild(grounder); container = new Sprite(); container.x = 275; container.y = 206; addChild(container); scene = new MovieScene3D(container); groundscene = new MovieScene3D(grounder); camera = new Camera3D(); camera.z = -300; camera.y = -300; camera.zoom = 70; camera.focus = 5; groundmat = new PreciseMovieAssetMaterial(levelmaps[level], true); ground = new Plane(groundmat, plane.width, plane.height, 1, 1); ground.rotationX = -150; ground.y = 0; ground.x = 0; ground.z = 0; groundscene.addChild(ground); dr3D = new Array(); for (dr in d2d) { drop = new d3d(); dr3D[dr] = new DisplayObject2D((drop as DisplayObject), 100); dr3D[dr].imageSequence = (drop as MovieClip); scene.addChild(dr3D[dr]); dr3D[dr].x = (d2d[dr].x - 275); dr3D[dr].y = -((d2d[dr].y - 206)); dr3D[dr].z = 0; }; mydrop = new my_d3d(); myd3d = new DisplayObject2D((mydrop as DisplayObject), 100); myd3d.imageSequence = (mydrop as MovieClip); myd3d.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d); mydrops = new my_d3d(); myd3d2 = new DisplayObject2D((mydrops as DisplayObject), 100); myd3d2.imageSequence = (mydrops as MovieClip); myd3d2.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d2); mylobang = new lobang(); hole3d = new DisplayObject2D((mylobang as DisplayObject), 100); hole3d.imageSequence = (mylobang as MovieClip); scene.addChild(hole3d); item3D = new Array(); for (ti in time_item) { itemlinkage = new item_3d(); item3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); item3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(item3D[ti]); item3D[ti].x = (time_item[ti].x - 275); item3D[ti].y = -((time_item[ti].y - 206)); item3D[ti].z = 0; item3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + time_item[ti].funk)); }; itemo3D = new Array(); for (ti in _item) { itemlinkage = new item_3d(); itemo3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); itemo3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(itemo3D[ti]); itemo3D[ti].x = (_item[ti].x - 275); itemo3D[ti].y = -((_item[ti].y - 206)); itemo3D[ti].z = 0; itemo3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + _item[ti].funk)); }; scene.renderCamera(camera); groundscene.renderCamera(camera); addChild(indi); } function frame54(){ stage.addEventListener(Event.ENTER_FRAME, enterframecloudagain); stop(); } function frame7(){ timer = 0; leveltimer = 0; itimer = [0, 0, 0, 0]; otimer = [0, 0, 0, 0, 0]; hspeed = 0; vspeed = 0; holehspeed = 0; holevspeed = 0; bombhspeed = 0; bombvspeed = 0; targetrotation = 0; totsuko = 0; level = 1; size = 0; score = 0; music = 1; levelmaps = ["", "maplevel1", "maplevel2", "maplevel3", "maplevel4", "maplevel5", "maplevel6", "maplevel7", "maplevel8", "maplevel9", "maplevel10"]; levelmaxers = [0, 43204, 86406, 129605, 172801, 216135, 295229, 302413, 345617, 389821, 432356]; _item = []; time_item = []; reversing = 1; speeding = 1; froze = 0; slowmo = 1; } function frame59(){ bgchannel.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, mtoggle); stage.removeEventListener(Event.ENTER_FRAME, enterframe); removeChild(indi); removeChild(container); removeChild(grounder); sound_winning.play(0, 0, new SoundTransform(0.5)); Mouse.show(); d2d = new Array(); leveltimer = 0; timer = 0; itimer = [0, 0, 0, 0]; otimer = [0, 0, 0, 0, 0]; hspeed = 0; vspeed = 0; holehspeed = 0; holevspeed = 0; bombhspeed = 0; bombvspeed = 0; targetrotation = 0; size = 0; _item = new Array(); time_item = new Array(); reversing = 1; speeding = 1; froze = 0; readytimer = 60; cloudos = new Array(); scoresofar.text = String(totsuko); } public function points(_arg1, _arg2, _arg3){ if (otimer[_arg2] > 0){ var _local4 = otimer; var _local5 = _arg2; var _local6 = (_local4[_local5] - 1); _local4[_local5] = _local6; _arg1.visible = false; //unresolved jump }; if (otimer[_arg2] == 1){ _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); while (!(plane.hitTestPoint(_arg1.x, _arg1.y, true))) { _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); }; itemo3D[_arg2].imageSequence.anim.gotoAndPlay(("mainloop_" + _arg3)); }; if ((((otimer[_arg2] == 0)) && ((Math.sqrt((((myd2d.x - _arg1.x) * (myd2d.x - _arg1.x)) + ((myd2d.y - _arg1.y) * (myd2d.y - _arg1.y)))) < (myd2d.width / 1.5))))){ otimer[_arg2] = 300; totsuko = (totsuko + 3333); sound_poot.play(); itemo3D[_arg2].imageSequence.anim.gotoAndPlay("getpoints"); }; } function frame68(){ stage.addEventListener(Event.ENTER_FRAME, enterframecloudagain); stop(); } function frame61(){ stage.addEventListener(Event.ENTER_FRAME, enterframecloudagain); stop(); } function frame58(){ indi.starto.addEventListener(MouseEvent.CLICK, clickGo); trace(((leveltimer + " ") + levelmaxers[level])); stop(); } function frame62(){ stage.removeEventListener(Event.ENTER_FRAME, enterframecloudagain); bgmusic = new marking(); } public function qtoggle(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 81){ if (stage.quality == "MEDIUM"){ stage.quality = "LOW"; } else { stage.quality = "MEDIUM"; }; sound_poot.play(); }; } function frame55(){ stage.removeEventListener(Event.ENTER_FRAME, enterframecloudagain); bgmusic = new swat(); } public function clickPlay(_arg1:MouseEvent):void{ play(); } function frame75(){ stage.addEventListener(Event.ENTER_FRAME, enterframecloudagain); stop(); } function frame73(){ bgchannel.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, mtoggle); stage.removeEventListener(Event.ENTER_FRAME, enterframe); removeChild(indi); removeChild(container); removeChild(grounder); sound_winning.play(0, 0, new SoundTransform(0.5)); Mouse.show(); d2d = new Array(); leveltimer = 0; timer = 0; itimer = [0, 0, 0, 0]; otimer = [0, 0, 0, 0, 0]; hspeed = 0; vspeed = 0; holehspeed = 0; holevspeed = 0; bombhspeed = 0; bombvspeed = 0; targetrotation = 0; size = 0; _item = new Array(); time_item = new Array(); reversing = 1; speeding = 1; froze = 0; readytimer = 60; cloudos = new Array(); scoresofar.text = String(totsuko); } function frame76(){ stage.removeEventListener(Event.ENTER_FRAME, enterframecloudagain); bgmusic = new lethallands(); } function frame78(){ grounder = new Sprite(); grounder.x = 275; grounder.y = 206; addChild(grounder); container = new Sprite(); container.x = 275; container.y = 206; addChild(container); scene = new MovieScene3D(container); groundscene = new MovieScene3D(grounder); camera = new Camera3D(); camera.z = -300; camera.y = -300; camera.zoom = 70; camera.focus = 5; groundmat = new PreciseMovieAssetMaterial(levelmaps[level], true); ground = new Plane(groundmat, plane.width, plane.height, 1, 1); ground.rotationX = -150; ground.y = 0; ground.x = 0; ground.z = 0; groundscene.addChild(ground); dr3D = new Array(); for (dr in d2d) { drop = new d3d(); dr3D[dr] = new DisplayObject2D((drop as DisplayObject), 100); dr3D[dr].imageSequence = (drop as MovieClip); scene.addChild(dr3D[dr]); dr3D[dr].x = (d2d[dr].x - 275); dr3D[dr].y = -((d2d[dr].y - 206)); dr3D[dr].z = 0; }; mydrop = new my_d3d(); myd3d = new DisplayObject2D((mydrop as DisplayObject), 100); myd3d.imageSequence = (mydrop as MovieClip); myd3d.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d); mydrops = new my_d3d(); myd3d2 = new DisplayObject2D((mydrops as DisplayObject), 100); myd3d2.imageSequence = (mydrops as MovieClip); myd3d2.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d2); mylobang = new lobang(); hole3d = new DisplayObject2D((mylobang as DisplayObject), 100); hole3d.imageSequence = (mylobang as MovieClip); scene.addChild(hole3d); item3D = new Array(); for (ti in time_item) { itemlinkage = new item_3d(); item3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); item3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(item3D[ti]); item3D[ti].x = (time_item[ti].x - 275); item3D[ti].y = -((time_item[ti].y - 206)); item3D[ti].z = 0; item3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + time_item[ti].funk)); }; itemo3D = new Array(); for (ti in _item) { itemlinkage = new item_3d(); itemo3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); itemo3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(itemo3D[ti]); itemo3D[ti].x = (_item[ti].x - 275); itemo3D[ti].y = -((_item[ti].y - 206)); itemo3D[ti].z = 0; itemo3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + _item[ti].funk)); }; scene.renderCamera(camera); groundscene.renderCamera(camera); addChild(indi); } function frame65(){ indi.starto.addEventListener(MouseEvent.CLICK, clickGo); stop(); } function frame72(){ indi.starto.addEventListener(MouseEvent.CLICK, clickGo); stop(); } public function speedup(_arg1, _arg2, _arg3){ if (itimer[_arg2] > 0){ var _local4 = itimer; var _local5 = _arg2; var _local6 = (_local4[_local5] - 1); _local4[_local5] = _local6; speeding = 2; _arg1.visible = false; indi.indi_speedup.play(); } else { speeding = 1; }; if (itimer[_arg2] == 1){ bg.bgeffects.gotoAndPlay("no"); _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); while (!(plane.hitTestPoint(_arg1.x, _arg1.y, true))) { _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); }; item3D[_arg2].imageSequence.anim.gotoAndPlay(("mainloop_" + _arg3)); }; if ((((itimer[_arg2] == 0)) && ((Math.sqrt((((myd2d.x - _arg1.x) * (myd2d.x - _arg1.x)) + ((myd2d.y - _arg1.y) * (myd2d.y - _arg1.y)))) < (myd2d.width / 2))))){ itimer[_arg2] = 150; sound_soot.play(); bg.bgeffects.gotoAndPlay("speed"); item3D[_arg2].imageSequence.anim.gotoAndPlay("disappear"); }; } function frame85(){ grounder = new Sprite(); grounder.x = 275; grounder.y = 206; addChild(grounder); container = new Sprite(); container.x = 275; container.y = 206; addChild(container); scene = new MovieScene3D(container); groundscene = new MovieScene3D(grounder); camera = new Camera3D(); camera.z = -300; camera.y = -300; camera.zoom = 70; camera.focus = 5; groundmat = new PreciseMovieAssetMaterial(levelmaps[level], true); ground = new Plane(groundmat, plane.width, plane.height, 1, 1); ground.rotationX = -150; ground.y = 0; ground.x = 0; ground.z = 0; groundscene.addChild(ground); dr3D = new Array(); for (dr in d2d) { drop = new d3d(); dr3D[dr] = new DisplayObject2D((drop as DisplayObject), 100); dr3D[dr].imageSequence = (drop as MovieClip); scene.addChild(dr3D[dr]); dr3D[dr].x = (d2d[dr].x - 275); dr3D[dr].y = -((d2d[dr].y - 206)); dr3D[dr].z = 0; }; mydrop = new my_d3d(); myd3d = new DisplayObject2D((mydrop as DisplayObject), 100); myd3d.imageSequence = (mydrop as MovieClip); myd3d.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d); mydrops = new my_d3d(); myd3d2 = new DisplayObject2D((mydrops as DisplayObject), 100); myd3d2.imageSequence = (mydrops as MovieClip); myd3d2.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d2); mylobang = new lobang(); hole3d = new DisplayObject2D((mylobang as DisplayObject), 100); hole3d.imageSequence = (mylobang as MovieClip); scene.addChild(hole3d); item3D = new Array(); for (ti in time_item) { itemlinkage = new item_3d(); item3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); item3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(item3D[ti]); item3D[ti].x = (time_item[ti].x - 275); item3D[ti].y = -((time_item[ti].y - 206)); item3D[ti].z = 0; item3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + time_item[ti].funk)); }; itemo3D = new Array(); for (ti in _item) { itemlinkage = new item_3d(); itemo3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); itemo3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(itemo3D[ti]); itemo3D[ti].x = (_item[ti].x - 275); itemo3D[ti].y = -((_item[ti].y - 206)); itemo3D[ti].z = 0; itemo3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + _item[ti].funk)); }; scene.renderCamera(camera); groundscene.renderCamera(camera); addChild(indi); } function frame80(){ bgchannel.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, mtoggle); stage.removeEventListener(Event.ENTER_FRAME, enterframe); removeChild(indi); removeChild(container); removeChild(grounder); sound_winning.play(0, 0, new SoundTransform(0.5)); Mouse.show(); d2d = new Array(); leveltimer = 0; timer = 0; itimer = [0, 0, 0, 0]; otimer = [0, 0, 0, 0, 0]; hspeed = 0; vspeed = 0; holehspeed = 0; holevspeed = 0; bombhspeed = 0; bombvspeed = 0; targetrotation = 0; size = 0; _item = new Array(); time_item = new Array(); reversing = 1; speeding = 1; froze = 0; readytimer = 60; cloudos = new Array(); scoresofar.text = String(totsuko); } function frame82(){ stage.addEventListener(Event.ENTER_FRAME, enterframecloudagain); stop(); } function frame42(){ stage.removeEventListener(Event.ENTER_FRAME, enterframecloud); } function frame66(){ bgchannel.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, mtoggle); stage.removeEventListener(Event.ENTER_FRAME, enterframe); removeChild(indi); removeChild(container); removeChild(grounder); sound_winning.play(0, 0, new SoundTransform(0.5)); Mouse.show(); d2d = new Array(); leveltimer = 0; timer = 0; itimer = [0, 0, 0, 0]; otimer = [0, 0, 0, 0, 0]; hspeed = 0; vspeed = 0; holehspeed = 0; holevspeed = 0; bombhspeed = 0; bombvspeed = 0; targetrotation = 0; size = 0; _item = new Array(); time_item = new Array(); reversing = 1; speeding = 1; froze = 0; readytimer = 60; cloudos = new Array(); scoresofar.text = String(totsuko); } function frame89(){ stage.addEventListener(Event.ENTER_FRAME, enterframecloudagain); stop(); } function frame79(){ indi.starto.addEventListener(MouseEvent.CLICK, clickGo); stop(); } public function cutsize(_arg1, _arg2, _arg3){ if (otimer[_arg2] > 0){ var _local4 = otimer; var _local5 = _arg2; var _local6 = (_local4[_local5] - 1); _local4[_local5] = _local6; _arg1.visible = false; //unresolved jump }; if (otimer[_arg2] == 1){ _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); while (!(plane.hitTestPoint(_arg1.x, _arg1.y, true))) { _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); }; itemo3D[_arg2].imageSequence.anim.gotoAndPlay(("mainloop_" + _arg3)); }; if ((((otimer[_arg2] == 0)) && ((Math.sqrt((((myd2d.x - _arg1.x) * (myd2d.x - _arg1.x)) + ((myd2d.y - _arg1.y) * (myd2d.y - _arg1.y)))) < (myd2d.width / 2))))){ otimer[_arg2] = 1500; size = (size / 2); itemo3D[_arg2].imageSequence.anim.gotoAndPlay("disappear"); sound_poot.play(); }; } function frame69(){ stage.removeEventListener(Event.ENTER_FRAME, enterframecloudagain); bgmusic = new fullflow(); } function frame93(){ indi.starto.addEventListener(MouseEvent.CLICK, clickGo); stop(); } function frame94(){ bgchannel.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, mtoggle); stage.removeEventListener(Event.ENTER_FRAME, enterframe); removeChild(indi); removeChild(container); removeChild(grounder); sound_winning.play(0, 0, new SoundTransform(0.5)); Mouse.show(); d2d = new Array(); leveltimer = 0; timer = 0; itimer = [0, 0, 0, 0]; otimer = [0, 0, 0, 0, 0]; hspeed = 0; vspeed = 0; holehspeed = 0; holevspeed = 0; bombhspeed = 0; bombvspeed = 0; targetrotation = 0; size = 0; _item = new Array(); time_item = new Array(); reversing = 1; speeding = 1; froze = 0; readytimer = 60; cloudos = new Array(); scoresofar.text = String(totsuko); } function frame71(){ grounder = new Sprite(); grounder.x = 275; grounder.y = 206; addChild(grounder); container = new Sprite(); container.x = 275; container.y = 206; addChild(container); scene = new MovieScene3D(container); groundscene = new MovieScene3D(grounder); camera = new Camera3D(); camera.z = -300; camera.y = -300; camera.zoom = 70; camera.focus = 5; groundmat = new PreciseMovieAssetMaterial(levelmaps[level], true); ground = new Plane(groundmat, plane.width, plane.height, 1, 1); ground.rotationX = -150; ground.y = 0; ground.x = 0; ground.z = 0; groundscene.addChild(ground); dr3D = new Array(); for (dr in d2d) { drop = new d3d(); dr3D[dr] = new DisplayObject2D((drop as DisplayObject), 100); dr3D[dr].imageSequence = (drop as MovieClip); scene.addChild(dr3D[dr]); dr3D[dr].x = (d2d[dr].x - 275); dr3D[dr].y = -((d2d[dr].y - 206)); dr3D[dr].z = 0; }; mydrop = new my_d3d(); myd3d = new DisplayObject2D((mydrop as DisplayObject), 100); myd3d.imageSequence = (mydrop as MovieClip); myd3d.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d); mydrops = new my_d3d(); myd3d2 = new DisplayObject2D((mydrops as DisplayObject), 100); myd3d2.imageSequence = (mydrops as MovieClip); myd3d2.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d2); mylobang = new lobang(); hole3d = new DisplayObject2D((mylobang as DisplayObject), 100); hole3d.imageSequence = (mylobang as MovieClip); scene.addChild(hole3d); item3D = new Array(); for (ti in time_item) { itemlinkage = new item_3d(); item3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); item3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(item3D[ti]); item3D[ti].x = (time_item[ti].x - 275); item3D[ti].y = -((time_item[ti].y - 206)); item3D[ti].z = 0; item3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + time_item[ti].funk)); }; itemo3D = new Array(); for (ti in _item) { itemlinkage = new item_3d(); itemo3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); itemo3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(itemo3D[ti]); itemo3D[ti].x = (_item[ti].x - 275); itemo3D[ti].y = -((_item[ti].y - 206)); itemo3D[ti].z = 0; itemo3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + _item[ti].funk)); }; scene.renderCamera(camera); groundscene.renderCamera(camera); addChild(indi); } public function reversal(_arg1, _arg2, _arg3){ if (itimer[_arg2] > 0){ var _local4 = itimer; var _local5 = _arg2; var _local6 = (_local4[_local5] - 1); _local4[_local5] = _local6; reversing = -1; _arg1.visible = false; indi.indi_reversal.play(); } else { reversing = 1; }; if (itimer[_arg2] == 1){ bg.bgeffects.gotoAndPlay("no"); _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); while (!(plane.hitTestPoint(_arg1.x, _arg1.y, true))) { _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); }; item3D[_arg2].imageSequence.anim.gotoAndPlay(("mainloop_" + _arg3)); }; if ((((itimer[_arg2] == 0)) && ((Math.sqrt((((myd2d.x - _arg1.x) * (myd2d.x - _arg1.x)) + ((myd2d.y - _arg1.y) * (myd2d.y - _arg1.y)))) < (myd2d.width / 2))))){ itimer[_arg2] = 300; sound_soot.play(); bg.bgeffects.gotoAndPlay("reversal"); item3D[_arg2].imageSequence.anim.gotoAndPlay("disappear"); }; } function frame97(){ stage.removeEventListener(Event.ENTER_FRAME, enterframecloudagain); bgmusic = new marking(); } function frame90(){ stage.removeEventListener(Event.ENTER_FRAME, enterframecloudagain); bgmusic = new lethallands(); } function frame86(){ indi.starto.addEventListener(MouseEvent.CLICK, clickGo); stop(); } function frame106(){ grounder = new Sprite(); grounder.x = 275; grounder.y = 206; addChild(grounder); container = new Sprite(); container.x = 275; container.y = 206; addChild(container); scene = new MovieScene3D(container); groundscene = new MovieScene3D(grounder); camera = new Camera3D(); camera.z = -300; camera.y = -300; camera.zoom = 70; camera.focus = 5; groundmat = new PreciseMovieAssetMaterial(levelmaps[level], true); ground = new Plane(groundmat, plane.width, plane.height, 1, 1); ground.rotationX = -150; ground.y = 0; ground.x = 0; ground.z = 0; groundscene.addChild(ground); dr3D = new Array(); for (dr in d2d) { drop = new d3d(); dr3D[dr] = new DisplayObject2D((drop as DisplayObject), 100); dr3D[dr].imageSequence = (drop as MovieClip); scene.addChild(dr3D[dr]); dr3D[dr].x = (d2d[dr].x - 275); dr3D[dr].y = -((d2d[dr].y - 206)); dr3D[dr].z = 0; }; mydrop = new my_d3d(); myd3d = new DisplayObject2D((mydrop as DisplayObject), 100); myd3d.imageSequence = (mydrop as MovieClip); myd3d.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d); mydrops = new my_d3d(); myd3d2 = new DisplayObject2D((mydrops as DisplayObject), 100); myd3d2.imageSequence = (mydrops as MovieClip); myd3d2.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d2); mylobang = new lobang(); hole3d = new DisplayObject2D((mylobang as DisplayObject), 100); hole3d.imageSequence = (mylobang as MovieClip); scene.addChild(hole3d); item3D = new Array(); for (ti in time_item) { itemlinkage = new item_3d(); item3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); item3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(item3D[ti]); item3D[ti].x = (time_item[ti].x - 275); item3D[ti].y = -((time_item[ti].y - 206)); item3D[ti].z = 0; item3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + time_item[ti].funk)); }; itemo3D = new Array(); for (ti in _item) { itemlinkage = new item_3d(); itemo3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); itemo3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(itemo3D[ti]); itemo3D[ti].x = (_item[ti].x - 275); itemo3D[ti].y = -((_item[ti].y - 206)); itemo3D[ti].z = 0; itemo3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + _item[ti].funk)); }; scene.renderCamera(camera); groundscene.renderCamera(camera); addChild(indi); } function frame100(){ indi.starto.addEventListener(MouseEvent.CLICK, clickGo); stop(); } function frame87(){ bgchannel.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, mtoggle); stage.removeEventListener(Event.ENTER_FRAME, enterframe); removeChild(indi); removeChild(container); removeChild(grounder); sound_winning.play(0, 0, new SoundTransform(0.5)); Mouse.show(); d2d = new Array(); leveltimer = 0; timer = 0; itimer = [0, 0, 0, 0]; otimer = [0, 0, 0, 0, 0]; hspeed = 0; vspeed = 0; holehspeed = 0; holevspeed = 0; bombhspeed = 0; bombvspeed = 0; targetrotation = 0; size = 0; _item = new Array(); time_item = new Array(); reversing = 1; speeding = 1; froze = 0; readytimer = 60; cloudos = new Array(); scoresofar.text = String(totsuko); } function frame92(){ grounder = new Sprite(); grounder.x = 275; grounder.y = 206; addChild(grounder); container = new Sprite(); container.x = 275; container.y = 206; addChild(container); scene = new MovieScene3D(container); groundscene = new MovieScene3D(grounder); camera = new Camera3D(); camera.z = -300; camera.y = -300; camera.zoom = 70; camera.focus = 5; groundmat = new PreciseMovieAssetMaterial(levelmaps[level], true); ground = new Plane(groundmat, plane.width, plane.height, 1, 1); ground.rotationX = -150; ground.y = 0; ground.x = 0; ground.z = 0; groundscene.addChild(ground); dr3D = new Array(); for (dr in d2d) { drop = new d3d(); dr3D[dr] = new DisplayObject2D((drop as DisplayObject), 100); dr3D[dr].imageSequence = (drop as MovieClip); scene.addChild(dr3D[dr]); dr3D[dr].x = (d2d[dr].x - 275); dr3D[dr].y = -((d2d[dr].y - 206)); dr3D[dr].z = 0; }; mydrop = new my_d3d(); myd3d = new DisplayObject2D((mydrop as DisplayObject), 100); myd3d.imageSequence = (mydrop as MovieClip); myd3d.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d); mydrops = new my_d3d(); myd3d2 = new DisplayObject2D((mydrops as DisplayObject), 100); myd3d2.imageSequence = (mydrops as MovieClip); myd3d2.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d2); mylobang = new lobang(); hole3d = new DisplayObject2D((mylobang as DisplayObject), 100); hole3d.imageSequence = (mylobang as MovieClip); scene.addChild(hole3d); item3D = new Array(); for (ti in time_item) { itemlinkage = new item_3d(); item3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); item3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(item3D[ti]); item3D[ti].x = (time_item[ti].x - 275); item3D[ti].y = -((time_item[ti].y - 206)); item3D[ti].z = 0; item3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + time_item[ti].funk)); }; itemo3D = new Array(); for (ti in _item) { itemlinkage = new item_3d(); itemo3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); itemo3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(itemo3D[ti]); itemo3D[ti].x = (_item[ti].x - 275); itemo3D[ti].y = -((_item[ti].y - 206)); itemo3D[ti].z = 0; itemo3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + _item[ti].funk)); }; scene.renderCamera(camera); groundscene.renderCamera(camera); addChild(indi); } function frame103(){ stage.addEventListener(Event.ENTER_FRAME, enterframecloudagain); stop(); } function frame96(){ stage.addEventListener(Event.ENTER_FRAME, enterframecloudagain); stop(); } function frame99(){ grounder = new Sprite(); grounder.x = 275; grounder.y = 206; addChild(grounder); container = new Sprite(); container.x = 275; container.y = 206; addChild(container); scene = new MovieScene3D(container); groundscene = new MovieScene3D(grounder); camera = new Camera3D(); camera.z = -300; camera.y = -300; camera.zoom = 70; camera.focus = 5; groundmat = new PreciseMovieAssetMaterial(levelmaps[level], true); ground = new Plane(groundmat, plane.width, plane.height, 1, 1); ground.rotationX = -150; ground.y = 0; ground.x = 0; ground.z = 0; groundscene.addChild(ground); dr3D = new Array(); for (dr in d2d) { drop = new d3d(); dr3D[dr] = new DisplayObject2D((drop as DisplayObject), 100); dr3D[dr].imageSequence = (drop as MovieClip); scene.addChild(dr3D[dr]); dr3D[dr].x = (d2d[dr].x - 275); dr3D[dr].y = -((d2d[dr].y - 206)); dr3D[dr].z = 0; }; mydrop = new my_d3d(); myd3d = new DisplayObject2D((mydrop as DisplayObject), 100); myd3d.imageSequence = (mydrop as MovieClip); myd3d.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d); mydrops = new my_d3d(); myd3d2 = new DisplayObject2D((mydrops as DisplayObject), 100); myd3d2.imageSequence = (mydrops as MovieClip); myd3d2.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d2); mylobang = new lobang(); hole3d = new DisplayObject2D((mylobang as DisplayObject), 100); hole3d.imageSequence = (mylobang as MovieClip); scene.addChild(hole3d); item3D = new Array(); for (ti in time_item) { itemlinkage = new item_3d(); item3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); item3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(item3D[ti]); item3D[ti].x = (time_item[ti].x - 275); item3D[ti].y = -((time_item[ti].y - 206)); item3D[ti].z = 0; item3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + time_item[ti].funk)); }; itemo3D = new Array(); for (ti in _item) { itemlinkage = new item_3d(); itemo3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); itemo3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(itemo3D[ti]); itemo3D[ti].x = (_item[ti].x - 275); itemo3D[ti].y = -((_item[ti].y - 206)); itemo3D[ti].z = 0; itemo3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + _item[ti].funk)); }; scene.renderCamera(camera); groundscene.renderCamera(camera); addChild(indi); } function frame108(){ bgchannel.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, mtoggle); stage.removeEventListener(Event.ENTER_FRAME, enterframe); removeChild(indi); removeChild(container); removeChild(grounder); sound_winning.play(0, 0, new SoundTransform(0.5)); Mouse.show(); d2d = new Array(); leveltimer = 0; timer = 0; itimer = [0, 0, 0, 0]; otimer = [0, 0, 0, 0, 0]; hspeed = 0; vspeed = 0; holehspeed = 0; holevspeed = 0; bombhspeed = 0; bombvspeed = 0; targetrotation = 0; size = 0; _item = new Array(); time_item = new Array(); reversing = 1; speeding = 1; froze = 0; readytimer = 60; cloudos = new Array(); scoresofar.text = String(totsuko); } function frame83(){ stage.removeEventListener(Event.ENTER_FRAME, enterframecloudagain); bgmusic = new swat(); } function frame101(){ bgchannel.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, mtoggle); stage.removeEventListener(Event.ENTER_FRAME, enterframe); removeChild(indi); removeChild(container); removeChild(grounder); sound_winning.play(0, 0, new SoundTransform(0.5)); Mouse.show(); d2d = new Array(); leveltimer = 0; timer = 0; itimer = [0, 0, 0, 0]; otimer = [0, 0, 0, 0, 0]; hspeed = 0; vspeed = 0; holehspeed = 0; holevspeed = 0; bombhspeed = 0; bombvspeed = 0; targetrotation = 0; size = 0; _item = new Array(); time_item = new Array(); reversing = 1; speeding = 1; froze = 0; readytimer = 60; cloudos = new Array(); scoresofar.text = String(totsuko); } function frame64(){ grounder = new Sprite(); grounder.x = 275; grounder.y = 206; addChild(grounder); container = new Sprite(); container.x = 275; container.y = 206; addChild(container); scene = new MovieScene3D(container); groundscene = new MovieScene3D(grounder); camera = new Camera3D(); camera.z = -300; camera.y = -300; camera.zoom = 70; camera.focus = 5; groundmat = new PreciseMovieAssetMaterial(levelmaps[level], true); ground = new Plane(groundmat, plane.width, plane.height, 1, 1); ground.rotationX = -150; ground.y = 0; ground.x = 0; ground.z = 0; groundscene.addChild(ground); dr3D = new Array(); for (dr in d2d) { drop = new d3d(); dr3D[dr] = new DisplayObject2D((drop as DisplayObject), 100); dr3D[dr].imageSequence = (drop as MovieClip); scene.addChild(dr3D[dr]); dr3D[dr].x = (d2d[dr].x - 275); dr3D[dr].y = -((d2d[dr].y - 206)); dr3D[dr].z = 0; }; mydrop = new my_d3d(); myd3d = new DisplayObject2D((mydrop as DisplayObject), 100); myd3d.imageSequence = (mydrop as MovieClip); myd3d.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d); mydrops = new my_d3d(); myd3d2 = new DisplayObject2D((mydrops as DisplayObject), 100); myd3d2.imageSequence = (mydrops as MovieClip); myd3d2.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d2); mylobang = new lobang(); hole3d = new DisplayObject2D((mylobang as DisplayObject), 100); hole3d.imageSequence = (mylobang as MovieClip); scene.addChild(hole3d); item3D = new Array(); for (ti in time_item) { itemlinkage = new item_3d(); item3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); item3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(item3D[ti]); item3D[ti].x = (time_item[ti].x - 275); item3D[ti].y = -((time_item[ti].y - 206)); item3D[ti].z = 0; item3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + time_item[ti].funk)); }; itemo3D = new Array(); for (ti in _item) { itemlinkage = new item_3d(); itemo3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); itemo3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(itemo3D[ti]); itemo3D[ti].x = (_item[ti].x - 275); itemo3D[ti].y = -((_item[ti].y - 206)); itemo3D[ti].z = 0; itemo3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + _item[ti].funk)); }; scene.renderCamera(camera); groundscene.renderCamera(camera); addChild(indi); } function frame107(){ indi.starto.addEventListener(MouseEvent.CLICK, clickGo); stop(); } function frame104(){ stage.removeEventListener(Event.ENTER_FRAME, enterframecloudagain); bgmusic = new Wolfenstine(); } function frame111(){ stage.removeEventListener(Event.ENTER_FRAME, enterframecloudagain); bgmusic = new Wolfenstine(); } public function enterframe(_arg1:Event):void{ var _local2:*; var _local3:*; var _local4:*; var _local5:*; if (size < 0){ Mouse.show(); this.gotoAndPlay("gameover", "gameover"); } else { Mouse.hide(); if (plane.hitTestPoint(myd2d.x, myd2d.y, true) == 0){ size = -1; }; leveltimer++; if ((((leveltimer > 1800)) || ((totsuko > levelmaxers[level])))){ level++; stage.removeEventListener(Event.ENTER_FRAME, enterframe); play(); }; timer++; if (timer > 1000){ timer = 0; //unresolved jump }; for (_local2 in d2d) { d2d[_local2].timer = (d2d[_local2].timer + int((d2d[_local2].timer < 1000))); d2d[_local2].scaleX = (d2d[_local2].scaleY = Math.max(((d2d[_local2].timer - 150) / 1000), 0)); if ((((d2d[_local2].timer > 150)) && ((Math.sqrt((((myd2d.x - d2d[_local2].x) * (myd2d.x - d2d[_local2].x)) + ((myd2d.y - d2d[_local2].y) * (myd2d.y - d2d[_local2].y)))) < (myd2d.width / 2))))){ size = (size + (d2d[_local2].timer / 50000)); totsuko = (totsuko + int((d2d[_local2].timer / 10))); d2d[_local2].timer = 0; }; }; if (!froze){ rotlr = ((((mouseX - 275) / 550) * 70) * reversing); rot1.rotation = rotlr; rotud = ((((mouseY - 206) / 412) * 70) * reversing); rot2.rotation = rotud; }; hspeed = ((rotlr / 10) * (1 + (size * 10))); vspeed = ((rotud / 10) * (1 + (size * 10))); myd2d.scaleX = (myd2d.scaleY = (1 + size)); myd2d.x = (myd2d.x + ((hspeed * speeding) / slowmo)); myd2d.y = (myd2d.y + ((vspeed * speeding) / slowmo)); if (myd2d.hitTestPoint(hole2d.x, hole2d.y, true)){ sound_drainage.play(0, 0, new SoundTransform(0.2)); size = (size - 0.03); }; myd2d.rotation = (((Math.atan2((mouseY - myd2d.y), (mouseX - myd2d.x)) * 180) / Math.PI) + 90); myd2d2.scaleX = (myd2d2.scaleY = myd2d.scaleX); myd2d2.x = (myd2d.x - (((rotlr / 90) * myd2d.width) * (1 + (size * 2)))); myd2d2.y = (myd2d.y - (((rotud / 90) * myd2d.width) * (1 + (size * 2)))); hole2d.x = (hole2d.x + holehspeed); hole2d.y = (hole2d.y + holevspeed); if ((timer % 150) == 0){ holehspeed = (Math.floor((Math.random() * 5)) - 2); //unresolved jump }; if ((timer % 140) == 0){ holevspeed = (Math.floor((Math.random() * 5)) - 2); //unresolved jump }; if (((plane.hitTestPoint((hole2d.x + 10), hole2d.y, true)) && (plane.hitTestPoint((hole2d.x - 10), hole2d.y, true)))){ } else { holehspeed = (holehspeed * -1); }; if (((plane.hitTestPoint(hole2d.x, (hole2d.y + 10), true)) && (plane.hitTestPoint(hole2d.x, (hole2d.y - 10), true)))){ } else { holevspeed = (holevspeed * -1); }; for (_local2 in time_item) { this[time_item[_local2]["funk"]].call(null, time_item[_local2], _local2, time_item[_local2]["funk"]); }; for (_local2 in _item) { this[_item[_local2]["funk"]].call(null, _item[_local2], _local2, _item[_local2]["funk"]); }; indi.suko.text = totsuko; indi.levelscaler.scaleX = (leveltimer / 1800); ground.rotationX = (rotud / 2); ground.rotationY = (-(rotlr) / 2); for (dr in d2d) { dr3D[dr].imageSequence.anim.scaleX = (dr3D[dr].imageSequence.anim.scaleY = Math.max(((d2d[dr].timer - 150) / 1000), 0)); _local3 = (-((d2d[dr].y - plane.y)) * Math.sin(((Math.PI / 180) * (ground.rotationX + 90)))); _local4 = ((-((d2d[dr].y - plane.y)) * Math.cos(((Math.PI / 180) * (ground.rotationX + 90)))) + ((d2d[dr].x - 275) * Math.cos(((Math.PI / 180) * (ground.rotationY + 90))))); _local5 = ((d2d[dr].x - 275) * Math.sin(((Math.PI / 180) * (ground.rotationY + 90)))); dr3D[dr].z = _local4; dr3D[dr].y = _local3; dr3D[dr].x = _local5; }; for (ti in time_item) { _local3 = (-((time_item[ti].y - plane.y)) * Math.sin(((Math.PI / 180) * (ground.rotationX + 90)))); _local4 = ((-((time_item[ti].y - plane.y)) * Math.cos(((Math.PI / 180) * (ground.rotationX + 90)))) + ((time_item[ti].x - 275) * Math.cos(((Math.PI / 180) * (ground.rotationY + 90))))); _local5 = ((time_item[ti].x - 275) * Math.sin(((Math.PI / 180) * (ground.rotationY + 90)))); item3D[ti].z = _local4; item3D[ti].y = _local3; item3D[ti].x = _local5; }; for (ti in _item) { _local3 = (-((_item[ti].y - plane.y)) * Math.sin(((Math.PI / 180) * (ground.rotationX + 90)))); _local4 = ((-((_item[ti].y - plane.y)) * Math.cos(((Math.PI / 180) * (ground.rotationX + 90)))) + ((_item[ti].x - 275) * Math.cos(((Math.PI / 180) * (ground.rotationY + 90))))); _local5 = ((_item[ti].x - 275) * Math.sin(((Math.PI / 180) * (ground.rotationY + 90)))); itemo3D[ti].z = _local4; itemo3D[ti].y = _local3; itemo3D[ti].x = _local5; }; myd3d.imageSequence.anim.scaleX = (myd3d.imageSequence.anim.scaleY = (1 + size)); _local3 = (-((myd2d.y - plane.y)) * Math.sin(((Math.PI / 180) * (ground.rotationX + 90)))); _local4 = ((-((myd2d.y - plane.y)) * Math.cos(((Math.PI / 180) * (ground.rotationX + 90)))) + ((myd2d.x - 275) * Math.cos(((Math.PI / 180) * (ground.rotationY + 90))))); _local5 = ((myd2d.x - 275) * Math.sin(((Math.PI / 180) * (ground.rotationY + 90)))); myd3d.z = _local4; myd3d.y = _local3; myd3d.x = _local5; myd3d2.imageSequence.anim.scaleX = (myd3d2.imageSequence.anim.scaleY = (1 + size)); _local3 = (-((myd2d2.y - plane.y)) * Math.sin(((Math.PI / 180) * (ground.rotationX + 90)))); _local4 = ((-((myd2d2.y - plane.y)) * Math.cos(((Math.PI / 180) * (ground.rotationX + 90)))) + ((myd2d2.x - 275) * Math.cos(((Math.PI / 180) * (ground.rotationY + 90))))); _local5 = ((myd2d2.x - 275) * Math.sin(((Math.PI / 180) * (ground.rotationY + 90)))); myd3d2.z = _local4; myd3d2.y = _local3; myd3d2.x = _local5; _local3 = (-((hole2d.y - plane.y)) * Math.sin(((Math.PI / 180) * (ground.rotationX + 90)))); _local4 = ((-((hole2d.y - plane.y)) * Math.cos(((Math.PI / 180) * (ground.rotationX + 90)))) + ((hole2d.x - 275) * Math.cos(((Math.PI / 180) * (ground.rotationY + 90))))); _local5 = ((hole2d.x - 275) * Math.sin(((Math.PI / 180) * (ground.rotationY + 90)))); hole3d.z = _local4; hole3d.y = _local3; hole3d.x = _local5; scene.renderCamera(camera); groundscene.renderCamera(camera); }; } function frame115(){ totsuko = (totsuko + 2000); bgchannel.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, mtoggle); stage.removeEventListener(Event.ENTER_FRAME, enterframe); removeChild(indi); removeChild(container); removeChild(grounder); sound_victory.play(0, 0, new SoundTransform(0.5)); Mouse.show(); } function frame110(){ stage.addEventListener(Event.ENTER_FRAME, enterframecloudagain); stop(); } function frame113(){ grounder = new Sprite(); grounder.x = 275; grounder.y = 206; addChild(grounder); container = new Sprite(); container.x = 275; container.y = 206; addChild(container); scene = new MovieScene3D(container); groundscene = new MovieScene3D(grounder); camera = new Camera3D(); camera.z = -300; camera.y = -300; camera.zoom = 70; camera.focus = 5; groundmat = new PreciseMovieAssetMaterial(levelmaps[level], true); ground = new Plane(groundmat, plane.width, plane.height, 1, 1); ground.rotationX = -150; ground.y = 0; ground.x = 0; ground.z = 0; groundscene.addChild(ground); dr3D = new Array(); for (dr in d2d) { drop = new d3d(); dr3D[dr] = new DisplayObject2D((drop as DisplayObject), 100); dr3D[dr].imageSequence = (drop as MovieClip); scene.addChild(dr3D[dr]); dr3D[dr].x = (d2d[dr].x - 275); dr3D[dr].y = -((d2d[dr].y - 206)); dr3D[dr].z = 0; }; mydrop = new my_d3d(); myd3d = new DisplayObject2D((mydrop as DisplayObject), 100); myd3d.imageSequence = (mydrop as MovieClip); myd3d.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d); mydrops = new my_d3d(); myd3d2 = new DisplayObject2D((mydrops as DisplayObject), 100); myd3d2.imageSequence = (mydrops as MovieClip); myd3d2.imageSequence.anim.blendMode = BlendMode.OVERLAY; scene.addChild(myd3d2); mylobang = new lobang(); hole3d = new DisplayObject2D((mylobang as DisplayObject), 100); hole3d.imageSequence = (mylobang as MovieClip); scene.addChild(hole3d); item3D = new Array(); for (ti in time_item) { itemlinkage = new item_3d(); item3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); item3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(item3D[ti]); item3D[ti].x = (time_item[ti].x - 275); item3D[ti].y = -((time_item[ti].y - 206)); item3D[ti].z = 0; item3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + time_item[ti].funk)); }; itemo3D = new Array(); for (ti in _item) { itemlinkage = new item_3d(); itemo3D[ti] = new DisplayObject2D((itemlinkage as DisplayObject), 70); itemo3D[ti].imageSequence = (itemlinkage as MovieClip); scene.addChild(itemo3D[ti]); itemo3D[ti].x = (_item[ti].x - 275); itemo3D[ti].y = -((_item[ti].y - 206)); itemo3D[ti].z = 0; itemo3D[ti].imageSequence.anim.gotoAndPlay(("mainloop_" + _item[ti].funk)); }; scene.renderCamera(camera); groundscene.renderCamera(camera); addChild(indi); } public function enterframecloudagain(_arg1:Event):void{ var _local2:*; for (_local2 in cloudos) { cloudos[_local2].y = (cloudos[_local2].y - 15); if (cloudos[_local2].y < -200){ cloudos[_local2].y = 612; cloudos[_local2].x = Math.floor((Math.random() * 550)); continue; }; }; readytimer--; if (readytimer == 0){ play(); //unresolved jump }; } function frame124(){ setChildIndex(container, (getChildIndex(container) + 1)); setChildIndex(grounder, (getChildIndex(grounder) + 1)); setChildIndex(bbg, (getChildIndex(grounder) - 1)); myd3d.x = 20000; myd3d2.x = 20000; scene.renderCamera(camera); stage.removeEventListener(Event.ENTER_FRAME, enterframe); stage.removeEventListener(KeyboardEvent.KEY_UP, mtoggle); removeChild(indi); sound_loser.play(0, 0, new SoundTransform(0.5)); bgchannel.stop(); } function frame114(){ indi.starto.addEventListener(MouseEvent.CLICK, clickGo); stop(); } function frame123(){ b2.addEventListener(MouseEvent.CLICK, playmore); b3.addEventListener(MouseEvent.CLICK, helptips); b4.addEventListener(MouseEvent.CLICK, playagain); if (String(sturl).substr(0, 4) != "http"){ hssub.visible = false; }; scoritz.text = String(totsuko); stop(); } public function clickSubmit(_arg1:MouseEvent):void{ play(); preloader.playbutton.removeEventListener(MouseEvent.CLICK, clickSubmit); } public function enterframecloud(_arg1:Event):void{ var _local2:*; for (_local2 in cloudos) { cloudos[_local2].y = (cloudos[_local2].y - 15); if (cloudos[_local2].y < -200){ cloudos[_local2].y = 612; cloudos[_local2].x = Math.floor((Math.random() * 550)); continue; }; }; } public function megapoints(_arg1, _arg2, _arg3){ if (otimer[_arg2] > 0){ var _local4 = otimer; var _local5 = _arg2; var _local6 = (_local4[_local5] - 1); _local4[_local5] = _local6; _arg1.visible = false; //unresolved jump }; if (otimer[_arg2] == 1){ _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); while (!(plane.hitTestPoint(_arg1.x, _arg1.y, true))) { _arg1.x = ((Math.floor((Math.random() * plane.width)) - (plane.width / 2)) + plane.x); _arg1.y = ((Math.floor((Math.random() * plane.height)) - (plane.height / 2)) + plane.y); }; itemo3D[_arg2].imageSequence.anim.gotoAndPlay(("mainloop_" + _arg3)); }; if ((((otimer[_arg2] == 0)) && ((Math.sqrt((((myd2d.x - _arg1.x) * (myd2d.x - _arg1.x)) + ((myd2d.y - _arg1.y) * (myd2d.y - _arg1.y)))) < (myd2d.width / 1.5))))){ otimer[_arg2] = 1000; totsuko = (totsuko + 9999); sound_poot.play(); itemo3D[_arg2].imageSequence.anim.gotoAndPlay("getmegapoints"); }; } function frame133(){ b2.addEventListener(MouseEvent.CLICK, playmore); b3.addEventListener(MouseEvent.CLICK, helptips); b4.addEventListener(MouseEvent.CLICK, playagain); if (String(sturl).substr(0, 4) != "http"){ hssub.visible = false; }; scoritz.text = String(totsuko); stop(); } public function helptips(_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://tamugaia.com/tamugaia.php?what=kondense_tips"), "_blank"); } } }//package kondensensation_fla
Section 40
//mydroplet_60 (kondensensation_fla.mydroplet_60) package kondensensation_fla { import flash.display.*; public dynamic class mydroplet_60 extends MovieClip { public function mydroplet_60(){ addFrameScript(0, frame1); } function frame1(){ visible = false; } } }//package kondensensation_fla
Section 41
//plane_55 (kondensensation_fla.plane_55) package kondensensation_fla { import flash.display.*; public dynamic class plane_55 extends MovieClip { public function plane_55(){ addFrameScript(0, frame1); } function frame1(){ visible = false; } } }//package kondensensation_fla
Section 42
//plane_8_82 (kondensensation_fla.plane_8_82) package kondensensation_fla { import flash.display.*; public dynamic class plane_8_82 extends MovieClip { public function plane_8_82(){ addFrameScript(0, frame1); } function frame1(){ visible = false; } } }//package kondensensation_fla
Section 43
//plane_final_84 (kondensensation_fla.plane_final_84) package kondensensation_fla { import flash.display.*; public dynamic class plane_final_84 extends MovieClip { public function plane_final_84(){ addFrameScript(0, frame1); } function frame1(){ visible = false; } } }//package kondensensation_fla
Section 44
//plane_h_79 (kondensensation_fla.plane_h_79) package kondensensation_fla { import flash.display.*; public dynamic class plane_h_79 extends MovieClip { public function plane_h_79(){ addFrameScript(0, frame1); } function frame1(){ visible = false; } } }//package kondensensation_fla
Section 45
//plane_ng_76 (kondensensation_fla.plane_ng_76) package kondensensation_fla { import flash.display.*; public dynamic class plane_ng_76 extends MovieClip { public function plane_ng_76(){ addFrameScript(0, frame1); } function frame1(){ visible = false; } } }//package kondensensation_fla
Section 46
//plane_tamugaia_83 (kondensensation_fla.plane_tamugaia_83) package kondensensation_fla { import flash.display.*; public dynamic class plane_tamugaia_83 extends MovieClip { public function plane_tamugaia_83(){ addFrameScript(0, frame1); } function frame1(){ visible = false; } } }//package kondensensation_fla
Section 47
//plane_x_81 (kondensensation_fla.plane_x_81) package kondensensation_fla { import flash.display.*; public dynamic class plane_x_81 extends MovieClip { public function plane_x_81(){ addFrameScript(0, frame1); } function frame1(){ visible = false; } } }//package kondensensation_fla
Section 48
//plane_Y_80 (kondensensation_fla.plane_Y_80) package kondensensation_fla { import flash.display.*; public dynamic class plane_Y_80 extends MovieClip { public function plane_Y_80(){ addFrameScript(0, frame1); } function frame1(){ visible = false; } } }//package kondensensation_fla
Section 49
//plane3_73 (kondensensation_fla.plane3_73) package kondensensation_fla { import flash.display.*; public dynamic class plane3_73 extends MovieClip { public function plane3_73(){ addFrameScript(0, frame1); } function frame1(){ visible = false; } } }//package kondensensation_fla
Section 50
//planearmor_70 (kondensensation_fla.planearmor_70) package kondensensation_fla { import flash.display.*; public dynamic class planearmor_70 extends MovieClip { public function planearmor_70(){ addFrameScript(0, frame1); } function frame1(){ visible = false; } } }//package kondensensation_fla
Section 51
//preloader_1 (kondensensation_fla.preloader_1) package kondensensation_fla { import flash.display.*; import flash.text.*; public dynamic class preloader_1 extends MovieClip { public var bar:MovieClip; public var fpyours:TextField; public var button:SimpleButton; public var playbutton:SimpleButton; public var fpreq:TextField; public function preloader_1(){ addFrameScript(3, frame4, 5, frame6); } function frame6(){ stop(); } function frame4(){ stop(); } } }//package kondensensation_fla
Section 52
//preloaderbar_3 (kondensensation_fla.preloaderbar_3) package kondensensation_fla { import flash.display.*; import flash.text.*; public dynamic class preloaderbar_3 extends MovieClip { public var percen:TextField; } }//package kondensensation_fla
Section 53
//tamugaia_button_mc_38 (kondensensation_fla.tamugaia_button_mc_38) package kondensensation_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class tamugaia_button_mc_38 extends MovieClip { public var tamugaiabutton:SimpleButton; public function tamugaia_button_mc_38(){ addFrameScript(0, frame1); } function frame1(){ tamugaiabutton.addEventListener(MouseEvent.MOUSE_UP, gotoTamugaia); } public function gotoTamugaia(_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://tamugaia.com"), "_blank"); } } }//package kondensensation_fla
Section 54
//tamugaia_buttonthing_40 (kondensensation_fla.tamugaia_buttonthing_40) package kondensensation_fla { import flash.display.*; public dynamic class tamugaia_buttonthing_40 extends MovieClip { public function tamugaia_buttonthing_40(){ addFrameScript(6, frame7); } function frame7(){ stop(); } } }//package kondensensation_fla
Section 55
//tamugaia_buttonthing2_41 (kondensensation_fla.tamugaia_buttonthing2_41) package kondensensation_fla { import flash.display.*; public dynamic class tamugaia_buttonthing2_41 extends MovieClip { public function tamugaia_buttonthing2_41(){ addFrameScript(6, frame7); } function frame7(){ stop(); } } }//package kondensensation_fla
Section 56
//tamugaia_intro_button_fados_7 (kondensensation_fla.tamugaia_intro_button_fados_7) package kondensensation_fla { import flash.display.*; public dynamic class tamugaia_intro_button_fados_7 extends MovieClip { public function tamugaia_intro_button_fados_7(){ addFrameScript(5, frame6); } function frame6(){ stop(); } } }//package kondensensation_fla
Section 57
//typeblinker_90 (kondensensation_fla.typeblinker_90) package kondensensation_fla { import flash.display.*; public dynamic class typeblinker_90 extends MovieClip { public function typeblinker_90(){ addFrameScript(1, frame2); } function frame2(){ stop(); } } }//package kondensensation_fla
Section 58
//victory_anim_86 (kondensensation_fla.victory_anim_86) package kondensensation_fla { import flash.display.*; public dynamic class victory_anim_86 extends MovieClip { public function victory_anim_86(){ addFrameScript(10, frame11); } function frame11(){ stop(); } } }//package kondensensation_fla
Section 59
//Camera3D (org.papervision3d.cameras.Camera3D) package org.papervision3d.cameras { import org.papervision3d.objects.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.*; public class Camera3D extends CameraObject3D { public var goto:Number3D; public var target:DisplayObject3D; public function Camera3D(_arg1:DisplayObject3D=null, _arg2:Number=2, _arg3:Number=100, _arg4:Object=null){ super(_arg2, _arg3, _arg4); this.target = ((_arg1) || (DisplayObject3D.ZERO)); this.goto = new Number3D(this.x, this.y, this.z); } override public function transformView(_arg1:Matrix3D=null):void{ this.lookAt(this.target); super.transformView(); } public function hover(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:DisplayObject3D; var _local5:Number3D; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; _local4 = this.target; _local5 = this.goto; _local6 = 8; switch (_arg1){ case 0: _local7 = (_local5.x - _local4.x); _local8 = (_local5.z - _local4.z); _local9 = Math.atan2(_local8, _local7); _local10 = Math.sqrt(((_local7 * _local7) + (_local8 * _local8))); _local11 = (0.5 * _arg2); _local12 = (_local10 * Math.cos((_local9 - _local11))); _local13 = (_local10 * Math.sin((_local9 - _local11))); _local14 = (_local5.y - (300 * _arg3)); this.x = (this.x - ((this.x - _local12) / _local6)); this.y = (this.y - ((this.y - _local14) / _local6)); this.z = (this.z - ((this.z - _local13) / _local6)); break; case 1: this.x = (this.x - ((this.x - (1000 * _arg2)) / _local6)); this.y = (this.y - ((this.y - (1000 * _arg3)) / _local6)); break; }; } } }//package org.papervision3d.cameras
Section 60
//DefaultTriangleCuller (org.papervision3d.core.culling.DefaultTriangleCuller) package org.papervision3d.core.culling { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import org.papervision3d.core.proto.*; public class DefaultTriangleCuller implements ITriangleCuller { private static var y2:Number; private static var y1:Number; private static var y0:Number; private static var x0:Number; private static var x1:Number; private static var x2:Number; public function testFace(_arg1:DisplayObject3D, _arg2:Face3DInstance, _arg3:Vertex2D, _arg4:Vertex2D, _arg5:Vertex2D):Boolean{ var _local6:MaterialObject3D; if (((((_arg3.visible) && (_arg4.visible))) && (_arg5.visible))){ _local6 = (_arg2.face.material) ? _arg2.face.material : _arg1.material; if (_local6.invisible){ return (false); }; x0 = _arg3.x; y0 = _arg3.y; x1 = _arg4.x; y1 = _arg4.y; x2 = _arg5.x; y2 = _arg5.y; if (_local6.oneSide){ if (_local6.opposite){ if ((((x2 - x0) * (y1 - y0)) - ((y2 - y0) * (x1 - x0))) > 0){ return (false); }; } else { if ((((x2 - x0) * (y1 - y0)) - ((y2 - y0) * (x1 - x0))) < 0){ return (false); }; }; }; return (true); }; return (false); } } }//package org.papervision3d.core.culling
Section 61
//ITriangleCuller (org.papervision3d.core.culling.ITriangleCuller) package org.papervision3d.core.culling { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; public interface ITriangleCuller { function testFace(_arg1:DisplayObject3D, _arg2:Face3DInstance, _arg3:Vertex2D, _arg4:Vertex2D, _arg5:Vertex2D):Boolean; } }//package org.papervision3d.core.culling
Section 62
//IFaceDrawer (org.papervision3d.core.draw.IFaceDrawer) package org.papervision3d.core.draw { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.display.*; public interface IFaceDrawer { function drawFace3D(_arg1:DisplayObject3D, _arg2:Face3D, _arg3:Graphics, _arg4:Vertex2D, _arg5:Vertex2D, _arg6:Vertex2D):int; } }//package org.papervision3d.core.draw
Section 63
//Face3D (org.papervision3d.core.geom.Face3D) package org.papervision3d.core.geom { import org.papervision3d.objects.*; import flash.display.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.*; public class Face3D { public var vertices:Array; public var face3DInstance:Face3DInstance; public var id:Number; public var uv:Array; public var material:MaterialObject3D; private var renderMat:MaterialObject3D; public var faceNormal:Number3D; public var screenZ:Number; public var _materialName:String; public var visible:Boolean; public var v0:Vertex3D; public var v1:Vertex3D; public var v2:Vertex3D; private static var _totalFaces:Number = 0; public function Face3D(_arg1:Array, _arg2:MaterialObject3D=null, _arg3:Array=null){ this.vertices = _arg1; v0 = _arg1[0]; v1 = _arg1[1]; v2 = _arg1[2]; this.material = _arg2; this.uv = _arg3; this.id = _totalFaces++; face3DInstance = new Face3DInstance(this); createNormal(); } protected function createNormal():void{ var _local1:Number3D; var _local2:Number3D; var _local3:Number3D; var _local4:Number3D; var _local5:Number3D; _local1 = v0.toNumber3D(); _local2 = v1.toNumber3D(); _local3 = v2.toNumber3D(); _local4 = Number3D.sub(_local2, _local1); _local5 = Number3D.sub(_local3, _local1); faceNormal = Number3D.cross(_local5, _local4); faceNormal.normalize(); } public function render(_arg1:DisplayObject3D, _arg2:Sprite):Number{ renderMat = (material) ? material : _arg1.material; return (renderMat.drawFace3D(_arg1, this, _arg2.graphics, v0.vertex2DInstance, v1.vertex2DInstance, v2.vertex2DInstance)); } } }//package org.papervision3d.core.geom
Section 64
//Face3DInstance (org.papervision3d.core.geom.Face3DInstance) package org.papervision3d.core.geom { import org.papervision3d.objects.*; import flash.display.*; import org.papervision3d.core.*; public class Face3DInstance { public var container:Sprite; public var faceNormal:Number3D; public var screenZ:Number; public var visible:Boolean;// = false public var instance:DisplayObject3D; public var face:Face3D; public function Face3DInstance(_arg1:Face3D, _arg2:DisplayObject3D=null){ visible = false; super(); this.face = _arg1; this.instance = _arg2; faceNormal = new Number3D(); } } }//package org.papervision3d.core.geom
Section 65
//Mesh3D (org.papervision3d.core.geom.Mesh3D) package org.papervision3d.core.geom { import org.papervision3d.objects.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.*; import flash.utils.*; import org.papervision3d.core.culling.*; public class Mesh3D extends Vertices3D { public function Mesh3D(_arg1:MaterialObject3D, _arg2:Array, _arg3:Array, _arg4:String=null, _arg5:Object=null){ super(_arg2, _arg4, _arg5); this.geometry.faces = ((_arg3) || (new Array())); this.material = ((_arg1) || (MaterialObject3D.DEFAULT)); } override public function project(_arg1:DisplayObject3D, _arg2:CameraObject3D, _arg3:Array=null):Number{ var _local4:Array; var _local5:Number; var _local6:Number; var _local7:ITriangleCuller; var _local8:Vertex2D; var _local9:Vertex2D; var _local10:Vertex2D; var _local11:Face3DInstance; var _local12:Face3D; var _local13:MaterialObject3D; super.project(_arg1, _arg2, _arg3); if (!_arg3){ _arg3 = this._sorted; }; _local4 = this.geometry.faces; _local5 = 0; _local6 = 0; _local7 = scene.triangleCuller; for each (_local12 in _local4) { _local13 = (_local12.material) ? _local12.material : material; _local11 = _local12.face3DInstance; _local11.instance = this; _local8 = _local12.v0.vertex2DInstance; _local9 = _local12.v1.vertex2DInstance; _local10 = _local12.v2.vertex2DInstance; if ((_local11.visible = _local7.testFace(this, _local11, _local8, _local9, _local10))){ if (_local13.needsFaceNormals){ _local12.faceNormal.copyTo(_local11.faceNormal); Matrix3D.multiplyVector3x3(this.view, _local11.faceNormal); }; if (_local13.needsVertexNormals){ _local12.v0.normal.copyTo(_local12.v0.vertex2DInstance.normal); Matrix3D.multiplyVector3x3(this.view, _local12.v0.vertex2DInstance.normal); _local12.v1.normal.copyTo(_local12.v1.vertex2DInstance.normal); Matrix3D.multiplyVector3x3(this.view, _local12.v1.vertex2DInstance.normal); _local12.v2.normal.copyTo(_local12.v2.vertex2DInstance.normal); Matrix3D.multiplyVector3x3(this.view, _local12.v2.vertex2DInstance.normal); }; switch (meshSort){ case DisplayObject3D.MESH_SORT_CENTER: _local5 = (_local5 + (_local11.screenZ = (((_local8.z + _local9.z) + _local10.z) * 0.333))); break; case DisplayObject3D.MESH_SORT_FAR: _local5 = (_local5 + (_local11.screenZ = Math.max(_local8.z, _local9.z, _local10.z))); break; case DisplayObject3D.MESH_SORT_CLOSE: _local5 = (_local5 + (_local11.screenZ = Math.min(_local8.z, _local9.z, _local10.z))); break; }; _local6++; _arg3.push(_local11); } else { scene.stats.culledTriangles++; }; }; return ((this.screenZ = (_local5 / _local6))); } public function mergeVertices():void{ var _local1:Dictionary; var _local2:Array; var _local3:Vertex3D; var _local4:Face3D; var _local5:Vertex3D; _local1 = new Dictionary(); _local2 = new Array(); for each (_local3 in this.geometry.vertices) { for each (_local5 in _local1) { if ((((((_local3.x == _local5.x)) && ((_local3.y == _local5.y)))) && ((_local3.z == _local5.z)))){ _local1[_local3] = _local5; break; }; }; if (!_local1[_local3]){ _local1[_local3] = _local3; _local2.push(_local3); }; }; this.geometry.vertices = _local2; for each (_local4 in this.geometry.faces) { _local4.v0 = _local1[_local4.v0]; _local4.v1 = _local1[_local4.v1]; _local4.v2 = _local1[_local4.v2]; }; } public function projectTexture(_arg1:String="x", _arg2:String="y"):void{ var _local3:Array; var _local4:Object; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:MaterialObject3D; var _local10:String; var _local11:Face3D; var _local12:Array; var _local13:Vertex3D; var _local14:Vertex3D; var _local15:Vertex3D; var _local16:NumberUV; var _local17:NumberUV; var _local18:NumberUV; _local3 = this.geometry.faces; _local4 = this.boundingBox(); _local5 = _local4.min[_arg1]; _local6 = _local4.size[_arg1]; _local7 = _local4.min[_arg2]; _local8 = _local4.size[_arg2]; _local9 = this.material; for (_local10 in _local3) { _local11 = _local3[Number(_local10)]; _local12 = _local11.vertices; _local13 = _local12[0]; _local14 = _local12[1]; _local15 = _local12[2]; _local16 = new NumberUV(((_local13[_arg1] - _local5) / _local6), ((_local13[_arg2] - _local7) / _local8)); _local17 = new NumberUV(((_local14[_arg1] - _local5) / _local6), ((_local14[_arg2] - _local7) / _local8)); _local18 = new NumberUV(((_local15[_arg1] - _local5) / _local6), ((_local15[_arg2] - _local7) / _local8)); _local11.uv = [_local16, _local17, _local18]; }; } } }//package org.papervision3d.core.geom
Section 66
//Vertex2D (org.papervision3d.core.geom.Vertex2D) package org.papervision3d.core.geom { import org.papervision3d.core.*; public class Vertex2D { public var visible:Boolean; public var normal:Number3D; public var extra:Object; public var x:Number; public var y:Number; public var z:Number; public function Vertex2D(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0){ this.x = _arg1; this.y = _arg2; this.z = _arg3; this.visible = false; this.normal = new Number3D(); } public function clone():Vertex2D{ var _local1:Vertex2D; _local1 = new Vertex2D(x, y, z); _local1.visible = visible; _local1.extra = extra; return (_local1); } } }//package org.papervision3d.core.geom
Section 67
//Vertex3D (org.papervision3d.core.geom.Vertex3D) package org.papervision3d.core.geom { import org.papervision3d.core.*; import flash.utils.*; public class Vertex3D { public var vertex2DInstance:Vertex2D; public var connectedFaces:Dictionary; public var normal:Number3D; public var extra:Object; public var x:Number; public var y:Number; public var z:Number; public function Vertex3D(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0){ this.x = _arg1; this.y = _arg2; this.z = _arg3; this.vertex2DInstance = new Vertex2D(); this.normal = new Number3D(); this.connectedFaces = new Dictionary(); } public function calculateNormal():void{ var _local1:Face3D; normal = new Number3D(); for each (_local1 in connectedFaces) { normal = Number3D.add(_local1.faceNormal, normal); }; normal.normalize(); } public function toNumber3D():Number3D{ return (new Number3D(x, y, z)); } public function clone():Vertex3D{ var _local1:Vertex3D; _local1 = new Vertex3D(x, y, z); _local1.extra = extra; _local1.vertex2DInstance = vertex2DInstance.clone(); _local1.normal = normal.clone(); return (_local1); } } }//package org.papervision3d.core.geom
Section 68
//Vertices3D (org.papervision3d.core.geom.Vertices3D) package org.papervision3d.core.geom { import org.papervision3d.objects.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.*; import org.papervision3d.scenes.*; public class Vertices3D extends DisplayObject3D { public function Vertices3D(_arg1:Array, _arg2:String=null, _arg3:Object=null){ super(_arg2, new GeometryObject3D(), _arg3); this.geometry.vertices = ((_arg1) || (new Array())); } override public function project(_arg1:DisplayObject3D, _arg2:CameraObject3D, _arg3:Array=null):Number{ var _local4:Matrix3D; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Vertex3D; var _local21:Vertex2D; var _local22:Number; var _local23:Array; var _local24:int; var _local25:Number; var _local26:Number; super.project(_arg1, _arg2, _arg3); _local4 = this.view; _local5 = _local4.n11; _local6 = _local4.n12; _local7 = _local4.n13; _local8 = _local4.n21; _local9 = _local4.n22; _local10 = _local4.n23; _local11 = _local4.n31; _local12 = _local4.n32; _local13 = _local4.n33; _local23 = this.geometry.vertices; _local24 = _local23.length; _local25 = _arg2.focus; _local26 = (_local25 * _arg2.zoom); while ((_local20 = _local23[--_local24])) { _local14 = _local20.x; _local15 = _local20.y; _local16 = _local20.z; _local19 = ((((_local14 * _local11) + (_local15 * _local12)) + (_local16 * _local13)) + _local4.n34); _local21 = _local20.vertex2DInstance; if ((_local21.visible = (_local19 > 0))){ _local17 = ((((_local14 * _local5) + (_local15 * _local6)) + (_local16 * _local7)) + _local4.n14); _local18 = ((((_local14 * _local8) + (_local15 * _local9)) + (_local16 * _local10)) + _local4.n24); _local22 = (_local26 / (_local25 + _local19)); _local21.x = (_local17 * _local22); _local21.y = (_local18 * _local22); _local21.z = _local19; }; }; return (0); } public function transformVertices(_arg1:Matrix3D):void{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Array; var _local15:int; var _local16:Vertex3D; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; _local2 = _arg1.n11; _local3 = _arg1.n12; _local4 = _arg1.n13; _local5 = _arg1.n21; _local6 = _arg1.n22; _local7 = _arg1.n23; _local8 = _arg1.n31; _local9 = _arg1.n32; _local10 = _arg1.n33; _local11 = _arg1.n14; _local12 = _arg1.n24; _local13 = _arg1.n34; _local14 = this.geometry.vertices; _local15 = _local14.length; while ((_local16 = _local14[--_local15])) { _local17 = _local16.x; _local18 = _local16.y; _local19 = _local16.z; _local20 = ((((_local17 * _local2) + (_local18 * _local3)) + (_local19 * _local4)) + _local11); _local21 = ((((_local17 * _local5) + (_local18 * _local6)) + (_local19 * _local7)) + _local12); _local22 = ((((_local17 * _local8) + (_local18 * _local9)) + (_local19 * _local10)) + _local13); _local16.x = _local20; _local16.y = _local21; _local16.z = _local22; }; } public function boundingBox():Object{ var _local1:Object; var _local2:Object; var _local3:String; var _local4:Vertex3D; _local1 = this.geometry.vertices; _local2 = new Object(); _local2.min = new Number3D(); _local2.max = new Number3D(); _local2.size = new Number3D(); for (_local3 in _local1) { _local4 = _local1[Number(_local3)]; _local2.min.x = ((_local2.min.x)==undefined) ? _local4.x : Math.min(_local4.x, _local2.min.x); _local2.max.x = ((_local2.max.x)==undefined) ? _local4.x : Math.max(_local4.x, _local2.max.x); _local2.min.y = ((_local2.min.y)==undefined) ? _local4.y : Math.min(_local4.y, _local2.min.y); _local2.max.y = ((_local2.max.y)==undefined) ? _local4.y : Math.max(_local4.y, _local2.max.y); _local2.min.z = ((_local2.min.z)==undefined) ? _local4.z : Math.min(_local4.z, _local2.min.z); _local2.max.z = ((_local2.max.z)==undefined) ? _local4.z : Math.max(_local4.z, _local2.max.z); }; _local2.size.x = (_local2.max.x - _local2.min.x); _local2.size.y = (_local2.max.y - _local2.min.y); _local2.size.z = (_local2.max.z - _local2.min.z); return (_local2); } } }//package org.papervision3d.core.geom
Section 69
//CameraObject3D (org.papervision3d.core.proto.CameraObject3D) package org.papervision3d.core.proto { import org.papervision3d.objects.*; import org.papervision3d.core.*; public class CameraObject3D extends DisplayObject3D { public var sort:Boolean; public var zoom:Number; public var focus:Number; private static var _flipY:Matrix3D = Matrix3D.scaleMatrix(1, -1, 1); public static var DEFAULT_POS:Number3D = new Number3D(0, 0, -1000); public function CameraObject3D(_arg1:Number=3, _arg2:Number=500, _arg3:Object=null){ this.x = (_arg3) ? ((_arg3.x) || (DEFAULT_POS.x)) : DEFAULT_POS.x; this.y = (_arg3) ? ((_arg3.y) || (DEFAULT_POS.y)) : DEFAULT_POS.y; this.z = (_arg3) ? ((_arg3.z) || (DEFAULT_POS.z)) : DEFAULT_POS.z; this.zoom = _arg1; this.focus = _arg2; this.sort = (_arg3) ? !((_arg3.sort == false)) : true; } public function transformView(_arg1:Matrix3D=null):void{ this.view = Matrix3D.inverse(Matrix3D.multiply(((_arg1) || (this.transform)), _flipY)); } public function pan(_arg1:Number):void{ super.yaw(_arg1); } public function tilt(_arg1:Number):void{ super.pitch(_arg1); } } }//package org.papervision3d.core.proto
Section 70
//DisplayObjectContainer3D (org.papervision3d.core.proto.DisplayObjectContainer3D) package org.papervision3d.core.proto { import org.papervision3d.objects.*; import org.papervision3d.materials.*; import flash.events.*; import flash.utils.*; import org.papervision3d.*; public class DisplayObjectContainer3D extends EventDispatcher { protected var _children:Dictionary; public var root:DisplayObjectContainer3D; private var _childrenTotal:int; protected var _childrenByName:Object; public function DisplayObjectContainer3D():void{ this._children = new Dictionary(false); this._childrenByName = new Dictionary(true); this._childrenTotal = 0; } public function getChildByName(_arg1:String):DisplayObject3D{ return (this._childrenByName[_arg1]); } public function addCollada(_arg1:String, _arg2:MaterialsList=null, _arg3:Number=1):void{ Papervision3D.log("The addCollada() method has been deprecated. Use addChildren( new Collada( filename ) )"); } public function removeChildByName(_arg1:String):DisplayObject3D{ return (removeChild(getChildByName(_arg1))); } public function get numChildren():int{ return (this._childrenTotal); } override public function toString():String{ return (childrenList()); } public function addChildren(_arg1:DisplayObject3D):DisplayObjectContainer3D{ var _local2:DisplayObject3D; for each (_local2 in _arg1.children) { _arg1.removeChild(_local2); this.addChild(_local2); }; return (this); } public function removeChild(_arg1:DisplayObject3D):DisplayObject3D{ if (_arg1){ delete this._childrenByName[this._children[_arg1]]; delete this._children[_arg1]; _arg1.parent = null; _arg1.root = null; return (_arg1); }; return (null); } public function addChild(_arg1:DisplayObject3D, _arg2:String=null):DisplayObject3D{ _arg2 = ((((_arg2) || (_arg1.name))) || (String(_arg1.id))); this._children[_arg1] = _arg2; this._childrenByName[_arg2] = _arg1; this._childrenTotal++; _arg1.parent = this; _arg1.root = this.root; return (_arg1); } public function childrenList():String{ var _local1:String; var _local2:String; _local1 = ""; for (_local2 in this._children) { _local1 = (_local1 + (_local2 + "\n")); }; return (_local1); } public function get children():Object{ return (this._childrenByName); } } }//package org.papervision3d.core.proto
Section 71
//GeometryObject3D (org.papervision3d.core.proto.GeometryObject3D) package org.papervision3d.core.proto { import org.papervision3d.core.geom.*; import org.papervision3d.materials.*; import org.papervision3d.core.*; import flash.events.*; import flash.utils.*; import org.papervision3d.scenes.*; public class GeometryObject3D extends EventDispatcher { protected var _boundingSphere2:Number; protected var _boundingSphereDirty:Boolean;// = true public var _ready:Boolean;// = false protected var _material:MaterialObject3D; public var faces:Array; public var vertices:Array; public function GeometryObject3D(_arg1:Object=null):void{ _ready = false; _boundingSphereDirty = true; super(); } public function transformVertices(_arg1:Matrix3D):void{ } public function get boundingSphere2():Number{ if (_boundingSphereDirty){ return (getBoundingSphere2()); }; return (_boundingSphere2); } public function getBoundingSphere2():Number{ var _local1:Number; var _local2:Number; var _local3:Vertex3D; _local1 = 0; for each (_local3 in this.vertices) { _local2 = (((_local3.x * _local3.x) + (_local3.y * _local3.y)) + (_local3.z * _local3.z)); _local1 = ((_local2)>_local1) ? _local2 : _local1; }; this._boundingSphereDirty = false; return ((_boundingSphere2 = _local1)); } private function createVertexNormals():void{ var _local1:Dictionary; var _local2:Face3D; var _local3:Vertex3D; _local1 = new Dictionary(true); for each (_local2 in faces) { _local2.v0.connectedFaces[_local2] = _local2; _local2.v1.connectedFaces[_local2] = _local2; _local2.v2.connectedFaces[_local2] = _local2; _local1[_local2.v0] = _local2.v0; _local1[_local2.v1] = _local2.v1; _local1[_local2.v2] = _local2.v2; }; for each (_local3 in _local1) { _local3.calculateNormal(); }; } public function transformUV(_arg1:MaterialObject3D):void{ var _local2:String; if (_arg1.bitmap){ for (_local2 in this.faces) { faces[_local2].transformUV(_arg1); }; }; } public function set ready(_arg1:Boolean):void{ if (_arg1){ createVertexNormals(); }; _ready = _arg1; } public function get ready():Boolean{ return (_ready); } } }//package org.papervision3d.core.proto
Section 72
//MaterialObject3D (org.papervision3d.core.proto.MaterialObject3D) package org.papervision3d.core.proto { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.display.*; import org.papervision3d.materials.*; import flash.events.*; import org.papervision3d.core.draw.*; public class MaterialObject3D extends EventDispatcher implements IFaceDrawer { public var widthOffset:Number;// = 0 public var name:String; public var scene:SceneObject3D; public var needsVertexNormals:Boolean;// = false public var heightOffset:Number;// = 0 public var fillAlpha:Number;// = 0 public var fillColor:Number; public var id:Number; public var invisible:Boolean;// = false public var smooth:Boolean;// = false public var bitmap:BitmapData; public var lineColor:Number; public var lineAlpha:Number;// = 0 public var oneSide:Boolean;// = true public var lineThickness:Number;// = 1 public var opposite:Boolean;// = false public var maxU:Number; public var maxV:Number; public var tiled:Boolean;// = false public var needsFaceNormals:Boolean;// = false public static var DEFAULT_COLOR:int = 0; public static var DEBUG_COLOR:int = 0xFF00FF; private static var _totalMaterialObjects:Number = 0; public function MaterialObject3D(){ smooth = false; tiled = false; lineColor = DEFAULT_COLOR; lineAlpha = 0; lineThickness = 1; fillColor = DEFAULT_COLOR; fillAlpha = 0; oneSide = true; invisible = false; opposite = false; needsFaceNormals = false; needsVertexNormals = false; widthOffset = 0; heightOffset = 0; super(); this.id = _totalMaterialObjects++; } public function get doubleSided():Boolean{ return (!(this.oneSide)); } public function drawFace3D(_arg1:DisplayObject3D, _arg2:Face3D, _arg3:Graphics, _arg4:Vertex2D, _arg5:Vertex2D, _arg6:Vertex2D):int{ return (0); } public function set doubleSided(_arg1:Boolean):void{ this.oneSide = !(_arg1); } public function updateBitmap():void{ } override public function toString():String{ return (((((("[MaterialObject3D] bitmap:" + this.bitmap) + " lineColor:") + this.lineColor) + " fillColor:") + fillColor)); } public function copy(_arg1:MaterialObject3D):void{ this.bitmap = _arg1.bitmap; this.smooth = _arg1.smooth; this.lineColor = _arg1.lineColor; this.lineAlpha = _arg1.lineAlpha; this.fillColor = _arg1.fillColor; this.fillAlpha = _arg1.fillAlpha; this.needsFaceNormals = _arg1.needsFaceNormals; this.needsVertexNormals = _arg1.needsVertexNormals; this.oneSide = _arg1.oneSide; this.opposite = _arg1.opposite; this.invisible = _arg1.invisible; this.scene = _arg1.scene; this.name = _arg1.name; this.maxU = _arg1.maxU; this.maxV = _arg1.maxV; } public function clone():MaterialObject3D{ var _local1:MaterialObject3D; _local1 = new MaterialObject3D(); _local1.copy(this); return (_local1); } public static function get DEFAULT():MaterialObject3D{ var _local1:MaterialObject3D; _local1 = new WireframeMaterial(); _local1.lineColor = (0xFFFFFF * Math.random()); _local1.lineAlpha = 1; _local1.fillColor = DEFAULT_COLOR; _local1.fillAlpha = 1; _local1.doubleSided = false; return (_local1); } public static function get DEBUG():MaterialObject3D{ var _local1:MaterialObject3D; _local1 = new (MaterialObject3D); _local1.lineColor = (0xFFFFFF * Math.random()); _local1.lineAlpha = 1; _local1.fillColor = DEBUG_COLOR; _local1.fillAlpha = 0.37; _local1.doubleSided = true; return (_local1); } } }//package org.papervision3d.core.proto
Section 73
//SceneObject3D (org.papervision3d.core.proto.SceneObject3D) package org.papervision3d.core.proto { import org.papervision3d.objects.*; import flash.display.*; import org.papervision3d.materials.*; import flash.utils.*; import org.papervision3d.core.stat.*; import org.papervision3d.core.culling.*; import org.papervision3d.*; public class SceneObject3D extends DisplayObjectContainer3D { public var container:Sprite; public var triangleCuller:ITriangleCuller; private var geometries:Dictionary; public var objects:Array; public var stats:RenderStatistics; public var materials:MaterialsList; public function SceneObject3D(_arg1:Sprite){ triangleCuller = new DefaultTriangleCuller(); super(); if (_arg1){ this.container = _arg1; } else { Papervision3D.log("Scene3D: container argument required."); }; this.objects = new Array(); this.materials = new MaterialsList(); Papervision3D.log((((((Papervision3D.NAME + " ") + Papervision3D.VERSION) + " (") + Papervision3D.DATE) + ")\n")); this.stats = new RenderStatistics(); this.stats.points = 0; this.stats.polys = 0; this.stats.triangles = 0; this.stats.performance = 0; this.stats.rendered = 0; this.root = this; } override public function addChild(_arg1:DisplayObject3D, _arg2:String=null):DisplayObject3D{ var _local3:DisplayObject3D; _local3 = super.addChild(_arg1, _arg2); _arg1.scene = this; this.objects.push(_local3); return (_local3); } public function renderCamera(_arg1:CameraObject3D):void{ var _local2:Array; var _local3:DisplayObject3D; var _local4:Number; stats.clear(); stats.performance = getTimer(); MovieMaterial.updateAnimatedBitmaps(); if (_arg1){ _arg1.transformView(); _local2 = this.objects; _local4 = _local2.length; while ((_local3 = _local2[--_local4])) { if (_local3.visible){ _local3.project(_arg1, _arg1); }; }; }; if (_arg1.sort){ this.objects.sortOn("screenZ", Array.NUMERIC); }; renderObjects(_arg1.sort); } protected function renderObjects(_arg1:Boolean):void{ } override public function removeChild(_arg1:DisplayObject3D):DisplayObject3D{ var _local2:int; super.removeChild(_arg1); _local2 = 0; while (_local2 < this.objects.length) { if (this.objects[_local2] === _arg1){ this.objects.splice(_local2, 1); return (_arg1); }; _local2++; }; return (_arg1); } } }//package org.papervision3d.core.proto
Section 74
//RenderStatistics (org.papervision3d.core.stat.RenderStatistics) package org.papervision3d.core.stat { public class RenderStatistics { public var points:int;// = 0 public var polys:int;// = 0 public var triangles:int;// = 0 public var pixels:Number; public var performance:int;// = 0 public var rendered:int;// = 0 public var culledTriangles:int;// = 0 public var particles:Number; public function RenderStatistics(){ performance = 0; points = 0; polys = 0; rendered = 0; triangles = 0; culledTriangles = 0; super(); } public function clear():void{ performance = 0; points = 0; polys = 0; rendered = 0; triangles = 0; pixels = 0; particles = 0; culledTriangles = 0; } public function toString():String{ return (new String(((((((((("Performance:" + performance) + ", Points:") + points) + " Polys:") + polys) + " Rendered:") + rendered) + " Culled:") + culledTriangles))); } } }//package org.papervision3d.core.stat
Section 75
//Matrix3D (org.papervision3d.core.Matrix3D) package org.papervision3d.core { public class Matrix3D { public var n31:Number; public var n32:Number; public var n11:Number; public var n13:Number; public var n14:Number; public var n33:Number; public var n12:Number; public var n21:Number; public var n22:Number; public var n23:Number; public var n24:Number; public var n34:Number; private static var toDEGREES:Number = 57.2957795130823; private static var toRADIANS:Number = 0.0174532925199433; public function Matrix3D(_arg1:Array=null){ if (((!(_arg1)) || ((_arg1.length < 12)))){ n11 = (n22 = (n33 = 1)); n12 = (n13 = (n14 = (n21 = (n23 = (n24 = (n31 = (n32 = (n34 = 0)))))))); } else { n11 = _arg1[0]; n12 = _arg1[1]; n13 = _arg1[2]; n14 = _arg1[3]; n21 = _arg1[4]; n22 = _arg1[5]; n23 = _arg1[6]; n24 = _arg1[7]; n31 = _arg1[8]; n32 = _arg1[9]; n33 = _arg1[10]; n34 = _arg1[11]; }; } public function calculateMultiply3x3(_arg1:Matrix3D, _arg2:Matrix3D):void{ var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; _local3 = _arg1.n11; _local4 = _arg2.n11; _local5 = _arg1.n21; _local6 = _arg2.n21; _local7 = _arg1.n31; _local8 = _arg2.n31; _local9 = _arg1.n12; _local10 = _arg2.n12; _local11 = _arg1.n22; _local12 = _arg2.n22; _local13 = _arg1.n32; _local14 = _arg2.n32; _local15 = _arg1.n13; _local16 = _arg2.n13; _local17 = _arg1.n23; _local18 = _arg2.n23; _local19 = _arg1.n33; _local20 = _arg2.n33; this.n11 = (((_local3 * _local4) + (_local9 * _local6)) + (_local15 * _local8)); this.n12 = (((_local3 * _local10) + (_local9 * _local12)) + (_local15 * _local14)); this.n13 = (((_local3 * _local16) + (_local9 * _local18)) + (_local15 * _local20)); this.n21 = (((_local5 * _local4) + (_local11 * _local6)) + (_local17 * _local8)); this.n22 = (((_local5 * _local10) + (_local11 * _local12)) + (_local17 * _local14)); this.n23 = (((_local5 * _local16) + (_local11 * _local18)) + (_local17 * _local20)); this.n31 = (((_local7 * _local4) + (_local13 * _local6)) + (_local19 * _local8)); this.n32 = (((_local7 * _local10) + (_local13 * _local12)) + (_local19 * _local14)); this.n33 = (((_local7 * _local16) + (_local13 * _local18)) + (_local19 * _local20)); } public function get trace():Number{ return ((((this.n11 + this.n22) + this.n33) + 1)); } public function get det():Number{ return ((((((this.n11 * this.n22) - (this.n21 * this.n12)) * this.n33) - (((this.n11 * this.n32) - (this.n31 * this.n12)) * this.n23)) + (((this.n21 * this.n32) - (this.n31 * this.n22)) * this.n13))); } public function copy3x3(_arg1:Matrix3D):Matrix3D{ this.n11 = _arg1.n11; this.n12 = _arg1.n12; this.n13 = _arg1.n13; this.n21 = _arg1.n21; this.n22 = _arg1.n22; this.n23 = _arg1.n23; this.n31 = _arg1.n31; this.n32 = _arg1.n32; this.n33 = _arg1.n33; return (this); } public function calculateAdd(_arg1:Matrix3D, _arg2:Matrix3D):void{ this.n11 = (_arg1.n11 + _arg2.n11); this.n12 = (_arg1.n12 + _arg2.n12); this.n13 = (_arg1.n13 + _arg2.n13); this.n14 = (_arg1.n14 + _arg2.n14); this.n21 = (_arg1.n21 + _arg2.n21); this.n22 = (_arg1.n22 + _arg2.n22); this.n23 = (_arg1.n23 + _arg2.n23); this.n24 = (_arg1.n24 + _arg2.n24); this.n31 = (_arg1.n31 + _arg2.n31); this.n32 = (_arg1.n32 + _arg2.n32); this.n33 = (_arg1.n33 + _arg2.n33); this.n34 = (_arg1.n34 + _arg2.n34); } public function calculateMultiply(_arg1:Matrix3D, _arg2:Matrix3D):void{ var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:Number; _local3 = _arg1.n11; _local4 = _arg2.n11; _local5 = _arg1.n21; _local6 = _arg2.n21; _local7 = _arg1.n31; _local8 = _arg2.n31; _local9 = _arg1.n12; _local10 = _arg2.n12; _local11 = _arg1.n22; _local12 = _arg2.n22; _local13 = _arg1.n32; _local14 = _arg2.n32; _local15 = _arg1.n13; _local16 = _arg2.n13; _local17 = _arg1.n23; _local18 = _arg2.n23; _local19 = _arg1.n33; _local20 = _arg2.n33; _local21 = _arg1.n14; _local22 = _arg2.n14; _local23 = _arg1.n24; _local24 = _arg2.n24; _local25 = _arg1.n34; _local26 = _arg2.n34; this.n11 = (((_local3 * _local4) + (_local9 * _local6)) + (_local15 * _local8)); this.n12 = (((_local3 * _local10) + (_local9 * _local12)) + (_local15 * _local14)); this.n13 = (((_local3 * _local16) + (_local9 * _local18)) + (_local15 * _local20)); this.n14 = ((((_local3 * _local22) + (_local9 * _local24)) + (_local15 * _local26)) + _local21); this.n21 = (((_local5 * _local4) + (_local11 * _local6)) + (_local17 * _local8)); this.n22 = (((_local5 * _local10) + (_local11 * _local12)) + (_local17 * _local14)); this.n23 = (((_local5 * _local16) + (_local11 * _local18)) + (_local17 * _local20)); this.n24 = ((((_local5 * _local22) + (_local11 * _local24)) + (_local17 * _local26)) + _local23); this.n31 = (((_local7 * _local4) + (_local13 * _local6)) + (_local19 * _local8)); this.n32 = (((_local7 * _local10) + (_local13 * _local12)) + (_local19 * _local14)); this.n33 = (((_local7 * _local16) + (_local13 * _local18)) + (_local19 * _local20)); this.n34 = ((((_local7 * _local22) + (_local13 * _local24)) + (_local19 * _local26)) + _local25); } public function toString():String{ var _local1:String; _local1 = ""; _local1 = (_local1 + ((((((((int((n11 * 1000)) / 1000) + "\t\t") + (int((n12 * 1000)) / 1000)) + "\t\t") + (int((n13 * 1000)) / 1000)) + "\t\t") + (int((n14 * 1000)) / 1000)) + "\n")); _local1 = (_local1 + ((((((((int((n21 * 1000)) / 1000) + "\t\t") + (int((n22 * 1000)) / 1000)) + "\t\t") + (int((n23 * 1000)) / 1000)) + "\t\t") + (int((n24 * 1000)) / 1000)) + "\n")); _local1 = (_local1 + ((((((((int((n31 * 1000)) / 1000) + "\t\t") + (int((n32 * 1000)) / 1000)) + "\t\t") + (int((n33 * 1000)) / 1000)) + "\t\t") + (int((n34 * 1000)) / 1000)) + "\n")); return (_local1); } public function copy(_arg1:Matrix3D):Matrix3D{ this.n11 = _arg1.n11; this.n12 = _arg1.n12; this.n13 = _arg1.n13; this.n14 = _arg1.n14; this.n21 = _arg1.n21; this.n22 = _arg1.n22; this.n23 = _arg1.n23; this.n24 = _arg1.n24; this.n31 = _arg1.n31; this.n32 = _arg1.n32; this.n33 = _arg1.n33; this.n34 = _arg1.n34; return (this); } public function calculateInverse(_arg1:Matrix3D):void{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; _local2 = _arg1.det; if (Math.abs(_local2) > 0.001){ _local2 = (1 / _local2); _local3 = _arg1.n11; _local4 = _arg1.n21; _local5 = _arg1.n31; _local6 = _arg1.n12; _local7 = _arg1.n22; _local8 = _arg1.n32; _local9 = _arg1.n13; _local10 = _arg1.n23; _local11 = _arg1.n33; _local12 = _arg1.n14; _local13 = _arg1.n24; _local14 = _arg1.n34; this.n11 = (_local2 * ((_local7 * _local11) - (_local8 * _local10))); this.n12 = (-(_local2) * ((_local6 * _local11) - (_local8 * _local9))); this.n13 = (_local2 * ((_local6 * _local10) - (_local7 * _local9))); this.n14 = (-(_local2) * (((_local6 * ((_local10 * _local14) - (_local11 * _local13))) - (_local7 * ((_local9 * _local14) - (_local11 * _local12)))) + (_local8 * ((_local9 * _local13) - (_local10 * _local12))))); this.n21 = (-(_local2) * ((_local4 * _local11) - (_local5 * _local10))); this.n22 = (_local2 * ((_local3 * _local11) - (_local5 * _local9))); this.n23 = (-(_local2) * ((_local3 * _local10) - (_local4 * _local9))); this.n24 = (_local2 * (((_local3 * ((_local10 * _local14) - (_local11 * _local13))) - (_local4 * ((_local9 * _local14) - (_local11 * _local12)))) + (_local5 * ((_local9 * _local13) - (_local10 * _local12))))); this.n31 = (_local2 * ((_local4 * _local8) - (_local5 * _local7))); this.n32 = (-(_local2) * ((_local3 * _local8) - (_local5 * _local6))); this.n33 = (_local2 * ((_local3 * _local7) - (_local4 * _local6))); this.n34 = (-(_local2) * (((_local3 * ((_local7 * _local14) - (_local8 * _local13))) - (_local4 * ((_local6 * _local14) - (_local8 * _local12)))) + (_local5 * ((_local6 * _local13) - (_local7 * _local12))))); }; } public static function rotationMatrixWithReference(_arg1:Number3D, _arg2:Number, _arg3:Number3D):Matrix3D{ var _local4:Matrix3D; _local4 = Matrix3D.translationMatrix(_arg3.x, -(_arg3.y), _arg3.z); Matrix3D.translationMatrix(_arg3.x, -(_arg3.y), _arg3.z).calculateMultiply(_local4, Matrix3D.rotationMatrix(_arg1.x, _arg1.y, _arg1.z, _arg2)); _local4.calculateMultiply(_local4, Matrix3D.translationMatrix(-(_arg3.x), _arg3.y, -(_arg3.z))); return (_local4); } public static function multiplyVector3x3(_arg1:Matrix3D, _arg2:Number3D):void{ var _local3:Number; var _local4:Number; var _local5:Number; _local3 = _arg2.x; _local4 = _arg2.y; _local5 = _arg2.z; _arg2.x = (((_local3 * _arg1.n11) + (_local4 * _arg1.n12)) + (_local5 * _arg1.n13)); _arg2.y = (((_local3 * _arg1.n21) + (_local4 * _arg1.n22)) + (_local5 * _arg1.n23)); _arg2.z = (((_local3 * _arg1.n31) + (_local4 * _arg1.n32)) + (_local5 * _arg1.n33)); } public static function multiply3x3(_arg1:Matrix3D, _arg2:Matrix3D):Matrix3D{ var _local3:Matrix3D; _local3 = new (Matrix3D); _local3.calculateMultiply3x3(_arg1, _arg2); return (_local3); } public static function normalizeQuaternion(_arg1:Object):Object{ var _local2:Number; _local2 = magnitudeQuaternion(_arg1); _arg1.x = (_arg1.x / _local2); _arg1.y = (_arg1.y / _local2); _arg1.z = (_arg1.z / _local2); _arg1.w = (_arg1.w / _local2); return (_arg1); } public static function multiplyVector(_arg1:Matrix3D, _arg2:Number3D):void{ var _local3:Number; var _local4:Number; var _local5:Number; _local3 = _arg2.x; _local4 = _arg2.y; _local5 = _arg2.z; _arg2.x = ((((_local3 * _arg1.n11) + (_local4 * _arg1.n12)) + (_local5 * _arg1.n13)) + _arg1.n14); _arg2.y = ((((_local3 * _arg1.n21) + (_local4 * _arg1.n22)) + (_local5 * _arg1.n23)) + _arg1.n24); _arg2.z = ((((_local3 * _arg1.n31) + (_local4 * _arg1.n32)) + (_local5 * _arg1.n33)) + _arg1.n34); } public static function axis2quaternion(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Object{ var _local5:Number; var _local6:Number; var _local7:Object; _local5 = Math.sin((_arg4 / 2)); _local6 = Math.cos((_arg4 / 2)); _local7 = new Object(); _local7.x = (_arg1 * _local5); _local7.y = (_arg2 * _local5); _local7.z = (_arg3 * _local5); _local7.w = _local6; return (normalizeQuaternion(_local7)); } public static function translationMatrix(_arg1:Number, _arg2:Number, _arg3:Number):Matrix3D{ var _local4:Matrix3D; _local4 = IDENTITY; _local4.n14 = _arg1; _local4.n24 = _arg2; _local4.n34 = _arg3; return (_local4); } public static function magnitudeQuaternion(_arg1:Object):Number{ return (Math.sqrt(((((_arg1.w * _arg1.w) + (_arg1.x * _arg1.x)) + (_arg1.y * _arg1.y)) + (_arg1.z * _arg1.z)))); } public static function euler2quaternion(_arg1:Number, _arg2:Number, _arg3:Number):Object{ var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Object; _local4 = Math.sin((_arg1 * 0.5)); _local5 = Math.cos((_arg1 * 0.5)); _local6 = Math.sin((_arg2 * 0.5)); _local7 = Math.cos((_arg2 * 0.5)); _local8 = Math.sin((_arg3 * 0.5)); _local9 = Math.cos((_arg3 * 0.5)); _local10 = (_local5 * _local7); _local11 = (_local4 * _local6); _local12 = new Object(); _local12.x = ((_local8 * _local10) - (_local9 * _local11)); _local12.y = (((_local9 * _local4) * _local7) + ((_local8 * _local5) * _local6)); _local12.z = (((_local9 * _local5) * _local6) - ((_local8 * _local4) * _local7)); _local12.w = ((_local9 * _local10) + (_local8 * _local11)); return (_local12); } public static function rotationX(_arg1:Number):Matrix3D{ var _local2:Matrix3D; var _local3:Number; var _local4:Number; _local2 = IDENTITY; _local3 = Math.cos(_arg1); _local4 = Math.sin(_arg1); _local2.n22 = _local3; _local2.n23 = -(_local4); _local2.n32 = _local4; _local2.n33 = _local3; return (_local2); } public static function rotationY(_arg1:Number):Matrix3D{ var _local2:Matrix3D; var _local3:Number; var _local4:Number; _local2 = IDENTITY; _local3 = Math.cos(_arg1); _local4 = Math.sin(_arg1); _local2.n11 = _local3; _local2.n13 = -(_local4); _local2.n31 = _local4; _local2.n33 = _local3; return (_local2); } public static function rotationZ(_arg1:Number):Matrix3D{ var _local2:Matrix3D; var _local3:Number; var _local4:Number; _local2 = IDENTITY; _local3 = Math.cos(_arg1); _local4 = Math.sin(_arg1); _local2.n11 = _local3; _local2.n12 = -(_local4); _local2.n21 = _local4; _local2.n22 = _local3; return (_local2); } public static function clone(_arg1:Matrix3D):Matrix3D{ return (new Matrix3D([_arg1.n11, _arg1.n12, _arg1.n13, _arg1.n14, _arg1.n21, _arg1.n22, _arg1.n23, _arg1.n24, _arg1.n31, _arg1.n32, _arg1.n33, _arg1.n34])); } public static function rotationMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix3D{ var _local5:Matrix3D; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; _local5 = IDENTITY; _local6 = Math.cos(_arg4); _local7 = Math.sin(_arg4); _local8 = (1 - _local6); _local9 = ((_arg1 * _arg2) * _local8); _local10 = ((_arg2 * _arg3) * _local8); _local11 = ((_arg1 * _arg3) * _local8); _local12 = (_local7 * _arg3); _local13 = (_local7 * _arg2); _local14 = (_local7 * _arg1); _local5.n11 = (_local6 + ((_arg1 * _arg1) * _local8)); _local5.n12 = (-(_local12) + _local9); _local5.n13 = (_local13 + _local11); _local5.n21 = (_local12 + _local9); _local5.n22 = (_local6 + ((_arg2 * _arg2) * _local8)); _local5.n23 = (-(_local14) + _local10); _local5.n31 = (-(_local13) + _local11); _local5.n32 = (_local14 + _local10); _local5.n33 = (_local6 + ((_arg3 * _arg3) * _local8)); return (_local5); } public static function add(_arg1:Matrix3D, _arg2:Matrix3D):Matrix3D{ var _local3:Matrix3D; _local3 = new (Matrix3D); _local3.calculateAdd(_arg1, _arg2); return (_local3); } public static function rotateAxis(_arg1:Matrix3D, _arg2:Number3D):void{ var _local3:Number; var _local4:Number; var _local5:Number; _local3 = _arg2.x; _local4 = _arg2.y; _local5 = _arg2.z; _arg2.x = (((_local3 * _arg1.n11) + (_local4 * _arg1.n12)) + (_local5 * _arg1.n13)); _arg2.y = (((_local3 * _arg1.n21) + (_local4 * _arg1.n22)) + (_local5 * _arg1.n23)); _arg2.z = (((_local3 * _arg1.n31) + (_local4 * _arg1.n32)) + (_local5 * _arg1.n33)); _arg2.normalize(); } public static function multiply(_arg1:Matrix3D, _arg2:Matrix3D):Matrix3D{ var _local3:Matrix3D; _local3 = new (Matrix3D); _local3.calculateMultiply(_arg1, _arg2); return (_local3); } public static function multiplyQuaternion(_arg1:Object, _arg2:Object):Object{ var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Object; _local3 = _arg1.x; _local4 = _arg1.y; _local5 = _arg1.z; _local6 = _arg1.w; _local7 = _arg2.x; _local8 = _arg2.y; _local9 = _arg2.z; _local10 = _arg2.w; _local11 = new Object(); _local11.x = ((((_local6 * _local7) + (_local3 * _local10)) + (_local4 * _local9)) - (_local5 * _local8)); _local11.y = ((((_local6 * _local8) + (_local4 * _local10)) + (_local5 * _local7)) - (_local3 * _local9)); _local11.z = ((((_local6 * _local9) + (_local5 * _local10)) + (_local3 * _local8)) - (_local4 * _local7)); _local11.w = ((((_local6 * _local10) - (_local3 * _local7)) - (_local4 * _local8)) - (_local5 * _local9)); return (_local11); } public static function euler2matrix(_arg1:Number3D):Matrix3D{ var _local2:Matrix3D; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; _local2 = IDENTITY; _local3 = (_arg1.x * toRADIANS); _local4 = (_arg1.y * toRADIANS); _local5 = (_arg1.z * toRADIANS); _local6 = Math.cos(_local3); _local7 = Math.sin(_local3); _local8 = Math.cos(_local4); _local9 = Math.sin(_local4); _local10 = Math.cos(_local5); _local11 = Math.sin(_local5); _local12 = (_local6 * _local9); _local13 = (_local7 * _local9); _local2.n11 = (_local8 * _local10); _local2.n12 = (-(_local8) * _local11); _local2.n13 = _local9; _local2.n21 = ((_local13 * _local10) + (_local6 * _local11)); _local2.n22 = ((-(_local13) * _local11) + (_local6 * _local10)); _local2.n23 = (-(_local7) * _local8); _local2.n31 = ((-(_local12) * _local10) + (_local7 * _local11)); _local2.n32 = ((_local12 * _local11) + (_local7 * _local10)); _local2.n33 = (_local6 * _local8); return (_local2); } public static function scaleMatrix(_arg1:Number, _arg2:Number, _arg3:Number):Matrix3D{ var _local4:Matrix3D; _local4 = IDENTITY; _local4.n11 = _arg1; _local4.n22 = _arg2; _local4.n33 = _arg3; return (_local4); } public static function quaternion2matrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix3D{ var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Matrix3D; _local5 = (_arg1 * _arg1); _local6 = (_arg1 * _arg2); _local7 = (_arg1 * _arg3); _local8 = (_arg1 * _arg4); _local9 = (_arg2 * _arg2); _local10 = (_arg2 * _arg3); _local11 = (_arg2 * _arg4); _local12 = (_arg3 * _arg3); _local13 = (_arg3 * _arg4); _local14 = IDENTITY; _local14.n11 = (1 - (2 * (_local9 + _local12))); _local14.n12 = (2 * (_local6 - _local13)); _local14.n13 = (2 * (_local7 + _local11)); _local14.n21 = (2 * (_local6 + _local13)); _local14.n22 = (1 - (2 * (_local5 + _local12))); _local14.n23 = (2 * (_local10 - _local8)); _local14.n31 = (2 * (_local7 - _local11)); _local14.n32 = (2 * (_local10 + _local8)); _local14.n33 = (1 - (2 * (_local5 + _local9))); return (_local14); } public static function inverse(_arg1:Matrix3D):Matrix3D{ var _local2:Matrix3D; _local2 = new (Matrix3D); _local2.calculateInverse(_arg1); return (_local2); } public static function matrix2euler(_arg1:Matrix3D):Number3D{ var _local2:Number3D; var _local3:Number3D; var _local4:Number3D; var _local5:Number3D; var _local6:Matrix3D; var _local7:Matrix3D; var _local8:Matrix3D; var _local9:Number; _local2 = new Number3D(); _local3 = new Number3D(_arg1.n11, _arg1.n21, _arg1.n31); _local4 = new Number3D(_arg1.n12, _arg1.n22, _arg1.n32); _local5 = new Number3D(_arg1.n13, _arg1.n23, _arg1.n33); _local3.normalize(); _local4.normalize(); _local5.normalize(); _local6 = new Matrix3D([_local3.x, _local4.x, _local5.x, 0, _local3.y, _local4.y, _local5.y, 0, _local3.z, _local4.z, _local5.z, 0]); _local2.x = Math.atan2(_local6.n23, _local6.n33); _local7 = Matrix3D.rotationX(-(_local2.x)); _local8 = Matrix3D.multiply(_local7, _local6); _local9 = Math.sqrt(((_local8.n11 * _local8.n11) + (_local8.n21 * _local8.n21))); _local2.y = Math.atan2(-(_local8.n31), _local9); _local2.z = Math.atan2(-(_local8.n12), _local8.n11); if (_local2.x == Math.PI){ if (_local2.y > 0){ _local2.y = (_local2.y - Math.PI); } else { _local2.y = (_local2.y + Math.PI); }; _local2.x = 0; _local2.z = (_local2.z + Math.PI); }; _local2.x = (_local2.x * toDEGREES); _local2.y = (_local2.y * toDEGREES); _local2.z = (_local2.z * toDEGREES); return (_local2); } public static function get IDENTITY():Matrix3D{ return (new Matrix3D([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0])); } } }//package org.papervision3d.core
Section 76
//Number3D (org.papervision3d.core.Number3D) package org.papervision3d.core { public class Number3D { public var x:Number; public var y:Number; public var z:Number; public function Number3D(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0){ this.x = _arg1; this.y = _arg2; this.z = _arg3; } public function toString():String{ return (((((("x:" + x) + " y:") + y) + " z:") + z)); } public function normalize():void{ var _local1:Number; _local1 = this.modulo; if (((!((_local1 == 0))) && (!((_local1 == 1))))){ this.x = (this.x / _local1); this.y = (this.y / _local1); this.z = (this.z / _local1); }; } public function get modulo():Number{ return (Math.sqrt((((this.x * this.x) + (this.y * this.y)) + (this.z * this.z)))); } public function copyTo(_arg1:Number3D):void{ _arg1.x = x; _arg1.y = y; _arg1.z = z; } public function clone():Number3D{ return (new Number3D(this.x, this.y, this.z)); } public static function sub(_arg1:Number3D, _arg2:Number3D):Number3D{ return (new Number3D((_arg1.x - _arg2.x), (_arg1.y - _arg2.y), (_arg1.z - _arg2.z))); } public static function add(_arg1:Number3D, _arg2:Number3D):Number3D{ return (new Number3D((_arg1.x + _arg2.x), (_arg1.y + _arg2.y), (_arg1.z + _arg2.z))); } public static function cross(_arg1:Number3D, _arg2:Number3D):Number3D{ return (new Number3D(((_arg2.y * _arg1.z) - (_arg2.z * _arg1.y)), ((_arg2.z * _arg1.x) - (_arg2.x * _arg1.z)), ((_arg2.x * _arg1.y) - (_arg2.y * _arg1.x)))); } public static function get ZERO():Number3D{ return (new Number3D(0, 0, 0)); } public static function dot(_arg1:Number3D, _arg2:Number3D):Number{ return ((((_arg1.x * _arg2.x) + (_arg1.y * _arg2.y)) + (_arg2.z * _arg1.z))); } } }//package org.papervision3d.core
Section 77
//NumberUV (org.papervision3d.core.NumberUV) package org.papervision3d.core { public class NumberUV { public var u:Number; public var v:Number; public function NumberUV(_arg1:Number=0, _arg2:Number=0){ this.u = _arg1; this.v = _arg2; } public function toString():String{ return (((("u:" + u) + " v:") + v)); } public function clone():NumberUV{ return (new NumberUV(this.u, this.v)); } public static function get ZERO():NumberUV{ return (new NumberUV(0, 0)); } } }//package org.papervision3d.core
Section 78
//InteractiveScene3DEvent (org.papervision3d.events.InteractiveScene3DEvent) package org.papervision3d.events { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.display.*; import org.papervision3d.utils.*; import flash.events.*; public class InteractiveScene3DEvent extends Event { public var sprite:Sprite;// = null public var interactiveContainerData:InteractiveContainerData;// = null public var displayObject3D:DisplayObject3D;// = null public var face3d:Face3D;// = null public static const OBJECT_ADDED:String = "objectAdded"; public static const OBJECT_PRESS:String = "mousePress"; public static const OBJECT_RELEASE:String = "mouseRelease"; public static const OBJECT_CLICK:String = "mouseClick"; public static const OBJECT_RELEASE_OUTSIDE:String = "mouseReleaseOutside"; public static const OBJECT_OUT:String = "mouseOut"; public static const OBJECT_MOVE:String = "mouseMove"; public static const OBJECT_OVER:String = "mouseOver"; public function InteractiveScene3DEvent(_arg1:String, _arg2:DisplayObject3D=null, _arg3:Sprite=null, _arg4:Face3D=null, _arg5:InteractiveContainerData=null, _arg6:Boolean=false, _arg7:Boolean=false){ displayObject3D = null; sprite = null; face3d = null; interactiveContainerData = null; super(_arg1, _arg6, _arg7); this.displayObject3D = _arg2; this.sprite = _arg3; this.face3d = _arg4; this.interactiveContainerData = _arg5; } } }//package org.papervision3d.events
Section 79
//BitmapMaterial (org.papervision3d.materials.BitmapMaterial) package org.papervision3d.materials { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.display.*; import org.papervision3d.core.proto.*; import flash.geom.*; import org.papervision3d.core.draw.*; import flash.utils.*; import org.papervision3d.*; public class BitmapMaterial extends MaterialObject3D implements IFaceDrawer { public var uvMatrices:Dictionary; protected var _texture:Object; public static var AUTO_MIP_MAPPING:Boolean = false; protected static var _localMatrix:Matrix = new Matrix(); public static var MIP_MAP_DEPTH:Number = 8; protected static var _triMatrix:Matrix = new Matrix(); public function BitmapMaterial(_arg1:BitmapData=null){ uvMatrices = new Dictionary(); super(); if (_arg1){ texture = _arg1; }; } override public function drawFace3D(_arg1:DisplayObject3D, _arg2:Face3D, _arg3:Graphics, _arg4:Vertex2D, _arg5:Vertex2D, _arg6:Vertex2D):int{ var _local7:Matrix; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; if (lineAlpha){ _arg3.lineStyle(0, lineColor, lineAlpha); }; if (bitmap){ _local7 = ((uvMatrices[_arg2]) || (transformUV(_arg2, _arg1))); _local8 = _arg4.x; _local9 = _arg4.y; _local10 = _arg5.x; _local11 = _arg5.y; _local12 = _arg6.x; _local13 = _arg6.y; _triMatrix.a = (_local10 - _local8); _triMatrix.b = (_local11 - _local9); _triMatrix.c = (_local12 - _local8); _triMatrix.d = (_local13 - _local9); _triMatrix.tx = _local8; _triMatrix.ty = _local9; _localMatrix.a = _local7.a; _localMatrix.b = _local7.b; _localMatrix.c = _local7.c; _localMatrix.d = _local7.d; _localMatrix.tx = _local7.tx; _localMatrix.ty = _local7.ty; _localMatrix.concat(_triMatrix); _arg3.beginBitmapFill(bitmap, _localMatrix, tiled, smooth); }; _arg3.moveTo(_local8, _local9); _arg3.lineTo(_local10, _local11); _arg3.lineTo(_local12, _local13); _arg3.lineTo(_local8, _local9); if (bitmap){ _arg3.endFill(); }; if (lineAlpha){ _arg3.lineStyle(); }; return (1); } public function resetMapping():void{ uvMatrices = new Dictionary(); } public function transformUV(_arg1:Face3D, _arg2:DisplayObject3D=null):Matrix{ var _local3:Array; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Matrix; var _local17:Matrix; if (!_arg1.uv){ Papervision3D.log("MaterialObject3D: transformUV() uv not found!"); } else { if (bitmap){ _local3 = _arg1.uv; _local4 = (bitmap.width * maxU); _local5 = (bitmap.height * maxV); _local6 = (_local4 * _local3[0].u); _local7 = (_local5 * (1 - _local3[0].v)); _local8 = (_local4 * _local3[1].u); _local9 = (_local5 * (1 - _local3[1].v)); _local10 = (_local4 * _local3[2].u); _local11 = (_local5 * (1 - _local3[2].v)); if ((((((_local6 == _local8)) && ((_local7 == _local9)))) || ((((_local6 == _local10)) && ((_local7 == _local11)))))){ _local6 = (_local6 - ((_local6)>0.05) ? 0.05 : -0.05); _local7 = (_local7 - ((_local7)>0.07) ? 0.07 : -0.07); }; if ((((_local10 == _local8)) && ((_local11 == _local9)))){ _local10 = (_local10 - ((_local10)>0.05) ? 0.04 : -0.04); _local11 = (_local11 - ((_local11)>0.06) ? 0.06 : -0.06); }; _local12 = (_local8 - _local6); _local13 = (_local9 - _local7); _local14 = (_local10 - _local6); _local15 = (_local11 - _local7); _local16 = new Matrix(_local12, _local13, _local14, _local15, _local6, _local7); _local16.invert(); _local17 = ((uvMatrices[_arg1]) || ((uvMatrices[_arg1] = _local16.clone()))); _local17.a = _local16.a; _local17.b = _local16.b; _local17.c = _local16.c; _local17.d = _local16.d; _local17.tx = _local16.tx; _local17.ty = _local16.ty; } else { Papervision3D.log("MaterialObject3D: transformUV() material.bitmap not found!"); }; }; return (_local17); } public function get texture():Object{ return (this._texture); } protected function correctBitmap(_arg1:BitmapData):BitmapData{ var _local2:BitmapData; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Boolean; _local3 = (1 << MIP_MAP_DEPTH); _local4 = (_arg1.width / _local3); _local4 = ((_local4 == uint(_local4))) ? _local4 : (uint(_local4) + 1); _local5 = (_arg1.height / _local3); _local5 = ((_local5 == uint(_local5))) ? _local5 : (uint(_local5) + 1); _local6 = (_local3 * _local4); _local7 = (_local3 * _local5); _local8 = true; if (_local6 > 2880){ _local6 = _arg1.width; _local8 = false; }; if (_local7 > 2880){ _local7 = _arg1.height; _local8 = false; }; if (!_local8){ Papervision3D.log((("Material " + this.name) + ": Texture too big for mip mapping. Resizing recommended for better performance and quality.")); }; if (((_arg1) && (((!(((_arg1.width % _local3) == 0))) || (!(((_arg1.height % _local3) == 0))))))){ _local2 = new BitmapData(_local6, _local7, _arg1.transparent, 0); widthOffset = _arg1.width; heightOffset = _arg1.height; this.maxU = (_arg1.width / _local6); this.maxV = (_arg1.height / _local7); _local2.draw(_arg1); extendBitmapEdges(_local2, _arg1.width, _arg1.height); } else { this.maxU = (this.maxV = 1); _local2 = _arg1; }; return (_local2); } public function set texture(_arg1:Object):void{ if ((_arg1 is BitmapData) == false){ Papervision3D.log("Error: BitmapMaterial.texture requires a BitmapData object for the texture"); return; }; bitmap = createBitmap(BitmapData(_arg1)); _texture = _arg1; } protected function createBitmap(_arg1:BitmapData):BitmapData{ resetMapping(); if (AUTO_MIP_MAPPING){ return (correctBitmap(_arg1)); }; this.maxU = (this.maxV = 1); return (_arg1); } override public function toString():String{ return (((((("Texture:" + this.texture) + " lineColor:") + this.lineColor) + " lineAlpha:") + this.lineAlpha)); } override public function copy(_arg1:MaterialObject3D):void{ super.copy(_arg1); this.maxU = _arg1.maxU; this.maxV = _arg1.maxV; } protected function extendBitmapEdges(_arg1:BitmapData, _arg2:Number, _arg3:Number):void{ var _local4:Rectangle; var _local5:Point; var _local6:int; _local4 = new Rectangle(); _local5 = new Point(); if (_arg1.width > _arg2){ _local4.x = (_arg2 - 1); _local4.y = 0; _local4.width = 1; _local4.height = _arg3; _local5.y = 0; _local6 = _arg2; while (_local6 < _arg1.width) { _local5.x = _local6; _arg1.copyPixels(_arg1, _local4, _local5); _local6++; }; }; if (_arg1.height > _arg3){ _local4.x = 0; _local4.y = (_arg3 - 1); _local4.width = _arg1.width; _local4.height = 1; _local5.x = 0; _local6 = _arg3; while (_local6 < _arg1.height) { _local5.y = _local6; _arg1.copyPixels(_arg1, _local4, _local5); _local6++; }; }; } override public function clone():MaterialObject3D{ var _local1:MaterialObject3D; _local1 = super.clone(); _local1.maxU = this.maxU; _local1.maxV = this.maxV; return (_local1); } } }//package org.papervision3d.materials
Section 80
//InteractiveMovieMaterial (org.papervision3d.materials.InteractiveMovieMaterial) package org.papervision3d.materials { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.display.*; public class InteractiveMovieMaterial extends MovieMaterial { public function InteractiveMovieMaterial(_arg1:Sprite, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function drawFace3D(_arg1:DisplayObject3D, _arg2:Face3D, _arg3:Graphics, _arg4:Vertex2D, _arg5:Vertex2D, _arg6:Vertex2D):int{ var _local7:int; _local7 = super.drawFace3D(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); if (((!((_arg1.interactiveSceneManager == null))) && (_local7))){ _arg1.interactiveSceneManager.drawFace(_arg1, _arg2, _arg4.x, _arg5.x, _arg6.x, _arg4.y, _arg5.y, _arg6.y); }; return (_local7); } } }//package org.papervision3d.materials
Section 81
//IPreciseMaterial (org.papervision3d.materials.IPreciseMaterial) package org.papervision3d.materials { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.display.*; public interface IPreciseMaterial { function drawFace3D(_arg1:DisplayObject3D, _arg2:Face3D, _arg3:Graphics, _arg4:Vertex2D, _arg5:Vertex2D, _arg6:Vertex2D):int; function renderRec(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number, _arg10:Number, _arg11:Number, _arg12:Number, _arg13:Number, _arg14:Number, _arg15:Number, _arg16:Number, _arg17:Number):void; function renderTriangleBitmap(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number, _arg10:Number, _arg11:Number, _arg12:Number, _arg13:Number, _arg14:Boolean, _arg15:Boolean):void; } }//package org.papervision3d.materials
Section 82
//MaterialsList (org.papervision3d.materials.MaterialsList) package org.papervision3d.materials { import org.papervision3d.core.proto.*; import flash.utils.*; public class MaterialsList { public var materialsByName:Dictionary; protected var _materials:Dictionary; private var _materialsTotal:int; public function MaterialsList(_arg1=null):void{ var _local2:String; var _local3:String; super(); this.materialsByName = new Dictionary(true); this._materials = new Dictionary(false); this._materialsTotal = 0; if (_arg1){ if ((_arg1 is Array)){ for (_local2 in _arg1) { this.addMaterial(_arg1[_local2]); }; } else { if ((_arg1 is Object)){ for (_local3 in _arg1) { this.addMaterial(_arg1[_local3], _local3); }; }; }; }; } public function get numMaterials():int{ return (this._materialsTotal); } public function addMaterial(_arg1:MaterialObject3D, _arg2:String=null):MaterialObject3D{ _arg2 = ((((_arg2) || (_arg1.name))) || (String(_arg1.id))); this._materials[_arg1] = _arg2; this.materialsByName[_arg2] = _arg1; this._materialsTotal++; return (_arg1); } public function removeMaterial(_arg1:MaterialObject3D):MaterialObject3D{ delete this.materialsByName[this._materials[_arg1]]; delete this._materials[_arg1]; return (_arg1); } public function toString():String{ var _local1:String; var _local2:MaterialObject3D; _local1 = ""; for each (_local2 in this.materialsByName) { _local1 = (_local1 + (this._materials[_local2] + "\n")); }; return (_local1); } public function removeMaterialByName(_arg1:String):MaterialObject3D{ return (removeMaterial(getMaterialByName(_arg1))); } public function clone():MaterialsList{ var _local1:MaterialsList; var _local2:MaterialObject3D; _local1 = new MaterialsList(); for each (_local2 in this.materialsByName) { _local1.addMaterial(_local2.clone(), this._materials[_local2]); }; return (_local1); } public function getMaterialByName(_arg1:String):MaterialObject3D{ return ((this.materialsByName[_arg1]) ? this.materialsByName[_arg1] : this.materialsByName["all"]); } } }//package org.papervision3d.materials
Section 83
//MovieAssetMaterial (org.papervision3d.materials.MovieAssetMaterial) package org.papervision3d.materials { import flash.display.*; import flash.utils.*; import org.papervision3d.*; public class MovieAssetMaterial extends MovieMaterial { private static var _library:Object = new Object(); private static var _count:Object = new Object(); public function MovieAssetMaterial(_arg1:String="", _arg2:Boolean=false, _arg3:Boolean=false){ movieTransparent = _arg2; this.animated = _arg3; if (_arg1.length > 0){ texture = _arg1; }; } protected function createMovie(_arg1):MovieClip{ var _local2:MovieClip; var _local3:MovieClip; var _local4:Class; if (this._texture != _arg1){ var _local5 = _count; var _local6 = this._texture; var _local7 = (_local5[_local6] - 1); _local5[_local6] = _local7; _local3 = _library[this._texture]; if (((_local3) && ((_count[this._texture] == 0)))){ _library[this._texture] = null; }; }; _local2 = _library[_arg1]; if (!_local2){ _local4 = (getDefinitionByName(_arg1) as Class); _local2 = new (_local4); _library[_arg1] = _local2; _count[_arg1] = 0; } else { _local5 = _count; _local6 = _arg1; _local7 = (_local5[_local6] + 1); _local5[_local6] = _local7; }; return (_local2); } override public function get texture():Object{ return (this._texture); } override public function set texture(_arg1:Object):void{ if ((_arg1 is String) == false){ Papervision3D.log("Error: MovieAssetMaterial.texture requires a String to be passed to create the MovieClip reference from the library"); return; }; movie = Sprite(createMovie(String(_arg1))); bitmap = createBitmapFromSprite(movie); _texture = _arg1; } } }//package org.papervision3d.materials
Section 84
//MovieMaterial (org.papervision3d.materials.MovieMaterial) package org.papervision3d.materials { import flash.display.*; import flash.geom.*; import flash.utils.*; import org.papervision3d.*; public class MovieMaterial extends BitmapMaterial { public var movieTransparent:Boolean; public var allowAutoResize:Boolean;// = true public var movie:DisplayObject; private static var animatedMaterials:Dictionary = new Dictionary(false); public function MovieMaterial(_arg1:DisplayObject=null, _arg2:Boolean=false, _arg3:Boolean=false){ allowAutoResize = true; super(); movieTransparent = _arg2; this.animated = _arg3; if (_arg1){ texture = _arg1; }; } public function drawBitmap():void{ var _local1:Matrix; bitmap.fillRect(bitmap.rect, this.fillColor); _local1 = new Matrix(); _local1.scale(movie.scaleX, movie.scaleY); bitmap.draw(movie, _local1, movie.transform.colorTransform); } override public function get texture():Object{ return (this._texture); } public function get animated():Boolean{ return (animatedMaterials[this]); } override public function set texture(_arg1:Object):void{ if ((_arg1 is DisplayObject) == false){ Papervision3D.log("Error: MovieMaterial.texture requires a Sprite to be passed as the object"); return; }; bitmap = createBitmapFromSprite(DisplayObject(_arg1)); _texture = _arg1; } protected function createBitmapFromSprite(_arg1:DisplayObject):BitmapData{ movie = _arg1; initBitmap(movie); drawBitmap(); bitmap = super.createBitmap(bitmap); return (bitmap); } public function set animated(_arg1:Boolean):void{ animatedMaterials[this] = _arg1; } override public function updateBitmap():void{ var _local1:int; var _local2:int; _local1 = int(movie.width); _local2 = int(movie.height); if (((allowAutoResize) && (((!((_local1 == bitmap.width))) || (!((_local2 == bitmap.height))))))){ initBitmap(movie); }; drawBitmap(); } protected function initBitmap(_arg1:DisplayObject):void{ if (bitmap){ bitmap.dispose(); }; bitmap = new BitmapData(_arg1.width, _arg1.height, this.movieTransparent); } public static function updateAnimatedBitmaps():void{ var _local1:Object; for (_local1 in animatedMaterials) { if (animatedMaterials[_local1]){ _local1.updateBitmap(); }; }; } } }//package org.papervision3d.materials
Section 85
//PreciseMovieAssetMaterial (org.papervision3d.materials.PreciseMovieAssetMaterial) package org.papervision3d.materials { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.display.*; import org.papervision3d.core.*; import flash.geom.*; public class PreciseMovieAssetMaterial extends MovieAssetMaterial implements IPreciseMaterial { public var uv2:NumberUV; public var uv1:NumberUV; public var uv0:NumberUV; public var focus:Number;// = 100 public var precision:Number;// = 1 public function PreciseMovieAssetMaterial(_arg1:String="", _arg2:Boolean=false, _arg3:Boolean=false){ precision = 1; focus = 100; super(_arg1, _arg2, _arg3); precision = ((precision * precision) * 1.4); } public function renderRec(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number, _arg10:Number, _arg11:Number, _arg12:Number, _arg13:Number, _arg14:Number, _arg15:Number, _arg16:Number, _arg17:Number):void{ var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:Number; var _local27:Number; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local32:Number; var _local33:Number; var _local34:Number; var _local35:Number; var _local36:Number; var _local37:Number; var _local38:Number; var _local39:Number; if ((((((_arg10 <= 0)) && ((_arg13 <= 0)))) && ((_arg16 <= 0)))){ return; }; if ((((((((_arg17 >= 100)) || ((focus == Infinity)))) || (((Math.max(Math.max(_arg8, _arg11), _arg14) - Math.min(Math.min(_arg8, _arg11), _arg14)) < 1)))) || (((Math.max(Math.max(_arg9, _arg12), _arg15) - Math.min(Math.min(_arg9, _arg12), _arg15)) < 1)))){ renderTriangleBitmap(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg11, _arg12, _arg14, _arg15, smooth, tiled); return; }; _local18 = (focus + _arg10); _local19 = (focus + _arg13); _local20 = (focus + _arg16); _local21 = (2 / (_local18 + _local19)); _local22 = (2 / (_local19 + _local20)); _local23 = (2 / (_local20 + _local18)); _local24 = (((_arg8 * _local18) + (_arg11 * _local19)) * _local21); _local25 = (((_arg9 * _local18) + (_arg12 * _local19)) * _local21); _local26 = (((_arg11 * _local19) + (_arg14 * _local20)) * _local22); _local27 = (((_arg12 * _local19) + (_arg15 * _local20)) * _local22); _local28 = (((_arg14 * _local20) + (_arg8 * _local18)) * _local23); _local29 = (((_arg15 * _local20) + (_arg9 * _local18)) * _local23); _local30 = ((_arg8 + _arg11) - _local24); _local31 = ((_arg9 + _arg12) - _local25); _local32 = ((_arg11 + _arg14) - _local26); _local33 = ((_arg12 + _arg15) - _local27); _local34 = ((_arg14 + _arg8) - _local28); _local35 = ((_arg15 + _arg9) - _local29); _local36 = ((_local30 * _local30) + (_local31 * _local31)); _local37 = ((_local32 * _local32) + (_local33 * _local33)); _local38 = ((_local34 * _local34) + (_local35 * _local35)); if ((((((_local36 <= precision)) && ((_local38 <= precision)))) && ((_local37 <= precision)))){ renderTriangleBitmap(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg11, _arg12, _arg14, _arg15, smooth, tiled); return; }; if ((((((_local36 > precision)) && ((_local38 > precision)))) && ((_local37 > precision)))){ renderRec(_arg1, (_arg2 * 2), (_arg3 * 2), (_arg4 * 2), (_arg5 * 2), (_arg6 * 2), (_arg7 * 2), _arg8, _arg9, _arg10, (_local24 * 0.5), (_local25 * 0.5), ((_arg10 + _arg13) * 0.5), (_local28 * 0.5), (_local29 * 0.5), ((_arg16 + _arg10) * 0.5), (_arg17 + 1)); renderRec(_arg1, (_arg2 * 2), (_arg3 * 2), (_arg4 * 2), (_arg5 * 2), ((_arg6 * 2) - 1), (_arg7 * 2), (_local24 * 0.5), (_local25 * 0.5), ((_arg10 + _arg13) * 0.5), _arg11, _arg12, _arg13, (_local26 * 0.5), (_local27 * 0.5), ((_arg13 + _arg16) * 0.5), (_arg17 + 1)); renderRec(_arg1, (_arg2 * 2), (_arg3 * 2), (_arg4 * 2), (_arg5 * 2), (_arg6 * 2), ((_arg7 * 2) - 1), (_local28 * 0.5), (_local29 * 0.5), ((_arg16 + _arg10) * 0.5), (_local26 * 0.5), (_local27 * 0.5), ((_arg13 + _arg16) * 0.5), _arg14, _arg15, _arg16, (_arg17 + 1)); renderRec(_arg1, (-(_arg2) * 2), (-(_arg3) * 2), (-(_arg4) * 2), (-(_arg5) * 2), ((-(_arg6) * 2) + 1), ((-(_arg7) * 2) + 1), (_local26 * 0.5), (_local27 * 0.5), ((_arg13 + _arg16) * 0.5), (_local28 * 0.5), (_local29 * 0.5), ((_arg16 + _arg10) * 0.5), (_local24 * 0.5), (_local25 * 0.5), ((_arg10 + _arg13) * 0.5), (_arg17 + 1)); return; }; _local39 = Math.max(_local36, Math.max(_local38, _local37)); if (_local36 == _local39){ renderRec(_arg1, (_arg2 * 2), (_arg3 * 1), (_arg4 * 2), (_arg5 * 1), (_arg6 * 2), (_arg7 * 1), _arg8, _arg9, _arg10, (_local24 * 0.5), (_local25 * 0.5), ((_arg10 + _arg13) * 0.5), _arg14, _arg15, _arg16, (_arg17 + 1)); renderRec(_arg1, ((_arg2 * 2) + _arg3), (_arg3 * 1), ((2 * _arg4) + _arg5), (_arg5 * 1), (((_arg6 * 2) + _arg7) - 1), (_arg7 * 1), (_local24 * 0.5), (_local25 * 0.5), ((_arg10 + _arg13) * 0.5), _arg11, _arg12, _arg13, _arg14, _arg15, _arg16, (_arg17 + 1)); return; }; if (_local38 == _local39){ renderRec(_arg1, (_arg2 * 1), (_arg3 * 2), (_arg4 * 1), (_arg5 * 2), (_arg6 * 1), (_arg7 * 2), _arg8, _arg9, _arg10, _arg11, _arg12, _arg13, (_local28 * 0.5), (_local29 * 0.5), ((_arg16 + _arg10) * 0.5), (_arg17 + 1)); renderRec(_arg1, (_arg2 * 1), ((_arg3 * 2) + _arg2), (_arg4 * 1), ((_arg5 * 2) + _arg4), _arg6, (((_arg7 * 2) + _arg6) - 1), (_local28 * 0.5), (_local29 * 0.5), ((_arg16 + _arg10) * 0.5), _arg11, _arg12, _arg13, _arg14, _arg15, _arg16, (_arg17 + 1)); return; }; renderRec(_arg1, (_arg2 - _arg3), (_arg3 * 2), (_arg4 - _arg5), (_arg5 * 2), (_arg6 - _arg7), (_arg7 * 2), _arg8, _arg9, _arg10, _arg11, _arg12, _arg13, (_local26 * 0.5), (_local27 * 0.5), ((_arg13 + _arg16) * 0.5), (_arg17 + 1)); renderRec(_arg1, (2 * _arg2), (_arg3 - _arg2), (_arg4 * 2), (_arg5 - _arg4), (2 * _arg6), (_arg7 - _arg6), _arg8, _arg9, _arg10, (_local26 * 0.5), (_local27 * 0.5), ((_arg13 + _arg16) * 0.5), _arg14, _arg15, _arg16, (_arg17 + 1)); } public function renderTriangleBitmap(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number, _arg10:Number, _arg11:Number, _arg12:Number, _arg13:Number, _arg14:Boolean, _arg15:Boolean):void{ var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Matrix; _local16 = (_arg10 - _arg8); _local17 = (_arg11 - _arg9); _local18 = (_arg12 - _arg8); _local19 = (_arg13 - _arg9); _local20 = new Matrix(((_arg2 * _local16) + (_arg3 * _local18)), ((_arg2 * _local17) + (_arg3 * _local19)), ((_arg4 * _local16) + (_arg5 * _local18)), ((_arg4 * _local17) + (_arg5 * _local19)), (((_arg6 * _local16) + (_arg7 * _local18)) + _arg8), (((_arg6 * _local17) + (_arg7 * _local19)) + _arg9)); _arg1.beginBitmapFill(bitmap, _local20, _arg15, ((_arg14) && (((((_arg8 * (_arg13 - _arg11)) + (_arg10 * (_arg9 - _arg13))) + (_arg12 * (_arg11 - _arg9))) > 400)))); _arg1.moveTo(_arg8, _arg9); _arg1.lineTo(_arg10, _arg11); _arg1.lineTo(_arg12, _arg13); _arg1.endFill(); } override public function drawFace3D(_arg1:DisplayObject3D, _arg2:Face3D, _arg3:Graphics, _arg4:Vertex2D, _arg5:Vertex2D, _arg6:Vertex2D):int{ var _local7:Matrix; _local7 = transformUV(_arg2); renderRec(_arg3, _local7.a, _local7.b, _local7.c, _local7.d, _local7.tx, _local7.ty, _arg4.x, _arg4.y, _arg4.z, _arg5.x, _arg5.y, _arg5.z, _arg6.x, _arg6.y, _arg6.z, 0); return (1); } private static function num(_arg1:Number):Number{ return ((int((_arg1 * 1000)) / 1000)); } } }//package org.papervision3d.materials
Section 86
//WireframeMaterial (org.papervision3d.materials.WireframeMaterial) package org.papervision3d.materials { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.display.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.draw.*; public class WireframeMaterial extends MaterialObject3D implements IFaceDrawer { public function WireframeMaterial(_arg1:Number=0xFF00FF, _arg2:Number=100){ this.lineColor = _arg1; this.lineAlpha = _arg2; this.doubleSided = false; } override public function drawFace3D(_arg1:DisplayObject3D, _arg2:Face3D, _arg3:Graphics, _arg4:Vertex2D, _arg5:Vertex2D, _arg6:Vertex2D):int{ var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; _local7 = _arg4.x; _local8 = _arg4.y; _local9 = _arg5.x; _local10 = _arg5.y; _local11 = _arg6.x; _local12 = _arg6.y; if (lineAlpha){ _arg3.lineStyle(0, lineColor, lineAlpha); _arg3.moveTo(_local7, _local8); _arg3.lineTo(_local9, _local10); _arg3.lineTo(_local11, _local12); _arg3.lineTo(_local7, _local8); _arg3.lineStyle(); return (1); }; return (0); } override public function toString():String{ return (((("WireframeMaterial - color:" + this.lineColor) + " alpha:") + this.lineAlpha)); } } }//package org.papervision3d.materials
Section 87
//DisplayObject3D (org.papervision3d.objects.DisplayObject3D) package org.papervision3d.objects { import org.papervision3d.core.geom.*; import flash.display.*; import org.papervision3d.core.proto.*; import org.papervision3d.materials.*; import org.papervision3d.core.*; import com.blitzagency.xray.logger.*; import org.papervision3d.utils.*; import org.papervision3d.*; import org.papervision3d.scenes.*; public class DisplayObject3D extends DisplayObjectContainer3D { public var extra:Object; public var id:int; private var _rotationY:Number; private var _rotationZ:Number; private var _rotationX:Number; public var material:MaterialObject3D; public var meshSort:uint;// = 1 public var materials:MaterialsList; private var _scaleDirty:Boolean;// = false public var transform:Matrix3D; public var screenZ:Number; public var visible:Boolean; private var _scaleX:Number; private var _scaleY:Number; private var _scaleZ:Number; public var geometry:GeometryObject3D; public var interactiveSceneManager:InteractiveSceneManager; public var screen:Number3D; public var name:String; public var container:Sprite; public var world:Matrix3D; public var parent:DisplayObjectContainer3D; public var view:Matrix3D; protected var _scene:SceneObject3D;// = null public var faces:Array; protected var _transformDirty:Boolean;// = false private var _rotationDirty:Boolean;// = false protected var _sorted:Array; public static const MESH_SORT_CENTER:uint = 1; public static const MESH_SORT_CLOSE:uint = 3; public static const MESH_SORT_FAR:uint = 2; private static var LEFT:Number3D = new Number3D(-1, 0, 0); private static var _totalDisplayObjects:int = 0; private static var UP:Number3D = new Number3D(0, 1, 0); private static var BACKWARD:Number3D = new Number3D(0, 0, -1); private static var FORWARD:Number3D = new Number3D(0, 0, 1); private static var DOWN:Number3D = new Number3D(0, -1, 0); public static var faceLevelMode:Boolean; private static var toDEGREES:Number = 57.2957795130823; private static var toRADIANS:Number = 0.0174532925199433; private static var RIGHT:Number3D = new Number3D(1, 0, 0); public function DisplayObject3D(_arg1:String=null, _arg2:GeometryObject3D=null, _arg3:Object=null):void{ var _local4:Number; screen = new Number3D(); _scene = null; meshSort = MESH_SORT_CENTER; faces = new Array(); _transformDirty = false; _rotationDirty = false; _scaleDirty = false; super(); Papervision3D.log(("DisplayObject3D: " + _arg1)); this.transform = Matrix3D.IDENTITY; this.world = Matrix3D.IDENTITY; this.view = Matrix3D.IDENTITY; this.x = (_arg3) ? ((_arg3.x) || (0)) : 0; this.y = (_arg3) ? ((_arg3.y) || (0)) : 0; this.z = (_arg3) ? ((_arg3.z) || (0)) : 0; rotationX = (_arg3) ? ((_arg3.rotationX) || (0)) : 0; rotationY = (_arg3) ? ((_arg3.rotationY) || (0)) : 0; rotationZ = (_arg3) ? ((_arg3.rotationZ) || (0)) : 0; _local4 = (Papervision3D.usePERCENT) ? 100 : 1; scaleX = (_arg3) ? ((_arg3.scaleX) || (_local4)) : _local4; scaleY = (_arg3) ? ((_arg3.scaleY) || (_local4)) : _local4; scaleZ = (_arg3) ? ((_arg3.scaleZ) || (_local4)) : _local4; if (((_arg3) && (_arg3.extra))){ this.extra = _arg3.extra; }; if (((_arg3) && (_arg3.container))){ this.container = _arg3.container; }; this.visible = true; this.id = _totalDisplayObjects++; this.name = ((_arg1) || (String(this.id))); if (_arg2){ addGeometry(_arg2); }; } public function set z(_arg1:Number):void{ this.transform.n34 = _arg1; } override public function addChild(_arg1:DisplayObject3D, _arg2:String=null):DisplayObject3D{ _arg1 = super.addChild(_arg1, _arg2); if (_arg1.scene == null){ _arg1.scene = scene; }; return (_arg1); } public function moveDown(_arg1:Number):void{ translate(_arg1, DOWN); } public function set scene(_arg1:SceneObject3D):void{ var _local2:DisplayObject3D; _scene = _arg1; for each (_local2 in this._childrenByName) { if (_local2.scene == null){ _local2.scene = _scene; }; }; if ((_scene is InteractiveScene3D) == false){ return; }; interactiveSceneManager = InteractiveScene3D(_scene).interactiveSceneManager; } public function project(_arg1:DisplayObject3D, _arg2:CameraObject3D, _arg3:Array=null):Number{ var _local4:Number; var _local5:Number; var _local6:DisplayObject3D; if (this._transformDirty){ updateTransform(); }; this.view.calculateMultiply(_arg1.view, this.transform); this.world.calculateMultiply(_arg1.world, this.transform); calculateScreenCoords(_arg2); _local4 = 0; _local5 = 0; if (!_arg3){ _arg3 = new Array(); this._sorted = _arg3; }; for each (_local6 in this._childrenByName) { if (_local6.visible){ _local4 = (_local4 + _local6.project(this, _arg2, _arg3)); _local5++; }; }; return ((this.screenZ = (_local4 / _local5))); } private function calculateScreenCoords(_arg1:CameraObject3D):void{ var _local2:Number; _local2 = ((_arg1.focus * _arg1.zoom) / (_arg1.focus + view.n34)); screen.x = (view.n14 * _local2); screen.y = (view.n24 * _local2); screen.z = view.n34; } public function lookAt(_arg1:DisplayObject3D, _arg2:Number3D=null):void{ var _local3:Number3D; var _local4:Number3D; var _local5:Number3D; var _local6:Number3D; var _local7:Number3D; var _local8:Matrix3D; var _local9:XrayLog; _local3 = new Number3D(this.x, this.y, this.z); _local4 = new Number3D(_arg1.x, _arg1.y, _arg1.z); _local5 = Number3D.sub(_local4, _local3); _local5.normalize(); if (_local5.modulo > 0.1){ _local6 = Number3D.cross(_local5, ((_arg2) || (UP))); _local6.normalize(); _local7 = Number3D.cross(_local5, _local6); _local7.normalize(); _local8 = this.transform; _local8.n11 = (_local6.x * _scaleX); _local8.n21 = (_local6.y * _scaleX); _local8.n31 = (_local6.z * _scaleX); _local8.n12 = (-(_local7.x) * _scaleY); _local8.n22 = (-(_local7.y) * _scaleY); _local8.n32 = (-(_local7.z) * _scaleY); _local8.n13 = (_local5.x * _scaleZ); _local8.n23 = (_local5.y * _scaleZ); _local8.n33 = (_local5.z * _scaleZ); this._transformDirty = false; this._rotationDirty = true; } else { _local9 = new XrayLog(); _local9.debug("lookAt Error"); }; } public function set rotationX(_arg1:Number):void{ this._rotationX = (Papervision3D.useDEGREES) ? (-(_arg1) * toRADIANS) : -(_arg1); this._transformDirty = true; } public function set rotationY(_arg1:Number):void{ this._rotationY = (Papervision3D.useDEGREES) ? (-(_arg1) * toRADIANS) : -(_arg1); this._transformDirty = true; } public function set rotationZ(_arg1:Number):void{ this._rotationZ = (Papervision3D.useDEGREES) ? (-(_arg1) * toRADIANS) : -(_arg1); this._transformDirty = true; } public function addGeometry(_arg1:GeometryObject3D=null):void{ if (_arg1){ this.geometry = _arg1; }; } public function get sceneX():Number{ return (this.world.n14); } public function get scaleX():Number{ if (Papervision3D.usePERCENT){ return ((this._scaleX * 100)); }; return (this._scaleX); } public function get scaleY():Number{ if (Papervision3D.usePERCENT){ return ((this._scaleY * 100)); }; return (this._scaleY); } public function get scaleZ():Number{ if (Papervision3D.usePERCENT){ return ((this._scaleZ * 100)); }; return (this._scaleZ); } public function moveUp(_arg1:Number):void{ translate(_arg1, UP); } public function get sceneZ():Number{ return (this.world.n34); } public function distanceTo(_arg1:DisplayObject3D):Number{ var _local2:Number; var _local3:Number; var _local4:Number; _local2 = (this.x - _arg1.x); _local3 = (this.y - _arg1.y); _local4 = (this.z - _arg1.z); return (Math.sqrt((((_local2 * _local2) + (_local3 * _local3)) + (_local4 * _local4)))); } public function get scale():Number{ if ((((this._scaleX == this._scaleY)) && ((this._scaleX == this._scaleZ)))){ if (Papervision3D.usePERCENT){ return ((this._scaleX * 100)); }; return (this._scaleX); //unresolved jump }; return (NaN); } public function get sceneY():Number{ return (this.world.n24); } public function hitTestObject(_arg1:DisplayObject3D, _arg2:Number=1):Boolean{ var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; _local3 = (this.x - _arg1.x); _local4 = (this.y - _arg1.y); _local5 = (this.z - _arg1.z); _local6 = (((_local3 * _local3) + (_local4 * _local4)) + (_local5 * _local5)); _local7 = (this.geometry) ? this.geometry.boundingSphere2 : 0; _local8 = (_arg1.geometry) ? _arg1.geometry.boundingSphere2 : 0; _local7 = (_local7 * _arg2); return (((_local7 + _local8) > _local6)); } public function translate(_arg1:Number, _arg2:Number3D):void{ var _local3:Number3D; _local3 = _arg2.clone(); if (this._transformDirty){ updateTransform(); }; Matrix3D.rotateAxis(transform, _local3); this.x = (this.x + (_arg1 * _local3.x)); this.y = (this.y + (_arg1 * _local3.y)); this.z = (this.z + (_arg1 * _local3.z)); } private function updateRotation():void{ var _local1:Number3D; _local1 = Matrix3D.matrix2euler(this.transform); this._rotationX = (_local1.x * toRADIANS); this._rotationY = (_local1.y * toRADIANS); this._rotationZ = (_local1.z * toRADIANS); this._rotationDirty = false; } public function pitch(_arg1:Number):void{ var _local2:Number3D; var _local3:Matrix3D; _arg1 = (Papervision3D.useDEGREES) ? (_arg1 * toRADIANS) : _arg1; _local2 = RIGHT.clone(); if (this._transformDirty){ updateTransform(); }; Matrix3D.rotateAxis(transform, _local2); _local3 = Matrix3D.rotationMatrix(_local2.x, _local2.y, _local2.z, _arg1); this.transform.calculateMultiply3x3(_local3, transform); this._rotationDirty = true; } public function yaw(_arg1:Number):void{ var _local2:Number3D; var _local3:Matrix3D; _arg1 = (Papervision3D.useDEGREES) ? (_arg1 * toRADIANS) : _arg1; _local2 = UP.clone(); if (this._transformDirty){ updateTransform(); }; Matrix3D.rotateAxis(transform, _local2); _local3 = Matrix3D.rotationMatrix(_local2.x, _local2.y, _local2.z, _arg1); this.transform.calculateMultiply3x3(_local3, transform); this._rotationDirty = true; } public function copyTransform(_arg1):void{ var _local2:Matrix3D; var _local3:Matrix3D; _local2 = this.transform; _local3 = ((_arg1 is DisplayObject3D)) ? _arg1.transform : _arg1; _local2.n11 = _local3.n11; _local2.n12 = _local3.n12; _local2.n13 = _local3.n13; _local2.n14 = _local3.n14; _local2.n21 = _local3.n21; _local2.n22 = _local3.n22; _local2.n23 = _local3.n23; _local2.n24 = _local3.n24; _local2.n31 = _local3.n31; _local2.n32 = _local3.n32; _local2.n33 = _local3.n33; _local2.n34 = _local3.n34; this._transformDirty = false; this._rotationDirty = true; } public function get x():Number{ return (this.transform.n14); } public function get z():Number{ return (this.transform.n34); } override public function toString():String{ return (((((((this.name + ": x:") + Math.round(this.x)) + " y:") + Math.round(this.y)) + " z:") + Math.round(this.z))); } public function roll(_arg1:Number):void{ var _local2:Number3D; var _local3:Matrix3D; _arg1 = (Papervision3D.useDEGREES) ? (_arg1 * toRADIANS) : _arg1; _local2 = FORWARD.clone(); if (this._transformDirty){ updateTransform(); }; Matrix3D.rotateAxis(transform, _local2); _local3 = Matrix3D.rotationMatrix(_local2.x, _local2.y, _local2.z, _arg1); this.transform.calculateMultiply3x3(_local3, transform); this._rotationDirty = true; } public function getMaterialByName(_arg1:String):MaterialObject3D{ var _local2:MaterialObject3D; var _local3:DisplayObject3D; _local2 = this.materials.getMaterialByName(_arg1); if (_local2){ return (_local2); }; for each (_local3 in this._childrenByName) { _local2 = _local3.getMaterialByName(_arg1); if (_local2){ return (_local2); }; }; return (null); } public function moveLeft(_arg1:Number):void{ translate(_arg1, LEFT); } public function get scene():SceneObject3D{ return (_scene); } public function get y():Number{ return (this.transform.n24); } public function set scale(_arg1:Number):void{ if (Papervision3D.usePERCENT){ _arg1 = (_arg1 / 100); }; this._scaleX = (this._scaleY = (this._scaleZ = _arg1)); this._transformDirty = true; } public function render(_arg1:SceneObject3D):void{ var _local2:Array; var _local3:Sprite; var _local4:Number; var _local5:Face3DInstance; var _local6:Number; var _local7:int; _local2 = this._sorted; _local2.sortOn("screenZ", (Array.DESCENDING | Array.NUMERIC)); _local3 = ((this.container) || (_arg1.container)); _local4 = 0; _local6 = _local2.length; _local7 = 0; while (_local7 < _local6) { _local5 = _local2[_local7]; if (faceLevelMode){ if (!_local5.container){ _local5.container = new InteractiveSprite(this); _arg1.container.addChild(_local5.container); } else { _local5.container.graphics.clear(); }; if (_local5.visible){ _local4 = (_local4 + _local5.face.render(_local5.instance, _local5.container)); }; } else { if (_local5.visible){ _local4 = (_local4 + _local5.face.render(_local5.instance, _local3)); }; }; _local7++; }; _arg1.stats.rendered = (_arg1.stats.rendered + _local4); } public function get rotationY():Number{ if (this._rotationDirty){ updateRotation(); }; return ((Papervision3D.useDEGREES) ? (-(this._rotationY) * toDEGREES) : -(this._rotationY)); } public function get rotationZ():Number{ if (this._rotationDirty){ updateRotation(); }; return ((Papervision3D.useDEGREES) ? (-(this._rotationZ) * toDEGREES) : -(this._rotationZ)); } public function set scaleY(_arg1:Number):void{ if (Papervision3D.usePERCENT){ this._scaleY = (_arg1 / 100); } else { this._scaleY = _arg1; }; this._transformDirty = true; } public function set scaleZ(_arg1:Number):void{ if (Papervision3D.usePERCENT){ this._scaleZ = (_arg1 / 100); } else { this._scaleZ = _arg1; }; this._transformDirty = true; } public function get rotationX():Number{ if (this._rotationDirty){ updateRotation(); }; return ((Papervision3D.useDEGREES) ? (-(this._rotationX) * toDEGREES) : -(this._rotationX)); } public function set scaleX(_arg1:Number):void{ if (Papervision3D.usePERCENT){ this._scaleX = (_arg1 / 100); } else { this._scaleX = _arg1; }; this._transformDirty = true; } protected function updateTransform():void{ var _local1:Object; var _local2:Matrix3D; var _local3:Matrix3D; var _local4:Matrix3D; _local1 = Matrix3D.euler2quaternion(-(this._rotationY), -(this._rotationZ), this._rotationX); _local2 = Matrix3D.quaternion2matrix(_local1.x, _local1.y, _local1.z, _local1.w); _local3 = this.transform; _local2.n14 = _local3.n14; _local2.n24 = _local3.n24; _local2.n34 = _local3.n34; _local3.copy(_local2); _local4 = Matrix3D.IDENTITY; _local4.n11 = this._scaleX; _local4.n22 = this._scaleY; _local4.n33 = this._scaleZ; this.transform.calculateMultiply(_local3, _local4); this._transformDirty = false; } public function moveForward(_arg1:Number):void{ translate(_arg1, FORWARD); } public function copyPosition(_arg1):void{ var _local2:Matrix3D; var _local3:Matrix3D; _local2 = this.transform; _local3 = ((_arg1 is DisplayObject3D)) ? _arg1.transform : _arg1; _local2.n14 = _local3.n14; _local2.n24 = _local3.n24; _local2.n34 = _local3.n34; } public function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{ var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; _local4 = (this.x - _arg1); _local5 = (this.y - _arg2); _local6 = (this.z - _arg3); _local7 = (((_arg1 * _arg1) + (_arg2 * _arg2)) + (_arg3 * _arg3)); _local8 = (this.geometry) ? this.geometry.boundingSphere2 : 0; return ((_local8 > _local7)); } public function moveRight(_arg1:Number):void{ translate(_arg1, RIGHT); } public function moveBackward(_arg1:Number):void{ translate(_arg1, BACKWARD); } public function createContainer():void{ container = new Sprite(); } public function materialsList():String{ var _local1:String; var _local2:String; var _local3:DisplayObject3D; _local1 = ""; for (_local2 in this.materials) { _local1 = (_local1 + (_local2 + "\n")); }; for each (_local3 in this._childrenByName) { for (_local2 in _local3.materials.materialsByName) { _local1 = (_local1 + (("+ " + _local2) + "\n")); }; }; return (_local1); } public function set x(_arg1:Number):void{ this.transform.n14 = _arg1; } public function set y(_arg1:Number):void{ this.transform.n24 = _arg1; } public static function get ZERO():DisplayObject3D{ return (new (DisplayObject3D)); } } }//package org.papervision3d.objects
Section 88
//Plane (org.papervision3d.objects.Plane) package org.papervision3d.objects { import org.papervision3d.core.geom.*; import org.papervision3d.core.proto.*; import org.papervision3d.core.*; public class Plane extends Mesh3D { public var segmentsH:Number; public var segmentsW:Number; public static var DEFAULT_SCALE:Number = 1; public static var DEFAULT_SEGMENTS:Number = 1; public static var DEFAULT_SIZE:Number = 500; public function Plane(_arg1:MaterialObject3D=null, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0, _arg6:Object=null){ var _local7:Number; super(_arg1, new Array(), new Array(), null, _arg6); this.segmentsW = ((_arg4) || (DEFAULT_SEGMENTS)); this.segmentsH = ((_arg5) || (this.segmentsW)); _local7 = DEFAULT_SCALE; if (!_arg3){ if (_arg2){ _local7 = _arg2; }; if (((_arg1) && (_arg1.bitmap))){ _arg2 = (_arg1.bitmap.width * _local7); _arg3 = (_arg1.bitmap.height * _local7); } else { _arg2 = (DEFAULT_SIZE * _local7); _arg3 = (DEFAULT_SIZE * _local7); }; }; buildPlane(_arg2, _arg3); } private function buildPlane(_arg1:Number, _arg2:Number):void{ var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Array; var _local8:Array; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:int; var _local14:NumberUV; var _local15:NumberUV; var _local16:NumberUV; var _local17:int; var _local18:Number; var _local19:Number; var _local20:Vertex3D; var _local21:Vertex3D; var _local22:Vertex3D; _local3 = this.segmentsW; _local4 = this.segmentsH; _local5 = (_local3 + 1); _local6 = (_local4 + 1); _local7 = this.geometry.vertices; _local8 = this.geometry.faces; _local9 = (_arg1 / 2); _local10 = (_arg2 / 2); _local11 = (_arg1 / _local3); _local12 = (_arg2 / _local4); _local13 = 0; while (_local13 < (_local3 + 1)) { _local17 = 0; while (_local17 < _local6) { _local18 = ((_local13 * _local11) - _local9); _local19 = ((_local17 * _local12) - _local10); _local7.push(new Vertex3D(_local18, _local19, 0)); _local17++; }; _local13++; }; _local13 = 0; while (_local13 < _local3) { _local17 = 0; while (_local17 < _local4) { _local20 = _local7[((_local13 * _local6) + _local17)]; _local21 = _local7[((_local13 * _local6) + (_local17 + 1))]; _local22 = _local7[(((_local13 + 1) * _local6) + _local17)]; _local14 = new NumberUV((_local13 / _local3), (_local17 / _local4)); _local15 = new NumberUV((_local13 / _local3), ((_local17 + 1) / _local4)); _local16 = new NumberUV(((_local13 + 1) / _local3), (_local17 / _local4)); _local8.push(new Face3D([_local20, _local22, _local21], null, [_local14, _local16, _local15])); _local20 = _local7[(((_local13 + 1) * _local6) + (_local17 + 1))]; _local21 = _local7[(((_local13 + 1) * _local6) + _local17)]; _local22 = _local7[((_local13 * _local6) + (_local17 + 1))]; _local14 = new NumberUV(((_local13 + 1) / _local3), ((_local17 + 1) / _local4)); _local15 = new NumberUV(((_local13 + 1) / _local3), (_local17 / _local4)); _local16 = new NumberUV((_local13 / _local3), ((_local17 + 1) / _local4)); _local8.push(new Face3D([_local20, _local22, _local21], null, [_local14, _local16, _local15])); _local17++; }; _local13++; }; this.geometry.ready = true; } } }//package org.papervision3d.objects
Section 89
//InteractiveScene3D (org.papervision3d.scenes.InteractiveScene3D) package org.papervision3d.scenes { import flash.display.*; import org.papervision3d.core.proto.*; import org.papervision3d.utils.*; public class InteractiveScene3D extends MovieScene3D { public var interactiveSceneManager:InteractiveSceneManager; public function InteractiveScene3D(_arg1:Sprite){ super(_arg1); interactiveSceneManager = new InteractiveSceneManager(this); } override public function renderCamera(_arg1:CameraObject3D):void{ interactiveSceneManager.resetFaces(); super.renderCamera(_arg1); interactiveSceneManager.sortObjects(); } } }//package org.papervision3d.scenes
Section 90
//MovieScene3D (org.papervision3d.scenes.MovieScene3D) package org.papervision3d.scenes { import org.papervision3d.objects.*; import flash.display.*; import org.papervision3d.core.proto.*; import flash.utils.*; public class MovieScene3D extends Scene3D { private var spriteList:Dictionary; private var containerList:Array; public function MovieScene3D(_arg1:Sprite){ super(_arg1); this.containerList = new Array(); spriteList = new Dictionary(); } override public function addChild(_arg1:DisplayObject3D, _arg2:String=null):DisplayObject3D{ _arg1 = super.addChild(_arg1, _arg2); _arg1.createContainer(); container.addChild(_arg1.container); this.containerList.push(_arg1.container); spriteList[_arg1] = _arg1.container; return (_arg1); } public function getSprite(_arg1:DisplayObject3D):Sprite{ return (spriteList[_arg1]); } override protected function renderObjects(_arg1:Boolean):void{ var _local2:Number; var _local3:Sprite; var _local4:Array; var _local5:Number; var _local6:DisplayObject3D; var _local7:Array; var _local8:Object; _local2 = this.objects.length; _local4 = this.containerList; _local5 = 0; while ((_local3 = _local4[_local5++])) { _local3.graphics.clear(); }; _local7 = this.objects; _local5 = _local7.length; if (_arg1){ while ((_local6 = _local7[--_local5])) { if (_local6.visible){ container.addChild(_local6.container); _local6.render(this); }; }; } else { while ((_local6 = _local7[--_local5])) { if (_local6.visible){ _local6.render(this); }; }; }; _local8 = this.stats; _local8.performance = (getTimer() - _local8.performance); } override public function removeChild(_arg1:DisplayObject3D):DisplayObject3D{ var _local2:DisplayObject3D; var _local3:int; _local2 = super.removeChild(_arg1); _local3 = 0; while (_local3 < containerList.length) { if (_local2.container == containerList[_local3]){ this.containerList.splice(_local3, 1); }; _local3++; }; container.removeChild(_local2.container); delete spriteList[_local2]; return (_local2); } } }//package org.papervision3d.scenes
Section 91
//Scene3D (org.papervision3d.scenes.Scene3D) package org.papervision3d.scenes { import org.papervision3d.objects.*; import flash.display.*; import org.papervision3d.core.proto.*; import flash.utils.*; public class Scene3D extends SceneObject3D { public function Scene3D(_arg1:Sprite){ super(_arg1); } override protected function renderObjects(_arg1:Boolean):void{ var _local2:DisplayObject3D; var _local3:Array; var _local4:Number; var _local5:Object; this.container.graphics.clear(); _local3 = this.objects; _local4 = _local3.length; while ((_local2 = _local3[--_local4])) { if (_local2.visible){ _local2.render(this); }; }; _local5 = this.stats; _local5.performance = (getTimer() - _local5.performance); } } }//package org.papervision3d.scenes
Section 92
//IVirtualMouseEvent (org.papervision3d.utils.virtualmouse.IVirtualMouseEvent) package org.papervision3d.utils.virtualmouse { public interface IVirtualMouseEvent { } }//package org.papervision3d.utils.virtualmouse
Section 93
//VirtualMouse (org.papervision3d.utils.virtualmouse.VirtualMouse) package org.papervision3d.utils.virtualmouse { import flash.display.*; import com.blitzagency.xray.logger.*; import flash.events.*; import flash.geom.*; import flash.utils.*; public class VirtualMouse extends EventDispatcher { private var _container:Sprite; private var lastDownTarget:DisplayObject; private var target:InteractiveObject; private var updateMouseDown:Boolean;// = false private var eventEvent:Class; private var _lastEvent:Event; private var mouseEventEvent:Class; private var location:Point; private var delta:int;// = 0 private var disabledEvents:Object; private var log:XrayLog; private var ignoredInstances:Dictionary; private var isLocked:Boolean;// = false private var lastWithinStage:Boolean;// = true private var lastLocation:Point; private var isDoubleClickEvent:Boolean;// = false private var lastMouseDown:Boolean;// = false private var altKey:Boolean;// = false private var _useNativeEvents:Boolean;// = false private var ctrlKey:Boolean;// = false private var shiftKey:Boolean;// = false private var _stage:Stage; public static const UPDATE:String = "update"; private static var _mouseIsDown:Boolean = false; public function VirtualMouse(_arg1:Stage=null, _arg2:Sprite=null, _arg3:Number=0, _arg4:Number=0){ altKey = false; ctrlKey = false; shiftKey = false; delta = 0; isLocked = false; isDoubleClickEvent = false; disabledEvents = new Object(); ignoredInstances = new Dictionary(true); lastMouseDown = false; updateMouseDown = false; lastWithinStage = true; _useNativeEvents = false; eventEvent = VirtualMouseEvent; mouseEventEvent = VirtualMouseMouseEvent; log = new XrayLog(); super(); this.stage = _arg1; this.container = _arg2; location = new Point(_arg3, _arg4); lastLocation = location.clone(); addEventListener(UPDATE, handleUpdate); update(); } public function get mouseIsDown():Boolean{ return (_mouseIsDown); } public function get stage():Stage{ return (_stage); } public function exitContainer():void{ var _local1:Point; _local1 = target.globalToLocal(location); if (!disabledEvents[MouseEvent.MOUSE_OUT]){ _lastEvent = new mouseEventEvent(MouseEvent.MOUSE_OUT, true, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); container.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; if (!disabledEvents[MouseEvent.ROLL_OUT]){ _lastEvent = new mouseEventEvent(MouseEvent.ROLL_OUT, false, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); container.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; if (target != container){ if (!disabledEvents[MouseEvent.MOUSE_OUT]){ _lastEvent = new mouseEventEvent(MouseEvent.MOUSE_OUT, true, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); target.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; if (!disabledEvents[MouseEvent.ROLL_OUT]){ _lastEvent = new mouseEventEvent(MouseEvent.ROLL_OUT, false, false, _local1.x, _local1.y, container, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); target.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; }; target = _stage; } public function release():void{ updateMouseDown = true; _mouseIsDown = false; if (!isLocked){ update(); }; } public function click():void{ press(); release(); } public function get container():Sprite{ return (_container); } public function set container(_arg1:Sprite):void{ _container = _arg1; } public function get y():Number{ return (location.y); } public function set x(_arg1:Number):void{ location.x = _arg1; if (!isLocked){ update(); }; } public function disableEvent(_arg1:String):void{ disabledEvents[_arg1] = true; } public function get lastEvent():Event{ return (_lastEvent); } private function handleUpdate(_arg1:Event):void{ var _local2:Array; var _local3:InteractiveObject; var _local4:DisplayObject; var _local5:int; var _local6:Point; var _local7:Point; var _local8:Boolean; if (!container){ return; }; _local2 = container.getObjectsUnderPoint(location); _local5 = _local2.length; while (_local5--) { _local4 = _local2[_local5]; while (_local4) { if (ignoredInstances[_local4]){ _local3 = null; break; }; if (((_local3) && ((_local4 is SimpleButton)))){ _local3 = null; } else { if (((_local3) && (!(DisplayObjectContainer(_local4).mouseChildren)))){ _local3 = null; }; }; if (((((!(_local3)) && ((_local4 is InteractiveObject)))) && (InteractiveObject(_local4).mouseEnabled))){ _local3 = InteractiveObject(_local4); }; _local4 = _local4.parent; }; if (_local3){ break; }; }; if (!_local3){ _local3 = _stage; log.debug("no new target found, using stage"); }; _local6 = target.globalToLocal(location); _local7 = _local3.globalToLocal(location); if (((!((lastLocation.x == location.x))) || (!((lastLocation.y == location.y))))){ _local8 = false; if (stage){ _local8 = (((((((location.x >= 0)) && ((location.y >= 0)))) && ((location.x <= stage.stageWidth)))) && ((location.y <= stage.stageHeight))); }; if (((((!(_local8)) && (lastWithinStage))) && (!(disabledEvents[Event.MOUSE_LEAVE])))){ _lastEvent = new eventEvent(Event.MOUSE_LEAVE, false, false); stage.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; if (((_local8) && (!(disabledEvents[MouseEvent.MOUSE_MOVE])))){ _lastEvent = new mouseEventEvent(MouseEvent.MOUSE_MOVE, true, false, _local7.x, _local7.y, _local3, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local3.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; lastWithinStage = _local8; }; if (_local3 != target){ if (!disabledEvents[MouseEvent.MOUSE_OUT]){ _lastEvent = new mouseEventEvent(MouseEvent.MOUSE_OUT, true, false, _local6.x, _local6.y, _local3, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); target.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; if (!disabledEvents[MouseEvent.ROLL_OUT]){ _lastEvent = new mouseEventEvent(MouseEvent.ROLL_OUT, false, false, _local6.x, _local6.y, _local3, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); target.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; if (!disabledEvents[MouseEvent.MOUSE_OVER]){ _lastEvent = new mouseEventEvent(MouseEvent.MOUSE_OVER, true, false, _local7.x, _local7.y, target, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local3.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; if (!disabledEvents[MouseEvent.ROLL_OVER]){ _lastEvent = new mouseEventEvent(MouseEvent.ROLL_OVER, false, false, _local7.x, _local7.y, target, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local3.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; }; if (updateMouseDown){ if (_mouseIsDown){ if (!disabledEvents[MouseEvent.MOUSE_DOWN]){ _lastEvent = new mouseEventEvent(MouseEvent.MOUSE_DOWN, true, false, _local7.x, _local7.y, _local3, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local3.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; lastDownTarget = _local3; updateMouseDown = false; } else { if (!disabledEvents[MouseEvent.MOUSE_UP]){ _lastEvent = new mouseEventEvent(MouseEvent.MOUSE_UP, true, false, _local7.x, _local7.y, _local3, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local3.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; if (((!(disabledEvents[MouseEvent.CLICK])) && ((_local3 == lastDownTarget)))){ _lastEvent = new mouseEventEvent(MouseEvent.CLICK, true, false, _local7.x, _local7.y, _local3, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local3.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; lastDownTarget = null; updateMouseDown = false; }; }; if (((((isDoubleClickEvent) && (!(disabledEvents[MouseEvent.DOUBLE_CLICK])))) && (_local3.doubleClickEnabled))){ _lastEvent = new mouseEventEvent(MouseEvent.DOUBLE_CLICK, true, false, _local7.x, _local7.y, _local3, ctrlKey, altKey, shiftKey, _mouseIsDown, delta); _local3.dispatchEvent(_lastEvent); dispatchEvent(_lastEvent); }; lastLocation = location.clone(); lastMouseDown = _mouseIsDown; target = _local3; } public function getLocation():Point{ return (location.clone()); } public function get x():Number{ return (location.x); } public function lock():void{ isLocked = true; } public function get useNativeEvents():Boolean{ return (_useNativeEvents); } public function setLocation(_arg1, _arg2=null):void{ var _local3:Point; if ((_arg1 is Point)){ _local3 = Point(_arg1); location.x = _local3.x; location.y = _local3.y; } else { location.x = Number(_arg1); location.y = Number(_arg2); }; if (!isLocked){ update(); }; } private function keyHandler(_arg1:KeyboardEvent):void{ altKey = _arg1.altKey; ctrlKey = _arg1.ctrlKey; shiftKey = _arg1.shiftKey; } public function unignore(_arg1:DisplayObject):void{ if ((_arg1 in ignoredInstances)){ delete ignoredInstances[_arg1]; }; } public function doubleClick():void{ if (isLocked){ release(); } else { click(); press(); isDoubleClickEvent = true; release(); isDoubleClickEvent = false; }; } public function update():void{ dispatchEvent(new Event(UPDATE, false, false)); } public function ignore(_arg1:DisplayObject):void{ ignoredInstances[_arg1] = true; } public function unlock():void{ isLocked = false; update(); } public function enableEvent(_arg1:String):void{ if ((_arg1 in disabledEvents)){ delete disabledEvents[_arg1]; }; } public function press():void{ updateMouseDown = true; _mouseIsDown = true; if (!isLocked){ update(); }; } public function set useNativeEvents(_arg1:Boolean):void{ if (_arg1 == _useNativeEvents){ return; }; _useNativeEvents = _arg1; if (_useNativeEvents){ eventEvent = VirtualMouseEvent; mouseEventEvent = VirtualMouseMouseEvent; } else { eventEvent = Event; mouseEventEvent = MouseEvent; }; } public function set y(_arg1:Number):void{ location.y = _arg1; if (!isLocked){ update(); }; } public function set stage(_arg1:Stage):void{ var _local2:Boolean; if (_stage){ _local2 = true; _stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyHandler); _stage.removeEventListener(KeyboardEvent.KEY_UP, keyHandler); } else { _local2 = false; }; _stage = _arg1; if (_stage){ _stage.addEventListener(KeyboardEvent.KEY_DOWN, keyHandler); _stage.addEventListener(KeyboardEvent.KEY_UP, keyHandler); target = _stage; if (!_local2){ update(); }; }; } } }//package org.papervision3d.utils.virtualmouse
Section 94
//VirtualMouseEvent (org.papervision3d.utils.virtualmouse.VirtualMouseEvent) package org.papervision3d.utils.virtualmouse { import flash.events.*; public class VirtualMouseEvent extends Event implements IVirtualMouseEvent { public function VirtualMouseEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } } }//package org.papervision3d.utils.virtualmouse
Section 95
//VirtualMouseMouseEvent (org.papervision3d.utils.virtualmouse.VirtualMouseMouseEvent) package org.papervision3d.utils.virtualmouse { import flash.display.*; import flash.events.*; public class VirtualMouseMouseEvent extends MouseEvent implements IVirtualMouseEvent { public function VirtualMouseMouseEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Number=NaN, _arg5:Number=NaN, _arg6:InteractiveObject=null, _arg7:Boolean=false, _arg8:Boolean=false, _arg9:Boolean=false, _arg10:Boolean=false, _arg11:int=0){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11); } } }//package org.papervision3d.utils.virtualmouse
Section 96
//InteractiveContainerData (org.papervision3d.utils.InteractiveContainerData) package org.papervision3d.utils { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.events.*; public class InteractiveContainerData extends EventDispatcher { public var container:InteractiveSprite; public var displayObject3D:DisplayObject3D;// = null public var lineColor:Number; public var lineAlpha:Number; public var fillAlpha:Number; public var sort:Boolean;// = false public var isDrawn:Boolean;// = false public var color:Number; public var lineSize:Number; public var face3d:Face3D; public function InteractiveContainerData(_arg1, _arg2:Number=0, _arg3:IEventDispatcher=null){ displayObject3D = null; isDrawn = false; sort = false; color = InteractiveSceneManager.DEFAULT_FILL_COLOR; fillAlpha = InteractiveSceneManager.DEFAULT_FILL_ALPHA; lineColor = InteractiveSceneManager.DEFAULT_LINE_COLOR; lineSize = InteractiveSceneManager.DEFAULT_LINE_SIZE; lineAlpha = InteractiveSceneManager.DEFAULT_LINE_ALPHA; super(_arg3); displayObject3D = (((_arg1 is DisplayObject3D) == true)) ? _arg1 : null; face3d = (((_arg1 is Face3D) == true)) ? _arg1 : null; if (displayObject3D != null){ this.container = new InteractiveSprite(_arg1); }; if (face3d != null){ if (face3d.face3DInstance.container != null){ this.container = InteractiveSprite(face3d.face3DInstance.container); } else { this.container = new InteractiveSprite(); }; }; color = _arg2; container.alpha = InteractiveSceneManager.DEFAULT_SPRITE_ALPHA; container.interactiveContainerData = this; } public function get screenZ():Number{ return (((displayObject3D)!=null) ? displayObject3D.screenZ : face3d.screenZ); } } }//package org.papervision3d.utils
Section 97
//InteractiveSceneManager (org.papervision3d.utils.InteractiveSceneManager) package org.papervision3d.utils { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.display.*; import org.papervision3d.core.proto.*; import org.papervision3d.materials.*; import com.blitzagency.xray.logger.*; import flash.events.*; import flash.geom.*; import flash.utils.*; import org.papervision3d.utils.virtualmouse.*; import org.papervision3d.events.*; public class InteractiveSceneManager extends EventDispatcher { public var container:Sprite; public var scene:SceneObject3D; protected var allowDraw:Boolean;// = true protected var log:XrayLog; private var _mouseInteractionMode:Boolean;// = false public var faceDictionary:Dictionary; public var mouse3D:Mouse3D; public var virtualMouse:VirtualMouse; public var faceLevelMode:Boolean;// = false public var debug:Boolean;// = false protected var evaluateClick:Boolean;// = false public var buttonMode:Boolean;// = false public var containerDictionary:Dictionary; public static var DEFAULT_FILL_ALPHA:Number = 1; public static var DEFAULT_SPRITE_ALPHA:Number = 1; public static var DEFAULT_FILL_COLOR:Number = 0xFFFFFF; public static var DEFAULT_LINE_SIZE:Number = 1; public static var DEFAULT_LINE_ALPHA:Number = 1; public static var DEFAULT_LINE_COLOR:Number = -1; public static var MOUSE_IS_DOWN:Boolean = false; public static var SHOW_DRAWN_FACES:Boolean = false; public function InteractiveSceneManager(_arg1:SceneObject3D):void{ buttonMode = false; faceLevelMode = false; _mouseInteractionMode = false; faceDictionary = new Dictionary(); containerDictionary = new Dictionary(); container = new InteractiveSprite(); mouse3D = new Mouse3D(); virtualMouse = new VirtualMouse(); debug = false; allowDraw = true; evaluateClick = false; log = new XrayLog(); super(); container.addEventListener(Event.ADDED_TO_STAGE, handleAddedToStage); scene = _arg1; scene.container.parent.addChild(container); container.x = scene.container.x; container.y = scene.container.y; enableMouse = false; } protected function handleStageMouseMove(_arg1:MouseEvent):void{ allowDraw = true; } public function sortObjects():void{ var _local1:Array; var _local2:InteractiveContainerData; var _local3:uint; var _local4:Number; _local1 = []; for each (_local2 in faceDictionary) { if (!_local2.sort){ } else { _local4 = ((_local2.face3d == null)) ? _local2.screenZ : _local2.face3d.face3DInstance.screenZ; _local1.push({container:_local2.container, distance:_local4}); }; }; _local1.sortOn("distance", (Array.DESCENDING | Array.NUMERIC)); _local3 = 0; while (_local3 < _local1.length) { container.addChild(_local1[_local3].container); _local3++; }; if (mouseInteractionMode){ allowDraw = false; }; } public function setInteractivityDefaults():void{ SHOW_DRAWN_FACES = false; DEFAULT_SPRITE_ALPHA = 1; DEFAULT_FILL_ALPHA = 1; BitmapMaterial.AUTO_MIP_MAPPING = false; DisplayObject3D.faceLevelMode = false; buttonMode = true; faceLevelMode = true; mouseInteractionMode = false; } public function addInteractiveObject(_arg1:Object):void{ var _local2:InteractiveContainerData; var _local3:InteractiveSprite; if (faceDictionary[_arg1] == null){ _local2 = (faceDictionary[_arg1] = new InteractiveContainerData(_arg1)); containerDictionary[_local2.container] = _arg1; _local3 = _local2.container; _local3.addEventListener(MouseEvent.MOUSE_DOWN, handleMousePress); _local3.addEventListener(MouseEvent.MOUSE_UP, handleMouseRelease); _local3.addEventListener(MouseEvent.CLICK, handleMouseClick); _local3.addEventListener(MouseEvent.MOUSE_OVER, handleMouseOver); _local3.addEventListener(MouseEvent.MOUSE_OUT, handleMouseOut); _local3.addEventListener(MouseEvent.MOUSE_MOVE, handleMouseMove); _local3.buttonMode = buttonMode; if (((!(SHOW_DRAWN_FACES)) && (!(DisplayObject3D.faceLevelMode)))){ _local3.blendMode = BlendMode.ERASE; }; virtualMouse.ignore(_local3); dispatchEvent(new InteractiveScene3DEvent(InteractiveScene3DEvent.OBJECT_ADDED, null, _local3)); if (debug){ log.debug("addDisplayObject id", _arg1.id, _arg1.name, DEFAULT_SPRITE_ALPHA); }; }; } public function resetFaces():void{ var _local1:InteractiveContainerData; for each (_local1 in faceDictionary) { _local1.container.graphics.clear(); _local1.sort = _local1.isDrawn; _local1.isDrawn = false; }; resizeStage(); } public function resizeStage():void{ container.x = scene.container.x; container.y = scene.container.y; } protected function handleMouseClick(_arg1:MouseEvent):void{ dispatchObjectEvent(InteractiveScene3DEvent.OBJECT_CLICK, Sprite(_arg1.currentTarget)); } protected function handleMouseOut(_arg1:MouseEvent):void{ var face3d:Face3D; var p:Object; var mat:InteractiveMovieMaterial; var rect:Rectangle; var contains:Boolean; var e = _arg1; if (((VirtualMouse) && (((faceLevelMode) || (DisplayObject3D.faceLevelMode))))){ try { face3d = containerDictionary[e.currentTarget]; p = InteractiveUtils.getMapCoordAtPoint(face3d, container.mouseX, container.mouseY); mat = InteractiveMovieMaterial(face3d.face3DInstance.instance.material); rect = new Rectangle(0, 0, mat.movie.width, mat.movie.height); contains = rect.contains(p.x, p.y); if (!contains){ virtualMouse.exitContainer(); }; } catch(err:Error) { log.error("material type is not Interactive. If you're using a Collada object, you may have to reassign the material to the object after the collada scene is loaded", err.message); }; }; dispatchObjectEvent(InteractiveScene3DEvent.OBJECT_OUT, Sprite(e.currentTarget)); } public function drawFace(_arg1:DisplayObject3D, _arg2:Face3D, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):void{ var _local9:Object; var _local10:InteractiveContainerData; var _local11:InteractiveSprite; var _local12:Graphics; _local9 = _arg1; if (((faceLevelMode) || (DisplayObject3D.faceLevelMode))){ _local9 = _arg2; }; if (faceDictionary[_local9] == null){ addInteractiveObject(_local9); }; if (((allowDraw) && (!(DisplayObject3D.faceLevelMode)))){ _local10 = faceDictionary[_local9]; _local11 = _local10.container; _local12 = _local11.graphics; _local11.x0 = _arg3; _local11.x1 = _arg4; _local11.x2 = _arg5; _local11.y0 = _arg6; _local11.y1 = _arg7; _local11.y2 = _arg8; _local12.beginFill(_local10.color, _local10.fillAlpha); if (((!((_local10.lineColor == -1))) && (SHOW_DRAWN_FACES))){ _local12.lineStyle(_local10.lineSize, _local10.lineColor, _local10.lineAlpha); }; _local12.moveTo(_arg3, _arg6); _local12.lineTo(_arg4, _arg7); _local12.lineTo(_arg5, _arg8); _local12.endFill(); _local10.isDrawn = true; }; } public function set enableMouse(_arg1:Boolean):void{ Mouse3D.enabled = _arg1; } protected function dispatchObjectEvent(_arg1:String, _arg2:Sprite):void{ var _local3:Face3D; var _local4:InteractiveContainerData; if (debug){ log.debug(_arg1, DisplayObject3D(containerDictionary[_arg2]).name); }; if ((containerDictionary[_arg2] is DisplayObject3D)){ containerDictionary[_arg2].dispatchEvent(new InteractiveScene3DEvent(_arg1, containerDictionary[_arg2], InteractiveSprite(_arg2))); dispatchEvent(new InteractiveScene3DEvent(_arg1, containerDictionary[_arg2], InteractiveSprite(_arg2), null, null)); } else { if ((containerDictionary[_arg2] is Face3D)){ _local3 = containerDictionary[_arg2]; _local4 = faceDictionary[_local3]; dispatchEvent(new InteractiveScene3DEvent(_arg1, null, InteractiveSprite(_arg2), _local3, _local4)); }; }; } protected function handleMouseMove(_arg1:MouseEvent):void{ var point:Object; var face3d:Face3D; var mat:MovieMaterial; var e = _arg1; if (((VirtualMouse) && (((faceLevelMode) || (DisplayObject3D.faceLevelMode))))){ face3d = containerDictionary[e.currentTarget]; point = InteractiveUtils.getMapCoordAtPoint(face3d, container.mouseX, container.mouseY); try { mat = (face3d.face3DInstance.instance.material as MovieMaterial); virtualMouse.container = (mat.movie as Sprite); if (virtualMouse.container){ virtualMouse.setLocation(point.x, point.y); }; } catch(err:Error) { log.error("material type is not Inter active. If you're using a Collada object, you may have to reassign the material to the object after the collada scene is loaded", err.message); }; }; dispatchObjectEvent(InteractiveScene3DEvent.OBJECT_MOVE, Sprite(e.currentTarget)); if (((Mouse3D.enabled) && (((faceLevelMode) || (DisplayObject3D.faceLevelMode))))){ mouse3D.updatePosition(Face3D(containerDictionary[e.currentTarget]), (e.currentTarget as Sprite)); }; } protected function handleMouseOver(_arg1:MouseEvent):void{ var _local2:String; _local2 = (((!(evaluateClick)) || (!(mouseInteractionMode)))) ? InteractiveScene3DEvent.OBJECT_OVER : InteractiveScene3DEvent.OBJECT_CLICK; evaluateClick = false; if (((virtualMouse) && ((_local2 == InteractiveScene3DEvent.OBJECT_CLICK)))){ virtualMouse.click(); }; dispatchObjectEvent(_local2, Sprite(_arg1.currentTarget)); } public function set mouseInteractionMode(_arg1:Boolean):void{ _mouseInteractionMode = _arg1; allowDraw = !(_arg1); if (_arg1){ container.stage.addEventListener(MouseEvent.MOUSE_MOVE, handleStageMouseMove); }; if (!_arg1){ container.stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleStageMouseMove); }; } public function get enableMouse():Boolean{ return (Mouse3D.enabled); } protected function handleMousePress(_arg1:MouseEvent):void{ MOUSE_IS_DOWN = true; if (virtualMouse){ virtualMouse.press(); }; dispatchObjectEvent(InteractiveScene3DEvent.OBJECT_PRESS, Sprite(_arg1.currentTarget)); } protected function handleReleaseOutside(_arg1:MouseEvent):void{ if (debug){ log.debug("releaseOutside"); }; dispatchEvent(new InteractiveScene3DEvent(InteractiveScene3DEvent.OBJECT_RELEASE_OUTSIDE)); MOUSE_IS_DOWN = false; evaluateClick = true; allowDraw = true; } public function get mouseInteractionMode():Boolean{ return (_mouseInteractionMode); } protected function handleAddedToStage(_arg1:Event):void{ container.stage.addEventListener(Event.RESIZE, handleResize); container.stage.addEventListener(MouseEvent.MOUSE_UP, handleReleaseOutside); virtualMouse.stage = container.stage; } protected function handleMouseRelease(_arg1:MouseEvent):void{ MOUSE_IS_DOWN = false; if (virtualMouse){ virtualMouse.release(); }; dispatchObjectEvent(InteractiveScene3DEvent.OBJECT_RELEASE, Sprite(_arg1.currentTarget)); } protected function handleResize(_arg1:Event):void{ resizeStage(); } } }//package org.papervision3d.utils
Section 98
//InteractiveSprite (org.papervision3d.utils.InteractiveSprite) package org.papervision3d.utils { import org.papervision3d.objects.*; import flash.display.*; public class InteractiveSprite extends Sprite { public var interactiveContainerData:InteractiveContainerData;// = null public var x1:Number; public var x2:Number; public var x0:Number; public var y0:Number; public var y2:Number; public var obj:DisplayObject3D;// = null public var y1:Number; public function InteractiveSprite(_arg1:DisplayObject3D=null):void{ obj = null; interactiveContainerData = null; super(); this.obj = _arg1; } } }//package org.papervision3d.utils
Section 99
//InteractiveUtils (org.papervision3d.utils.InteractiveUtils) package org.papervision3d.utils { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.display.*; import org.papervision3d.core.proto.*; import org.papervision3d.materials.*; public class InteractiveUtils { public static function getMapCoordAtPointDO3D(_arg1:DisplayObject3D, _arg2:Number, _arg3:Number):Object{ var _local4:Face3D; _local4 = _arg1.geometry.faces[0]; return (getMapCoordAtPoint(_local4, _arg2, _arg3)); } public static function UVatPoint(_arg1:Face3D, _arg2:Number, _arg3:Number):Object{ var _local4:Vertex3D; var _local5:Vertex3D; var _local6:Vertex3D; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:Number; _local4 = _arg1.v0; _local5 = _arg1.v1; _local6 = _arg1.v2; _local7 = _local4.vertex2DInstance.x; _local8 = _local4.vertex2DInstance.y; _local9 = _local5.vertex2DInstance.x; _local10 = _local5.vertex2DInstance.y; _local11 = _local6.vertex2DInstance.x; _local12 = _local6.vertex2DInstance.y; _local13 = (_local11 - _local7); _local14 = (_local12 - _local8); _local15 = (_local9 - _local7); _local16 = (_local10 - _local8); _local17 = (_arg2 - _local7); _local18 = (_arg3 - _local8); _local19 = ((_local13 * _local13) + (_local14 * _local14)); _local20 = ((_local13 * _local15) + (_local14 * _local16)); _local21 = ((_local13 * _local17) + (_local14 * _local18)); _local22 = ((_local15 * _local15) + (_local16 * _local16)); _local23 = ((_local15 * _local17) + (_local16 * _local18)); _local24 = (1 / ((_local19 * _local22) - (_local20 * _local20))); _local25 = (((_local22 * _local21) - (_local20 * _local23)) * _local24); _local26 = (((_local19 * _local23) - (_local20 * _local21)) * _local24); return ({u:_local25, v:_local26}); } public static function getMapCoordAtPoint(_arg1:Face3D, _arg2:Number, _arg3:Number):Object{ var _local4:Array; var _local5:Object; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:MaterialObject3D; var _local17:BitmapData; var _local18:Number; var _local19:Number; _local4 = _arg1.uv; _local5 = UVatPoint(_arg1, _arg2, _arg3); _local6 = _local5.u; _local7 = _local5.v; _local8 = _local4[0].u; _local9 = _local4[1].u; _local10 = _local4[2].u; _local11 = _local4[0].v; _local12 = _local4[1].v; _local13 = _local4[2].v; _local14 = ((((_local9 - _local8) * _local7) + ((_local10 - _local8) * _local6)) + _local8); _local15 = ((((_local12 - _local11) * _local7) + ((_local13 - _local11) * _local6)) + _local11); _local16 = _arg1.face3DInstance.instance.material; _local17 = _local16.bitmap; _local18 = 1; _local19 = 1; if (_local17){ _local18 = (BitmapMaterial.AUTO_MIP_MAPPING) ? _local16.widthOffset : _local17.width; _local19 = (BitmapMaterial.AUTO_MIP_MAPPING) ? _local16.heightOffset : _local17.height; }; return ({x:(_local14 * _local18), y:(_local19 - (_local15 * _local19))}); } public static function getCoordAtPoint(_arg1:Face3D, _arg2:Number, _arg3:Number):Vertex3D{ var _local4:Object; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; _local4 = UVatPoint(_arg1, _arg2, _arg3); _local5 = _arg1.v0.x; _local6 = _arg1.v0.y; _local7 = _arg1.v0.z; _local8 = _arg1.v1.x; _local9 = _arg1.v1.y; _local10 = _arg1.v1.z; _local11 = _arg1.v2.x; _local12 = _arg1.v2.y; _local13 = _arg1.v2.z; _local14 = _local4.u; _local15 = _local4.v; _local16 = ((_local5 + ((_local8 - _local5) * _local15)) + ((_local11 - _local5) * _local14)); _local17 = ((_local6 + ((_local9 - _local6) * _local15)) + ((_local12 - _local6) * _local14)); _local18 = ((_local7 + ((_local10 - _local7) * _local15)) + ((_local13 - _local7) * _local14)); return (new Vertex3D(_local16, _local17, _local18)); } } }//package org.papervision3d.utils
Section 100
//Mouse3D (org.papervision3d.utils.Mouse3D) package org.papervision3d.utils { import org.papervision3d.objects.*; import org.papervision3d.core.geom.*; import flash.display.*; import org.papervision3d.core.*; public class Mouse3D extends DisplayObject3D { public static var enabled:Boolean = true; private static var UP:Number3D = new Number3D(0, 1, 0); public function Mouse3D(_arg1:Object=null):void{ } public function updatePosition(_arg1:Face3D, _arg2:Sprite):void{ var _local3:Number3D; var _local4:Number3D; var _local5:Number3D; var _local6:Matrix3D; var _local7:Matrix3D; var _local8:Number; var _local9:Number; var _local10:Number3D; var _local11:Number3D; var _local12:Matrix3D; _local3 = new Number3D(0, 0, 0); _local4 = new Number3D(_arg1.faceNormal.x, _arg1.faceNormal.y, _arg1.faceNormal.z); _local5 = Number3D.sub(_local4, _local3); _local5.normalize(); if (_local5.modulo > 0.1){ _local10 = Number3D.cross(_local5, UP); _local10.normalize(); _local11 = Number3D.cross(_local5, _local10); _local11.normalize(); _local12 = this.transform; _local12.n11 = _local10.x; _local12.n21 = _local10.y; _local12.n31 = _local10.z; _local12.n12 = -(_local11.x); _local12.n22 = -(_local11.y); _local12.n32 = -(_local11.z); _local12.n13 = _local5.x; _local12.n23 = _local5.y; _local12.n33 = _local5.z; }; _local6 = Matrix3D.IDENTITY; this.transform = Matrix3D.multiply(_arg1.face3DInstance.instance.world, _local12); _local7 = Matrix3D.IDENTITY; _local8 = _arg2.mouseX; _local9 = _arg2.mouseY; _local7.n14 = InteractiveUtils.getCoordAtPoint(_arg1, _local8, _local9).x; _local7.n24 = InteractiveUtils.getCoordAtPoint(_arg1, _local8, _local9).y; _local7.n34 = InteractiveUtils.getCoordAtPoint(_arg1, _local8, _local9).z; _local6.calculateMultiply(_arg1.face3DInstance.instance.world, _local7); x = _local6.n14; y = _local6.n24; z = _local6.n34; } } }//package org.papervision3d.utils
Section 101
//Papervision3D (org.papervision3d.Papervision3D) package org.papervision3d { public class Papervision3D { public static var useDEGREES:Boolean = true; public static var VERBOSE:Boolean = true; public static var AUTHOR:String = "(c) 2006-2007 Copyright by Carlos Ulloa | papervision3d.org | carlos@papervision3d.org"; public static var DATE:String = "20.08.07"; public static var NAME:String = "Papervision3D"; public static var VERSION:String = "Beta 1.7"; public static var usePERCENT:Boolean = false; public static function log(_arg1:String):void{ if (Papervision3D.VERBOSE){ trace(_arg1); }; } } }//package org.papervision3d
Section 102
//bubbles (bubbles) package { import flash.media.*; public dynamic class bubbles extends Sound { } }//package
Section 103
//buttonclick (buttonclick) package { import flash.media.*; public dynamic class buttonclick extends Sound { } }//package
Section 104
//buttonpoint (buttonpoint) package { import flash.media.*; public dynamic class buttonpoint extends Sound { } }//package
Section 105
//d3d (d3d) package { import flash.display.*; public dynamic class d3d extends MovieClip { public var anim:MovieClip; } }//package
Section 106
//drainage (drainage) package { import flash.media.*; public dynamic class drainage extends Sound { } }//package
Section 107
//explop (explop) package { import flash.media.*; public dynamic class explop extends Sound { } }//package
Section 108
//fullflow (fullflow) package { import flash.media.*; public dynamic class fullflow extends Sound { } }//package
Section 109
//item_3d (item_3d) package { import flash.display.*; public dynamic class item_3d extends MovieClip { public var anim:MovieClip; } }//package
Section 110
//lethallands (lethallands) package { import flash.media.*; public dynamic class lethallands extends Sound { } }//package
Section 111
//lobang (lobang) package { import flash.display.*; public dynamic class lobang extends MovieClip { } }//package
Section 112
//loser (loser) package { import flash.media.*; public dynamic class loser extends Sound { } }//package
Section 113
//maplevel1 (maplevel1) package { import flash.display.*; public dynamic class maplevel1 extends MovieClip { } }//package
Section 114
//maplevel10 (maplevel10) package { import flash.display.*; public dynamic class maplevel10 extends MovieClip { } }//package
Section 115
//maplevel2 (maplevel2) package { import flash.display.*; public dynamic class maplevel2 extends MovieClip { public function maplevel2(){ addFrameScript(0, frame1); } function frame1(){ } } }//package
Section 116
//maplevel3 (maplevel3) package { import flash.display.*; public dynamic class maplevel3 extends MovieClip { } }//package
Section 117
//maplevel4 (maplevel4) package { import flash.display.*; public dynamic class maplevel4 extends MovieClip { } }//package
Section 118
//maplevel5 (maplevel5) package { import flash.display.*; public dynamic class maplevel5 extends MovieClip { } }//package
Section 119
//maplevel6 (maplevel6) package { import flash.display.*; public dynamic class maplevel6 extends MovieClip { } }//package
Section 120
//maplevel7 (maplevel7) package { import flash.display.*; public dynamic class maplevel7 extends MovieClip { } }//package
Section 121
//maplevel8 (maplevel8) package { import flash.display.*; public dynamic class maplevel8 extends MovieClip { } }//package
Section 122
//maplevel9 (maplevel9) package { import flash.display.*; public dynamic class maplevel9 extends MovieClip { } }//package
Section 123
//marking (marking) package { import flash.media.*; public dynamic class marking extends Sound { } }//package
Section 124
//my_d3d (my_d3d) package { import flash.display.*; public dynamic class my_d3d extends MovieClip { public var anim:MovieClip; } }//package
Section 125
//poot (poot) package { import flash.media.*; public dynamic class poot extends Sound { } }//package
Section 126
//slowdown (slowdown) package { import flash.media.*; public dynamic class slowdown extends Sound { } }//package
Section 127
//soot (soot) package { import flash.media.*; public dynamic class soot extends Sound { } }//package
Section 128
//swat (swat) package { import flash.media.*; public dynamic class swat extends Sound { } }//package
Section 129
//victory (victory) package { import flash.media.*; public dynamic class victory extends Sound { } }//package
Section 130
//winning (winning) package { import flash.media.*; public dynamic class winning extends Sound { } }//package
Section 131
//Wolfenstine (Wolfenstine) package { import flash.media.*; public dynamic class Wolfenstine extends Sound { } }//package

Library Items

Symbol 1 GraphicUsed by:Timeline
Symbol 2 FontUsed by:3 422
Symbol 3 EditableTextUses:2Used by:Timeline
Symbol 4 FontUsed by:5 6
Symbol 5 EditableTextUses:4Used by:Timeline
Symbol 6 EditableTextUses:4Used by:Timeline
Symbol 7 GraphicUsed by:42
Symbol 8 GraphicUsed by:13
Symbol 9 GraphicUsed by:13
Symbol 10 GraphicUsed by:13
Symbol 11 GraphicUsed by:13
Symbol 12 GraphicUsed by:13
Symbol 13 ButtonUses:8 9 10 11 12Used by:42
Symbol 14 GraphicUsed by:17
Symbol 15 FontUsed by:16 21 22 29 39 40 41 310 321 351 367
Symbol 16 EditableTextUses:15Used by:17
Symbol 17 MovieClip {kondensensation_fla.preloaderbar_3}Uses:14 16Used by:42
Symbol 18 GraphicUsed by:42
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:19Used by:42
Symbol 21 EditableTextUses:15Used by:42
Symbol 22 EditableTextUses:15Used by:42
Symbol 23 FontUsed by:24 25 237 274 278 279 346 347 355 364 372 376 380 384 388 392
Symbol 24 EditableTextUses:23Used by:42
Symbol 25 EditableTextUses:23Used by:42
Symbol 26 GraphicUsed by:42
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:27Used by:42
Symbol 29 EditableTextUses:15Used by:42
Symbol 30 GraphicUsed by:38
Symbol 31 ShapeTweeningUsed by:33
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClip {kondensensation_fla.tamugaia_intro_button_fados_7}Uses:31 32Used by:38
Symbol 34 FontUsed by:35 232 234 250 252 254 259 260 261 262 263 264 265 266 267
Symbol 35 TextUses:34Used by:38
Symbol 36 GraphicUsed by:38
Symbol 37 GraphicUsed by:38
Symbol 38 ButtonUses:30 33 35 36 37Used by:42
Symbol 39 EditableTextUses:15Used by:42
Symbol 40 EditableTextUses:15Used by:42
Symbol 41 EditableTextUses:15Used by:42
Symbol 42 MovieClip {kondensensation_fla.preloader_1}Uses:7 13 17 18 20 21 22 24 25 26 28 29 38 39 40 41Used by:Timeline
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:47
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:47
Symbol 47 ButtonUses:44 46Used by:48
Symbol 48 MovieClip {kondensensation_fla.armorgames_buttonmc_8}Uses:47Used by:Timeline
Symbol 49 GraphicUsed by:Timeline
Symbol 50 GraphicUsed by:88
Symbol 51 GraphicUsed by:88
Symbol 52 GraphicUsed by:88
Symbol 53 GraphicUsed by:88
Symbol 54 GraphicUsed by:88
Symbol 55 GraphicUsed by:88
Symbol 56 GraphicUsed by:88
Symbol 57 GraphicUsed by:88
Symbol 58 GraphicUsed by:88
Symbol 59 GraphicUsed by:88
Symbol 60 GraphicUsed by:88
Symbol 61 GraphicUsed by:88
Symbol 62 GraphicUsed by:88
Symbol 63 GraphicUsed by:88
Symbol 64 GraphicUsed by:88
Symbol 65 GraphicUsed by:88
Symbol 66 GraphicUsed by:88
Symbol 67 GraphicUsed by:88
Symbol 68 GraphicUsed by:88
Symbol 69 GraphicUsed by:88
Symbol 70 GraphicUsed by:88
Symbol 71 GraphicUsed by:88
Symbol 72 GraphicUsed by:88
Symbol 73 GraphicUsed by:88
Symbol 74 GraphicUsed by:88
Symbol 75 GraphicUsed by:88
Symbol 76 GraphicUsed by:88
Symbol 77 GraphicUsed by:88
Symbol 78 GraphicUsed by:88
Symbol 79 GraphicUsed by:88
Symbol 80 GraphicUsed by:88
Symbol 81 GraphicUsed by:88
Symbol 82 GraphicUsed by:88
Symbol 83 GraphicUsed by:88
Symbol 84 GraphicUsed by:88
Symbol 85 GraphicUsed by:88
Symbol 86 GraphicUsed by:88
Symbol 87 GraphicUsed by:88
Symbol 88 MovieClip {kondensensation_fla.armorgames_3d_2008_10}Uses:50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 SS1Used by:Timeline
Symbol 89 ShapeTweeningUsed by:93
Symbol 90 GraphicUsed by:93
Symbol 91 ShapeTweeningUsed by:93
Symbol 92 GraphicUsed by:93
Symbol 93 MovieClip {kondensensation_fla.intro_tamugaia_11}Uses:89 90 91 92Used by:Timeline
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClipUses:94Used by:96  Timeline
Symbol 96 MovieClip {d3d}Uses:95Used by:Timeline
Symbol 97 GraphicUsed by:100
Symbol 98 GraphicUsed by:100
Symbol 99 GraphicUsed by:100
Symbol 100 MovieClipUses:97 98 99Used by:101
Symbol 101 MovieClip {my_d3d}Uses:100Used by:Timeline
Symbol 102 GraphicUsed by:103
Symbol 103 MovieClip {lobang}Uses:102Used by:Timeline
Symbol 104 BitmapUsed by:105
Symbol 105 GraphicUses:104Used by:106
Symbol 106 MovieClip {maplevel1}Uses:105Used by:Timeline
Symbol 107 GraphicUsed by:159
Symbol 108 GraphicUsed by:159
Symbol 109 GraphicUsed by:159
Symbol 110 GraphicUsed by:159
Symbol 111 GraphicUsed by:159
Symbol 112 GraphicUsed by:113
Symbol 113 MovieClipUses:112Used by:159
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClipUses:114Used by:159
Symbol 116 GraphicUsed by:159
Symbol 117 GraphicUsed by:159
Symbol 118 GraphicUsed by:159
Symbol 119 GraphicUsed by:159
Symbol 120 GraphicUsed by:159
Symbol 121 GraphicUsed by:122
Symbol 122 MovieClipUses:121Used by:159  Timeline
Symbol 123 GraphicUsed by:159
Symbol 124 GraphicUsed by:159
Symbol 125 GraphicUsed by:159
Symbol 126 GraphicUsed by:159
Symbol 127 GraphicUsed by:159
Symbol 128 GraphicUsed by:159
Symbol 129 GraphicUsed by:159
Symbol 130 GraphicUsed by:159
Symbol 131 GraphicUsed by:159
Symbol 132 GraphicUsed by:159
Symbol 133 GraphicUsed by:159
Symbol 134 GraphicUsed by:149
Symbol 135 GraphicUsed by:149
Symbol 136 GraphicUsed by:149
Symbol 137 GraphicUsed by:149
Symbol 138 GraphicUsed by:149
Symbol 139 GraphicUsed by:149
Symbol 140 GraphicUsed by:149
Symbol 141 GraphicUsed by:149
Symbol 142 GraphicUsed by:149
Symbol 143 GraphicUsed by:149
Symbol 144 GraphicUsed by:149
Symbol 145 GraphicUsed by:149
Symbol 146 GraphicUsed by:149
Symbol 147 GraphicUsed by:149
Symbol 148 GraphicUsed by:149
Symbol 149 MovieClip {kondensensation_fla.explodelah_23}Uses:134 135 136 137 138 139 140 141 142 143 144 145 146 147 148Used by:159
Symbol 150 GraphicUsed by:159
Symbol 151 GraphicUsed by:159
Symbol 152 FontUsed by:153 154
Symbol 153 TextUses:152Used by:159
Symbol 154 TextUses:152Used by:159
Symbol 155 GraphicUsed by:159
Symbol 156 GraphicUsed by:159
Symbol 157 GraphicUsed by:159
Symbol 158 GraphicUsed by:159
Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19}Uses:107 108 109 110 111 113 115 116 117 118 119 120 122 123 124 125 126 127 128 129 130 131 132 133 149 150 151 153 154 155 156 157 158Used by:160
Symbol 160 MovieClip {item_3d}Uses:159Used by:Timeline
Symbol 161 GraphicUsed by:164
Symbol 162 FontUsed by:163 202
Symbol 163 TextUses:162Used by:164 350
Symbol 164 MovieClip {maplevel2}Uses:161 163Used by:Timeline
Symbol 165 GraphicUsed by:166
Symbol 166 MovieClip {maplevel3}Uses:165Used by:Timeline
Symbol 167 BitmapUsed by:168
Symbol 168 GraphicUses:167Used by:169
Symbol 169 MovieClipUses:168Used by:170
Symbol 170 MovieClip {maplevel4}Uses:169Used by:Timeline
Symbol 171 GraphicUsed by:172
Symbol 172 MovieClip {maplevel5}Uses:171Used by:Timeline
Symbol 173 BitmapUsed by:174
Symbol 174 GraphicUses:173Used by:175
Symbol 175 MovieClip {maplevel8}Uses:174Used by:Timeline
Symbol 176 GraphicUsed by:177
Symbol 177 MovieClip {maplevel6}Uses:176Used by:Timeline
Symbol 178 GraphicUsed by:179
Symbol 179 MovieClip {maplevel7}Uses:178Used by:Timeline
Symbol 180 GraphicUsed by:181
Symbol 181 MovieClip {maplevel9}Uses:180Used by:Timeline
Symbol 182 GraphicUsed by:183
Symbol 183 MovieClip {maplevel10}Uses:182Used by:Timeline
Symbol 184 Sound {buttonclick}Used by:215  Timeline
Symbol 185 Sound {buttonpoint}Used by:Timeline
Symbol 186 Sound {explop}Used by:Timeline
Symbol 187 Sound {poot}Used by:Timeline
Symbol 188 Sound {slowdown}Used by:Timeline
Symbol 189 Sound {soot}Used by:Timeline
Symbol 190 Sound {drainage}Used by:Timeline
Symbol 191 Sound {winning}Used by:Timeline
Symbol 192 Sound {victory}Used by:Timeline
Symbol 193 Sound {loser}Used by:Timeline
Symbol 194 Sound {bubbles}Used by:Timeline
Symbol 195 Sound {lethallands}Used by:Timeline
Symbol 196 Sound {marking}Used by:Timeline
Symbol 197 Sound {fullflow}Used by:Timeline
Symbol 198 Sound {Wolfenstine}Used by:Timeline
Symbol 199 Sound {swat}Used by:Timeline
Symbol 200 GraphicUsed by:201
Symbol 201 MovieClipUses:200Used by:Timeline
Symbol 202 TextUses:162Used by:Timeline
Symbol 203 GraphicUsed by:209
Symbol 204 GraphicUsed by:209
Symbol 205 GraphicUsed by:209
Symbol 206 GraphicUsed by:209
Symbol 207 GraphicUsed by:209
Symbol 208 GraphicUsed by:209
Symbol 209 MovieClip {kondensensation_fla.kondense_35}Uses:203 204 205 206 207 208Used by:Timeline
Symbol 210 GraphicUsed by:213 215
Symbol 211 GraphicUsed by:213 215
Symbol 212 GraphicUsed by:213
Symbol 213 MovieClipUses:210 211 212Used by:215
Symbol 214 GraphicUsed by:215
Symbol 215 ButtonUses:213 214 210 211 184Used by:Timeline
Symbol 216 GraphicUsed by:222
Symbol 217 GraphicUsed by:222 227
Symbol 218 GraphicUsed by:222 227
Symbol 219 GraphicUsed by:222
Symbol 220 GraphicUsed by:222
Symbol 221 GraphicUsed by:222
Symbol 222 MovieClip {kondensensation_fla.tamugaia_buttonthing_40}Uses:216 217 218 219 220 221Used by:230
Symbol 223 GraphicUsed by:227
Symbol 224 GraphicUsed by:227
Symbol 225 GraphicUsed by:227
Symbol 226 GraphicUsed by:227
Symbol 227 MovieClip {kondensensation_fla.tamugaia_buttonthing2_41}Uses:223 224 225 217 226 218Used by:230
Symbol 228 GraphicUsed by:230
Symbol 229 GraphicUsed by:230
Symbol 230 ButtonUses:222 227 228 229Used by:231
Symbol 231 MovieClip {kondensensation_fla.tamugaia_button_mc_38}Uses:230Used by:Timeline
Symbol 232 EditableTextUses:34Used by:236
Symbol 233 GraphicUsed by:236
Symbol 234 EditableTextUses:34Used by:236
Symbol 235 GraphicUsed by:236
Symbol 236 ButtonUses:232 233 234 235Used by:Timeline
Symbol 237 EditableTextUses:23Used by:Timeline
Symbol 238 ShapeTweeningUsed by:240
Symbol 239 GraphicUsed by:240
Symbol 240 MovieClip {kondensensation_fla.fadein_43}Uses:238 239Used by:294 344  Timeline
Symbol 241 GraphicUsed by:245
Symbol 242 GraphicUsed by:245
Symbol 243 GraphicUsed by:245
Symbol 244 GraphicUsed by:245
Symbol 245 MovieClip {kondensensation_fla.cloud_44}Uses:241 242 243 244Used by:Timeline
Symbol 246 GraphicUsed by:Timeline
Symbol 247 FontUsed by:248 249 251 253 255 269
Symbol 248 TextUses:247Used by:Timeline
Symbol 249 TextUses:247Used by:Timeline
Symbol 250 EditableTextUses:34Used by:Timeline
Symbol 251 TextUses:247Used by:Timeline
Symbol 252 EditableTextUses:34Used by:Timeline
Symbol 253 TextUses:247Used by:Timeline
Symbol 254 EditableTextUses:34Used by:Timeline
Symbol 255 TextUses:247Used by:Timeline
Symbol 256 GraphicUsed by:Timeline
Symbol 257 GraphicUsed by:Timeline
Symbol 258 GraphicUsed by:Timeline
Symbol 259 EditableTextUses:34Used by:Timeline
Symbol 260 EditableTextUses:34Used by:Timeline
Symbol 261 EditableTextUses:34Used by:Timeline
Symbol 262 EditableTextUses:34Used by:Timeline
Symbol 263 EditableTextUses:34Used by:Timeline
Symbol 264 EditableTextUses:34Used by:Timeline
Symbol 265 EditableTextUses:34Used by:Timeline
Symbol 266 EditableTextUses:34Used by:Timeline
Symbol 267 EditableTextUses:34Used by:Timeline
Symbol 268 GraphicUsed by:273 402
Symbol 269 TextUses:247Used by:273
Symbol 270 GraphicUsed by:273 402
Symbol 271 GraphicUsed by:273 402
Symbol 272 GraphicUsed by:273 402
Symbol 273 ButtonUses:268 269 270 271 272Used by:344  Timeline
Symbol 274 EditableTextUses:23Used by:Timeline
Symbol 275 GraphicUsed by:Timeline
Symbol 276 GraphicUsed by:277
Symbol 277 MovieClipUses:276Used by:Timeline
Symbol 278 TextUses:23Used by:Timeline
Symbol 279 EditableTextUses:23Used by:Timeline
Symbol 280 BitmapUsed by:281
Symbol 281 GraphicUses:280Used by:301
Symbol 282 GraphicUsed by:285
Symbol 283 GraphicUsed by:284
Symbol 284 MovieClipUses:283Used by:285
Symbol 285 MovieClipUses:282 284Used by:294
Symbol 286 GraphicUsed by:287
Symbol 287 MovieClipUses:286Used by:288
Symbol 288 MovieClipUses:287Used by:294
Symbol 289 GraphicUsed by:292
Symbol 290 GraphicUsed by:291
Symbol 291 MovieClipUses:290Used by:292
Symbol 292 MovieClipUses:289 291Used by:294
Symbol 293 GraphicUsed by:294
Symbol 294 MovieClip {kondensensation_fla.bgl1_48}Uses:240 285 288 292 293Used by:301
Symbol 295 BitmapUsed by:296
Symbol 296 GraphicUses:295Used by:301
Symbol 297 BitmapUsed by:298
Symbol 298 GraphicUses:297Used by:301
Symbol 299 BitmapUsed by:300
Symbol 300 GraphicUses:299Used by:301
Symbol 301 MovieClip {kondensensation_fla.gamebg_47}Uses:281 294 296 298 300Used by:Timeline
Symbol 302 GraphicUsed by:303
Symbol 303 MovieClip {kondensensation_fla.plane_55}Uses:302Used by:Timeline
Symbol 304 GraphicUsed by:305
Symbol 305 MovieClip {kondensensation_fla.2dhole_56}Uses:304Used by:Timeline
Symbol 306 GraphicUsed by:307
Symbol 307 MovieClip {kondensensation_fla.2d_droplet_57}Uses:306Used by:Timeline
Symbol 308 GraphicUsed by:309 311 352 368
Symbol 309 MovieClip {kondensensation_fla.item_bomb_58}Uses:308Used by:Timeline
Symbol 310 TextUses:15Used by:311
Symbol 311 MovieClip {kondensensation_fla.item_points_59}Uses:308 310Used by:Timeline
Symbol 312 GraphicUsed by:313
Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}Uses:312Used by:Timeline
Symbol 314 GraphicUsed by:315
Symbol 315 MovieClipUses:314Used by:Timeline
Symbol 316 GraphicUsed by:344
Symbol 317 FontUsed by:318
Symbol 318 EditableTextUses:317Used by:344
Symbol 319 FontUsed by:320 337
Symbol 320 TextUses:319Used by:344
Symbol 321 EditableTextUses:15Used by:344
Symbol 322 FontUsed by:323 324 326 327 329 330 332 333
Symbol 323 TextUses:322Used by:325
Symbol 324 TextUses:322Used by:325
Symbol 325 MovieClip {kondensensation_fla.indi_reversal_63}Uses:323 324Used by:344
Symbol 326 TextUses:322Used by:328
Symbol 327 TextUses:322Used by:328
Symbol 328 MovieClip {kondensensation_fla.indi_slow_64}Uses:326 327Used by:344
Symbol 329 TextUses:322Used by:331
Symbol 330 TextUses:322Used by:331
Symbol 331 MovieClip {kondensensation_fla.indi_freeze_65}Uses:329 330Used by:344
Symbol 332 TextUses:322Used by:334
Symbol 333 TextUses:322Used by:334
Symbol 334 MovieClip {kondensensation_fla.indi_speedup_66}Uses:332 333Used by:344
Symbol 335 GraphicUsed by:336
Symbol 336 MovieClipUses:335Used by:344
Symbol 337 TextUses:319Used by:344
Symbol 338 GraphicUsed by:339
Symbol 339 MovieClipUses:338Used by:343
Symbol 340 GraphicUsed by:343
Symbol 341 FontUsed by:342
Symbol 342 EditableTextUses:341Used by:343
Symbol 343 MovieClip {kondensensation_fla.FPS_68}Uses:339 340 342Used by:344
Symbol 344 MovieClip {kondensensation_fla.indi_62}Uses:316 318 320 321 273 325 328 331 334 336 337 343 240Used by:Timeline
Symbol 345 GraphicUsed by:Timeline
Symbol 346 EditableTextUses:23Used by:Timeline
Symbol 347 TextUses:23Used by:Timeline
Symbol 348 GraphicUsed by:Timeline
Symbol 349 GraphicUsed by:350
Symbol 350 MovieClip {kondensensation_fla.planearmor_70}Uses:349 163Used by:Timeline
Symbol 351 TextUses:15Used by:352
Symbol 352 MovieClip {kondensensation_fla.item_cutsize_71}Uses:308 351Used by:Timeline
Symbol 353 GraphicUsed by:354
Symbol 354 MovieClip {kondensensation_fla.item_speedup_72}Uses:353Used by:Timeline
Symbol 355 EditableTextUses:23Used by:Timeline
Symbol 356 GraphicUsed by:Timeline
Symbol 357 GraphicUsed by:358
Symbol 358 MovieClip {kondensensation_fla.plane3_73}Uses:357Used by:Timeline
Symbol 359 GraphicUsed by:360
Symbol 360 MovieClip {kondensensation_fla.item_slowmo_74}Uses:359Used by:Timeline
Symbol 361 GraphicUsed by:362
Symbol 362 MovieClip {kondensensation_fla.item_frozen_75}Uses:361Used by:Timeline
Symbol 363 GraphicUsed by:Timeline
Symbol 364 EditableTextUses:23Used by:Timeline
Symbol 365 GraphicUsed by:366
Symbol 366 MovieClip {kondensensation_fla.plane_ng_76}Uses:365Used by:Timeline
Symbol 367 TextUses:15Used by:368
Symbol 368 MovieClip {kondensensation_fla.item_megapoints_77}Uses:308 367Used by:Timeline
Symbol 369 GraphicUsed by:370
Symbol 370 MovieClip {kondensensation_fla.item_reversal_78}Uses:369Used by:Timeline
Symbol 371 GraphicUsed by:Timeline
Symbol 372 EditableTextUses:23Used by:Timeline
Symbol 373 GraphicUsed by:374
Symbol 374 MovieClip {kondensensation_fla.plane_h_79}Uses:373Used by:Timeline
Symbol 375 GraphicUsed by:Timeline
Symbol 376 EditableTextUses:23Used by:Timeline
Symbol 377 GraphicUsed by:378
Symbol 378 MovieClip {kondensensation_fla.plane_Y_80}Uses:377Used by:Timeline
Symbol 379 GraphicUsed by:Timeline
Symbol 380 EditableTextUses:23Used by:Timeline
Symbol 381 GraphicUsed by:382
Symbol 382 MovieClip {kondensensation_fla.plane_x_81}Uses:381Used by:Timeline
Symbol 383 GraphicUsed by:Timeline
Symbol 384 EditableTextUses:23Used by:Timeline
Symbol 385 GraphicUsed by:386
Symbol 386 MovieClip {kondensensation_fla.plane_8_82}Uses:385Used by:Timeline
Symbol 387 GraphicUsed by:Timeline
Symbol 388 EditableTextUses:23Used by:Timeline
Symbol 389 GraphicUsed by:390
Symbol 390 MovieClip {kondensensation_fla.plane_tamugaia_83}Uses:389Used by:Timeline
Symbol 391 GraphicUsed by:Timeline
Symbol 392 EditableTextUses:23Used by:Timeline
Symbol 393 GraphicUsed by:394
Symbol 394 MovieClip {kondensensation_fla.plane_final_84}Uses:393Used by:Timeline
Symbol 395 GraphicUsed by:396
Symbol 396 MovieClipUses:395Used by:Timeline
Symbol 397 GraphicUsed by:400
Symbol 398 GraphicUsed by:399
Symbol 399 MovieClipUses:398Used by:400
Symbol 400 MovieClip {kondensensation_fla.victory_anim_86}Uses:397 399Used by:Timeline
Symbol 401 GraphicUsed by:Timeline
Symbol 402 ButtonUses:268 270 271 272Used by:Timeline
Symbol 403 GraphicUsed by:425
Symbol 404 FontUsed by:405 406 407 408 409 410 411 412 413 414 415 416 419 426 430
Symbol 405 EditableTextUses:404Used by:425
Symbol 406 EditableTextUses:404Used by:425
Symbol 407 EditableTextUses:404Used by:425
Symbol 408 EditableTextUses:404Used by:425
Symbol 409 EditableTextUses:404Used by:425
Symbol 410 EditableTextUses:404Used by:417
Symbol 411 EditableTextUses:404Used by:417
Symbol 412 EditableTextUses:404Used by:417
Symbol 413 EditableTextUses:404Used by:417
Symbol 414 EditableTextUses:404Used by:417
Symbol 415 EditableTextUses:404Used by:417
Symbol 416 EditableTextUses:404Used by:417
Symbol 417 MovieClip {kondensensation_fla.typeblinker_90}Uses:410 411 412 413 414 415 416Used by:425
Symbol 418 GraphicUsed by:421
Symbol 419 EditableTextUses:404Used by:421
Symbol 420 GraphicUsed by:421
Symbol 421 ButtonUses:418 419 420Used by:425
Symbol 422 EditableTextUses:2Used by:425
Symbol 423 GraphicUsed by:425
Symbol 424 GraphicUsed by:425
Symbol 425 MovieClip {kondensensation_fla.highscoresub_89}Uses:403 405 406 407 408 409 417 421 422 423 424Used by:Timeline
Symbol 426 EditableTextUses:404Used by:Timeline
Symbol 427 GraphicUsed by:428
Symbol 428 MovieClipUses:427Used by:429
Symbol 429 MovieClip {kondensensation_fla.gameover_anim_92}Uses:428Used by:Timeline
Symbol 430 EditableTextUses:404Used by:Timeline
Streaming Sound 1Used by:Symbol 88 MovieClip {kondensensation_fla.armorgames_3d_2008_10}

Instance Names

"appd"Frame 1Symbol 3 EditableText
"preloader"Frame 1Symbol 42 MovieClip {kondensensation_fla.preloader_1}
"yosko"Frame 38Symbol 201 MovieClip
"b1start"Frame 39Symbol 215 Button
"flake"Frame 43Symbol 122 MovieClip
"b5"Frame 43Symbol 273 Button
"scoresofar"Frame 45Symbol 279 EditableText
"bg"Frame 48Symbol 301 MovieClip {kondensensation_fla.gamebg_47}
"plane"Frame 48Symbol 303 MovieClip {kondensensation_fla.plane_55}
"hole2d"Frame 48Symbol 305 MovieClip {kondensensation_fla.2dhole_56}
"myd2d2"Frame 48Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"myd2d"Frame 48Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"rot2"Frame 48Symbol 315 MovieClip
"rot1"Frame 48Symbol 315 MovieClip
"indi"Frame 48Symbol 344 MovieClip {kondensensation_fla.indi_62}
"scoresofar"Frame 52Symbol 346 EditableText
"bg"Frame 55Symbol 301 MovieClip {kondensensation_fla.gamebg_47}
"plane"Frame 55Symbol 350 MovieClip {kondensensation_fla.planearmor_70}
"hole2d"Frame 55Symbol 305 MovieClip {kondensensation_fla.2dhole_56}
"myd2d2"Frame 55Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"myd2d"Frame 55Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"rot2"Frame 55Symbol 315 MovieClip
"rot1"Frame 55Symbol 315 MovieClip
"indi"Frame 55Symbol 344 MovieClip {kondensensation_fla.indi_62}
"scoresofar"Frame 59Symbol 355 EditableText
"bg"Frame 62Symbol 301 MovieClip {kondensensation_fla.gamebg_47}
"plane"Frame 62Symbol 358 MovieClip {kondensensation_fla.plane3_73}
"hole2d"Frame 62Symbol 305 MovieClip {kondensensation_fla.2dhole_56}
"myd2d2"Frame 62Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"myd2d"Frame 62Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"rot2"Frame 62Symbol 315 MovieClip
"rot1"Frame 62Symbol 315 MovieClip
"indi"Frame 62Symbol 344 MovieClip {kondensensation_fla.indi_62}
"scoresofar"Frame 66Symbol 364 EditableText
"bg"Frame 69Symbol 301 MovieClip {kondensensation_fla.gamebg_47}
"plane"Frame 69Symbol 366 MovieClip {kondensensation_fla.plane_ng_76}
"hole2d"Frame 69Symbol 305 MovieClip {kondensensation_fla.2dhole_56}
"myd2d2"Frame 69Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"myd2d"Frame 69Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"rot2"Frame 69Symbol 315 MovieClip
"rot1"Frame 69Symbol 315 MovieClip
"indi"Frame 69Symbol 344 MovieClip {kondensensation_fla.indi_62}
"scoresofar"Frame 73Symbol 372 EditableText
"bg"Frame 76Symbol 301 MovieClip {kondensensation_fla.gamebg_47}
"plane"Frame 76Symbol 374 MovieClip {kondensensation_fla.plane_h_79}
"hole2d"Frame 76Symbol 305 MovieClip {kondensensation_fla.2dhole_56}
"myd2d2"Frame 76Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"myd2d"Frame 76Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"rot2"Frame 76Symbol 315 MovieClip
"rot1"Frame 76Symbol 315 MovieClip
"indi"Frame 76Symbol 344 MovieClip {kondensensation_fla.indi_62}
"scoresofar"Frame 80Symbol 376 EditableText
"bg"Frame 83Symbol 301 MovieClip {kondensensation_fla.gamebg_47}
"plane"Frame 83Symbol 378 MovieClip {kondensensation_fla.plane_Y_80}
"hole2d"Frame 83Symbol 305 MovieClip {kondensensation_fla.2dhole_56}
"myd2d2"Frame 83Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"myd2d"Frame 83Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"rot2"Frame 83Symbol 315 MovieClip
"rot1"Frame 83Symbol 315 MovieClip
"indi"Frame 83Symbol 344 MovieClip {kondensensation_fla.indi_62}
"scoresofar"Frame 87Symbol 380 EditableText
"bg"Frame 90Symbol 301 MovieClip {kondensensation_fla.gamebg_47}
"plane"Frame 90Symbol 382 MovieClip {kondensensation_fla.plane_x_81}
"hole2d"Frame 90Symbol 305 MovieClip {kondensensation_fla.2dhole_56}
"myd2d2"Frame 90Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"myd2d"Frame 90Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"rot2"Frame 90Symbol 315 MovieClip
"rot1"Frame 90Symbol 315 MovieClip
"indi"Frame 90Symbol 344 MovieClip {kondensensation_fla.indi_62}
"scoresofar"Frame 94Symbol 384 EditableText
"bg"Frame 97Symbol 301 MovieClip {kondensensation_fla.gamebg_47}
"plane"Frame 97Symbol 386 MovieClip {kondensensation_fla.plane_8_82}
"hole2d"Frame 97Symbol 305 MovieClip {kondensensation_fla.2dhole_56}
"myd2d2"Frame 97Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"myd2d"Frame 97Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"rot2"Frame 97Symbol 315 MovieClip
"rot1"Frame 97Symbol 315 MovieClip
"indi"Frame 97Symbol 344 MovieClip {kondensensation_fla.indi_62}
"scoresofar"Frame 101Symbol 388 EditableText
"bg"Frame 104Symbol 301 MovieClip {kondensensation_fla.gamebg_47}
"plane"Frame 104Symbol 390 MovieClip {kondensensation_fla.plane_tamugaia_83}
"hole2d"Frame 104Symbol 305 MovieClip {kondensensation_fla.2dhole_56}
"myd2d2"Frame 104Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"myd2d"Frame 104Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"rot2"Frame 104Symbol 315 MovieClip
"rot1"Frame 104Symbol 315 MovieClip
"indi"Frame 104Symbol 344 MovieClip {kondensensation_fla.indi_62}
"scoresofar"Frame 108Symbol 392 EditableText
"bg"Frame 111Symbol 301 MovieClip {kondensensation_fla.gamebg_47}
"plane"Frame 111Symbol 394 MovieClip {kondensensation_fla.plane_final_84}
"hole2d"Frame 111Symbol 305 MovieClip {kondensensation_fla.2dhole_56}
"myd2d2"Frame 111Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"myd2d"Frame 111Symbol 313 MovieClip {kondensensation_fla.mydroplet_60}
"rot2"Frame 111Symbol 315 MovieClip
"rot1"Frame 111Symbol 315 MovieClip
"indi"Frame 111Symbol 344 MovieClip {kondensensation_fla.indi_62}
"b2"Frame 123Symbol 402 Button
"b3"Frame 123Symbol 402 Button
"b4"Frame 123Symbol 402 Button
"hssub"Frame 123Symbol 425 MovieClip {kondensensation_fla.highscoresub_89}
"scoritz"Frame 123Symbol 426 EditableText
"bbg"Frame 124Symbol 396 MovieClip
"b2"Frame 133Symbol 402 Button
"b3"Frame 133Symbol 402 Button
"b4"Frame 133Symbol 402 Button
"hssub"Frame 133Symbol 425 MovieClip {kondensensation_fla.highscoresub_89}
"scoritz"Frame 133Symbol 430 EditableText
"percen"Symbol 17 MovieClip {kondensensation_fla.preloaderbar_3} Frame 1Symbol 16 EditableText
"playbutton"Symbol 42 MovieClip {kondensensation_fla.preloader_1} Frame 1Symbol 13 Button
"bar"Symbol 42 MovieClip {kondensensation_fla.preloader_1} Frame 1Symbol 17 MovieClip {kondensensation_fla.preloaderbar_3}
"fpreq"Symbol 42 MovieClip {kondensensation_fla.preloader_1} Frame 1Symbol 24 EditableText
"fpyours"Symbol 42 MovieClip {kondensensation_fla.preloader_1} Frame 1Symbol 25 EditableText
"button"Symbol 42 MovieClip {kondensensation_fla.preloader_1} Frame 1Symbol 38 Button
"agbutton"Symbol 48 MovieClip {kondensensation_fla.armorgames_buttonmc_8} Frame 1Symbol 47 Button
"anim"Symbol 96 MovieClip {d3d} Frame 1Symbol 95 MovieClip
"anim"Symbol 101 MovieClip {my_d3d} Frame 1Symbol 100 MovieClip
"flake"Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19} Frame 25Symbol 122 MovieClip
"anim"Symbol 160 MovieClip {item_3d} Frame 1Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19}
"tamugaiabutton"Symbol 231 MovieClip {kondensensation_fla.tamugaia_button_mc_38} Frame 1Symbol 230 Button
"bgeffects"Symbol 301 MovieClip {kondensensation_fla.gamebg_47} Frame 1Symbol 294 MovieClip {kondensensation_fla.bgl1_48}
"iBar"Symbol 343 MovieClip {kondensensation_fla.FPS_68} Frame 1Symbol 339 MovieClip
"tf"Symbol 343 MovieClip {kondensensation_fla.FPS_68} Frame 2Symbol 342 EditableText
"suko"Symbol 344 MovieClip {kondensensation_fla.indi_62} Frame 1Symbol 318 EditableText
"starto"Symbol 344 MovieClip {kondensensation_fla.indi_62} Frame 1Symbol 273 Button
"indi_reversal"Symbol 344 MovieClip {kondensensation_fla.indi_62} Frame 1Symbol 325 MovieClip {kondensensation_fla.indi_reversal_63}
"indi_slow"Symbol 344 MovieClip {kondensensation_fla.indi_62} Frame 1Symbol 328 MovieClip {kondensensation_fla.indi_slow_64}
"indi_frozen"Symbol 344 MovieClip {kondensensation_fla.indi_62} Frame 1Symbol 331 MovieClip {kondensensation_fla.indi_freeze_65}
"indi_speedup"Symbol 344 MovieClip {kondensensation_fla.indi_62} Frame 1Symbol 334 MovieClip {kondensensation_fla.indi_speedup_66}
"levelscaler"Symbol 344 MovieClip {kondensensation_fla.indi_62} Frame 1Symbol 336 MovieClip
"scoritz"Symbol 425 MovieClip {kondensensation_fla.highscoresub_89} Frame 1Symbol 405 EditableText
"namitz"Symbol 425 MovieClip {kondensensation_fla.highscoresub_89} Frame 1Symbol 406 EditableText
"typeblinker"Symbol 425 MovieClip {kondensensation_fla.highscoresub_89} Frame 1Symbol 417 MovieClip {kondensensation_fla.typeblinker_90}
"submitbutt"Symbol 425 MovieClip {kondensensation_fla.highscoresub_89} Frame 3Symbol 421 Button

Special Tags

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

Labels

"letsgo"Frame 37
"mainmenu"Frame 39
"level1"Frame 45
"level2"Frame 52
"level3"Frame 59
"level4"Frame 66
"level5"Frame 73
"level6"Frame 80
"level7"Frame 87
"level8"Frame 94
"level9"Frame 101
"level10"Frame 108
"victory"Frame 115
"gameover"Frame 124
"notok"Symbol 42 MovieClip {kondensensation_fla.preloader_1} Frame 3
"playnotok"Symbol 42 MovieClip {kondensensation_fla.preloader_1} Frame 4
"ok"Symbol 42 MovieClip {kondensensation_fla.preloader_1} Frame 5
"playok"Symbol 42 MovieClip {kondensensation_fla.preloader_1} Frame 6
"mainloop_reversal"Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19} Frame 1
"disappear"Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19} Frame 10
"mainloop_slow"Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19} Frame 16
"mainloop_frozen"Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19} Frame 25
"mainloop_speedup"Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19} Frame 34
"mainloop_bomb"Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19} Frame 43
"explode"Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19} Frame 52
"mainloop_points"Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19} Frame 58
"mainloop_megapoints"Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19} Frame 67
"getpoints"Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19} Frame 76
"getmegapoints"Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19} Frame 112
"mainloop_cutsize"Symbol 159 MovieClip {kondensensation_fla.item_3D_anim_19} Frame 148
"up"Symbol 222 MovieClip {kondensensation_fla.tamugaia_buttonthing_40} Frame 1
"down"Symbol 227 MovieClip {kondensensation_fla.tamugaia_buttonthing2_41} Frame 1
"no"Symbol 294 MovieClip {kondensensation_fla.bgl1_48} Frame 1
"speed"Symbol 294 MovieClip {kondensensation_fla.bgl1_48} Frame 9
"reversal"Symbol 294 MovieClip {kondensensation_fla.bgl1_48} Frame 17
"slow"Symbol 294 MovieClip {kondensensation_fla.bgl1_48} Frame 25
"frozen"Symbol 294 MovieClip {kondensensation_fla.bgl1_48} Frame 33




http://swfchan.com/9/42181/info.shtml
Created: 10/5 -2019 01:31:27 Last modified: 10/5 -2019 01:31:27 Server time: 21/12 -2024 05:12:36