Away3D Forum http://away3d.com/forum/ Away3D Forum en Copyright 2018 2018-01-08T21:17:34+00:00 Loading swf files created using away3D into swf files made using flash GUI http://away3d.com/forum/viewthread/6282/ http://away3d.com/forum/viewthread/6282/#When:12:47:44Z <p>Hello, recently I made an AS3 project using FLASHDEVELOP and AWAY3D everything works fine. However when I tried to load created .swf file (which is located in bin folder) into another .swf file produced using flash GUI(ADOBE FLASH CS6) I get this Error!</p> <p>TypeError: Error #1009: Cannot access a property or method of a null object reference.<br /> at Main/initEngine()[F:AWAY3D_test3DmodeltestsrcMain.as:115]<br /> at Main/init()[F:AWAY3D_test3DmodeltestsrcMain.as:95]<br /> at Main()[F:AWAY3D_test3DmodeltestsrcMain.as:87]</p> <p>Is there anyone who knows how I can solve this problem? I thought if I copy swc version of away3D in lib folders of installed flash CS6 will help me overcome this problem, I was wrong!(or maybe I have copied them in a wrong folder, does anyone know where shall I copy them?) </p> <p>Is there anyone who knows how to load an swf made using away3D into another swf ? </p> <p>Best Regards</p> 2017-12-31T12:47:44+00:00 AWD file Issue http://away3d.com/forum/viewthread/6281/ http://away3d.com/forum/viewthread/6281/#When:14:37:05Z <p>Hi,<br /> I was trying to make an android project(apk)(AIR mobile AS3 app), using Flashdevelop (5.3.0) and AIR_SDK(28)and android sdk ( Revision 23.1.0 (December 2015)), my project uses AWAY3D + minimalcomps and it includes some .awd models ( I made two 3D models in blender then textured them and then imported them in AWAYBuilder and finally exported them as .AWD files) but I recieve the following ERROR!</p> <p>Error: Error #2032: Stream Error. URL: app:/assets/mymodel.awd<br /> at away3d.loaders::AssetLoader/onRetrievalFailed()[F:\away3d-core-fp11-4.1.6\src\away3d\loaders\AssetLoader.as:521]<br /> at flash.events::EventDispatcher/dispatchEventFunction()<br /> at flash.events::EventDispatcher/dispatchEvent()<br /> at away3d.loaders.misc::SingleFileLoader/handleUrlLoaderError()[F:\away3d-core-fp11-4.1.6\src\away3d\loaders\misc\SingleFileLoader.as:411]<br /> at flash.events::EventDispatcher/dispatchEventFunction()<br /> at flash.events::EventDispatcher/dispatchEvent()<br /> at flash.net::URLLoader/onComplete()</p> <p>NOTE: when I make an AS3 project(targeting flash player) everything works fine! and I don’t receive an ERROR!</p> <p>I hope somebody can help me. I even considered to remake the 3D models!</p> 2017-12-21T14:37:05+00:00 [closed] Dispose vertex animation http://away3d.com/forum/viewthread/6263/ http://away3d.com/forum/viewthread/6263/#When:11:24:09Z <p>Hello !</p> <p>I would like to dispose a vertex animation. When i take a look to the function dispose() of the vertexclipnode or vertexanimationset, I find an empty function.</p> <p>only the frames have something in it, and there is something I dont understand :</p> <div class="codeblock"><code><span style="color: #000000"> <span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">dispose</span><span style="color: #007700">():</span><span style="color: #0000BB">void<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">var&nbsp;</span><span style="color: #0000BB">numSubGeoms</span><span style="color: #007700">:</span><span style="color: #0000BB">uint&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">_subGeometries</span><span style="color: #007700">.</span><span style="color: #0000BB">length</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;for&nbsp;(var&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">:</span><span style="color: #0000BB">uint&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">numSubGeoms</span><span style="color: #007700">;&nbsp;++</span><span style="color: #0000BB">i</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">var&nbsp;</span><span style="color: #0000BB">subGeom</span><span style="color: #007700">:</span><span style="color: #0000BB">ISubGeometry&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">_subGeometries[0]</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">removeSubGeometry</span><span style="color: #007700">(</span><span style="color: #0000BB">subGeom</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">subGeom</span><span style="color: #007700">.</span><span style="color: #0000BB">dispose</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">}<br />&nbsp;&nbsp;}&nbsp;</span> </span> </code></div> <p>It disposes only the first subgeom. Is it an error? How to dispose properly the animationset and all the animations inside? frame by frame and then just by setting the animationset and the nodes as “null”?</p> <p>thank you.</p> <p>&nbsp;</p> 2017-11-28T11:24:09+00:00 modifying global axes orientation http://away3d.com/forum/viewthread/6261/ http://away3d.com/forum/viewthread/6261/#When:13:41:09Z <p>Is it possible to change the orientation of global axes in away3D? (like in the attached jpeg)</p> <p>It’s different from the orientation in most of 3d softwares (like 3ds max) - sometimes it’s little confusing when you build your scene inside desktop 3d software and try to transfer it into away3D.</p> 2017-10-29T13:41:09+00:00 GameTools Examples Away3D Version? http://away3d.com/forum/viewthread/6260/ http://away3d.com/forum/viewthread/6260/#When:13:58:49Z <p>Hi, I was wondering what specific version of Away3D and AwayPhysics that was used in this old github game tools example:</p> <p><a href="https://github.com/away3d/away3d-game-tools">https://github.com/away3d/away3d-game-tools</a></p> <p>Thanks.</p> 2017-10-07T13:58:49+00:00 How to apply a texture inside a CylinderGeometry http://away3d.com/forum/viewthread/6259/ http://away3d.com/forum/viewthread/6259/#When:07:48:31Z <p>I am using the following code to apply a texture on a CylinderGeometry</p><div class="codeblock"><code><span style="color: #000000"> <span style="color: #0000BB">_plane&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Mesh</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">CylinderGeometry</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">100</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">200</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">64</span><span style="color: #007700">,</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">,</span><span style="color: #0000BB">false</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">),&nbsp;new&nbsp;</span><span style="color: #0000BB">TextureMaterial</span><span style="color: #007700">(</span><span style="color: #0000BB">Cast</span><span style="color: #007700">.</span><span style="color: #0000BB">bitmapTexture</span><span style="color: #007700">(</span><span style="color: #0000BB">FloorDiffuse</span><span style="color: #007700">)));<br /></span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">scene</span><span style="color: #007700">.</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">_plane</span><span style="color: #007700">);&nbsp;</span> </span> </code></div> <p>This code is applying the texture on the outside of the cylinder. Is there any way I can apply the texture to the inside surface of the CylinderGeometry?</p> 2017-09-07T07:48:31+00:00 How can we extract the animation of a web game Unity 3d .AWD http://away3d.com/forum/viewthread/6249/ http://away3d.com/forum/viewthread/6249/#When:16:05:51Z <p>I live in Vietnam, Currently I have a problem is a file v_file.awd contains the animation of a web game that I play, I do not know how to unpack it or open with what software. I hope you can help me to extract this file and exploit the resources from them (I mod Counter-Strike game) (I at the link: <a href="http://upthink.wap.sh/files/v_shovel">http://upthink.wap.sh/files/v_shovel</a>[1].awd) <a href="http://upthink.wap.sh/images/untitled.JPG">http://upthink.wap.sh/images/untitled.JPG</a>). I need to be able to covert out .obj ... Looking forward to helping me. Thank you</p> 2017-06-20T16:05:51+00:00 How to render two mesh in different projections simultaneously at the same time? http://away3d.com/forum/viewthread/6248/ http://away3d.com/forum/viewthread/6248/#When:01:38:35Z <p>Question</p> 2017-06-17T01:38:35+00:00 How to render a plane in orthogonal, and a figure in a perspective projection? http://away3d.com/forum/viewthread/6247/ http://away3d.com/forum/viewthread/6247/#When:07:35:17Z <p>How to render a plane in orthogonal, and a figure in a perspective projection?</p> <p>This code not work.</p> <div class="codeblock"><code><span style="color: #000000"> <span style="color: #0000BB">package</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">//&nbsp;&nbsp;&nbsp;OpenFL&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">display</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">events</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">geom</span><span style="color: #007700">.</span><span style="color: #0000BB">Point</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">geom</span><span style="color: #007700">.</span><span style="color: #0000BB">Rectangle</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">text</span><span style="color: #007700">.</span><span style="color: #0000BB">TextField</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">text</span><span style="color: #007700">.</span><span style="color: #0000BB">TextFieldAutoSize</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">text</span><span style="color: #007700">.</span><span style="color: #0000BB">TextFormat</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">text</span><span style="color: #007700">.</span><span style="color: #0000BB">TextFormatAlign</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">Assets</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">Lib</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;openfl</span><span style="color: #007700">.</span><span style="color: #0000BB">geom</span><span style="color: #007700">.</span><span style="color: #0000BB">Vector3D</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">//&nbsp;&nbsp;&nbsp;Away3D&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">containers</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">entities</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">materials</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">primitives</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">utils</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">debug</span><span style="color: #007700">.</span><span style="color: #0000BB">AwayFPS</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">cameras</span><span style="color: #007700">.</span><span style="color: #0000BB">lenses</span><span style="color: #007700">.</span><span style="color: #0000BB">LensBase</span><span style="color: #007700">;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">cameras</span><span style="color: #007700">.</span><span style="color: #0000BB">lenses</span><span style="color: #007700">.</span><span style="color: #0000BB">OrthographicLens</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">import&nbsp;away3d</span><span style="color: #007700">.</span><span style="color: #0000BB">cameras</span><span style="color: #007700">.</span><span style="color: #0000BB">lenses</span><span style="color: #007700">.</span><span style="color: #0000BB">PerspectiveLens</span><span style="color: #007700">;&nbsp;<br /><br />class&nbsp;</span><span style="color: #0000BB">Main&nbsp;</span><span style="color: #007700">extends&nbsp;</span><span style="color: #0000BB">Sprite&nbsp;{<br />&nbsp;<br />&nbsp;</span><span style="color: #007700">private&nbsp;var&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">:</span><span style="color: #0000BB">View3D</span><span style="color: #007700">;<br />&nbsp;private&nbsp;var&nbsp;</span><span style="color: #0000BB">_plane</span><span style="color: #007700">:</span><span style="color: #0000BB">Mesh</span><span style="color: #007700">;<br />&nbsp;private&nbsp;var&nbsp;</span><span style="color: #0000BB">_plane2</span><span style="color: #007700">:</span><span style="color: #0000BB">Mesh</span><span style="color: #007700">;<br />&nbsp;private&nbsp;var&nbsp;</span><span style="color: #0000BB">_plane3</span><span style="color: #007700">:</span><span style="color: #0000BB">Mesh</span><span style="color: #007700">;<br /><br />&nbsp;public&nbsp;function&nbsp;new()&nbsp;</span><span style="color: #0000BB">{<br />&nbsp;&nbsp;super</span><span style="color: #007700">();<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_view&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">View3D</span><span style="color: #007700">();<br />&nbsp;&nbsp;</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">_view</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">camera</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">800</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">camera</span><span style="color: #007700">.</span><span style="color: #0000BB">z&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">500</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">camera</span><span style="color: #007700">.</span><span style="color: #0000BB">lookAt</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">Vector3D</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;&nbsp;&nbsp;ORTHOGRAPHIC&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;//_view.camera.lens&nbsp;=&nbsp;new&nbsp;OrthographicLens();&nbsp;<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Mesh</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">PlaneGeometry</span><span style="color: #007700">(</span><span style="color: #0000BB">1024</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1024&nbsp;</span><span style="color: #007700">),&nbsp;<br />&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">TextureMaterial</span><span style="color: #007700">(</span><span style="color: #0000BB">Cast</span><span style="color: #007700">.</span><span style="color: #0000BB">bitmapTexture</span><span style="color: #007700">(</span><span style="color: #DD0000">"assets/45.jpg"</span><span style="color: #007700">)));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane</span><span style="color: #007700">.</span><span style="color: #0000BB">x&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane</span><span style="color: #007700">.</span><span style="color: #0000BB">z&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">220</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane</span><span style="color: #007700">.</span><span style="color: #0000BB">rotationX&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">30</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane2&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Mesh</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">PlaneGeometry</span><span style="color: #007700">(</span><span style="color: #0000BB">1024</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1024</span><span style="color: #007700">),&nbsp;<br />&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">TextureMaterial</span><span style="color: #007700">(</span><span style="color: #0000BB">Cast</span><span style="color: #007700">.</span><span style="color: #0000BB">bitmapTexture</span><span style="color: #007700">(</span><span style="color: #DD0000">"assets/56.jpg"</span><span style="color: #007700">)));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane2</span><span style="color: #007700">.</span><span style="color: #0000BB">x&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1024</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane2</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane2</span><span style="color: #007700">.</span><span style="color: #0000BB">z&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">220</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane2</span><span style="color: #007700">.</span><span style="color: #0000BB">rotationX&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">30</span><span style="color: #007700">;<br />&nbsp;<br />&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;&nbsp;PERSPECTIVE&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;//_view.camera.lens&nbsp;=&nbsp;new&nbsp;PerspectiveLens();&nbsp;<br /><br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane3&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Mesh</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">PlaneGeometry</span><span style="color: #007700">(</span><span style="color: #0000BB">512</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">512</span><span style="color: #007700">),&nbsp;<br />&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">TextureMaterial</span><span style="color: #007700">(</span><span style="color: #0000BB">Cast</span><span style="color: #007700">.</span><span style="color: #0000BB">bitmapTexture</span><span style="color: #007700">(</span><span style="color: #DD0000">"assets/23.jpg"</span><span style="color: #007700">)));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane3</span><span style="color: #007700">.</span><span style="color: #0000BB">x&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane3</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane3</span><span style="color: #007700">.</span><span style="color: #0000BB">z&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">220.01</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_plane3</span><span style="color: #007700">.</span><span style="color: #0000BB">rotationX&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">30</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">scene</span><span style="color: #007700">.</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">_plane&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">scene</span><span style="color: #007700">.</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">_plane2&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">scene</span><span style="color: #007700">.</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">_plane3&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//setup&nbsp;the&nbsp;render&nbsp;loop<br />&nbsp;&nbsp;</span><span style="color: #0000BB">addEventListener</span><span style="color: #007700">(</span><span style="color: #0000BB">Event</span><span style="color: #007700">.</span><span style="color: #0000BB">ENTER_FRAME</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_onEnterFrame</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">stage</span><span style="color: #007700">.</span><span style="color: #0000BB">addEventListener</span><span style="color: #007700">(</span><span style="color: #0000BB">Event</span><span style="color: #007700">.</span><span style="color: #0000BB">RESIZE</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">onResize</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">onResize</span><span style="color: #007700">();<br />&nbsp;&nbsp;<br />&nbsp;</span><span style="color: #0000BB">}<br /><br />&nbsp;</span><span style="color: #007700">private&nbsp;function&nbsp;</span><span style="color: #0000BB">_onEnterFrame</span><span style="color: #007700">(</span><span style="color: #0000BB">e</span><span style="color: #007700">:</span><span style="color: #0000BB">Event</span><span style="color: #007700">):</span><span style="color: #0000BB">Void&nbsp;{<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;_view</span><span style="color: #007700">.</span><span style="color: #0000BB">render</span><span style="color: #007700">();<br />&nbsp;&nbsp;<br />&nbsp;</span><span style="color: #0000BB">}<br />&nbsp;</span><span style="color: #007700">private&nbsp;function&nbsp;</span><span style="color: #0000BB">onResize</span><span style="color: #007700">(</span><span style="color: #0000BB">event</span><span style="color: #007700">:</span><span style="color: #0000BB">Event&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">):</span><span style="color: #0000BB">Void&nbsp;{<br />&nbsp;&nbsp;_view</span><span style="color: #007700">.</span><span style="color: #0000BB">width&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">stage</span><span style="color: #007700">.</span><span style="color: #0000BB">stageWidth</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">_view</span><span style="color: #007700">.</span><span style="color: #0000BB">height&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">stage</span><span style="color: #007700">.</span><span style="color: #0000BB">stageHeight</span><span style="color: #007700">;<br />&nbsp;</span><span style="color: #0000BB">}<br />&nbsp;<br />}&nbsp;</span> </span> </code></div> 2017-06-16T07:35:17+00:00 loadermd5test &amp; class which extends EventDispatcher http://away3d.com/forum/viewthread/6239/ http://away3d.com/forum/viewthread/6239/#When:03:04:07Z <p>in away3d broomstick example, loadermd5test, if there are several animated mesh(several class which extends EventDispatcher), it didn’t work, why ? this message appear:</p> <p>Error: Error #2032: Stream Error. URL: app:/players/pg3/model.png<br /> at away3d.loaders::AssetLoader/onRetrievalFailed()<br /> at flash.events::EventDispatcher/dispatchEventFunction()<br /> at flash.events::EventDispatcher/dispatchEvent()<br /> at away3d.loaders.misc::SingleFileLoader/handleUrlLoaderError()<br /> at flash.events::EventDispatcher/dispatchEventFunction()<br /> at flash.events::EventDispatcher/dispatchEvent()<br /> at flash.net::URLLoader/onComplete()</p> <p>because of the MonsterEvent ? i am using loader instead of assetlibrary for different class which extends EventDispatcher<br /> can anyone help me solve this problem? any differences in coding by using different version of away3d? if yes, how ? now i am embedded all my enemies into the main file separate it with different loader<br /> please demonstrate it</p> 2017-06-01T03:04:07+00:00