Away3D Forum http://away3d.com/forum/ Away3D Forum en Copyright 2017 2017-09-08T10:04:21+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 DirectX 11 for windows http://away3d.com/forum/viewthread/6257/ http://away3d.com/forum/viewthread/6257/#When:15:24:06Z <p>just in case you missed the next version of the runtime will run directx 11 rather than 9 as the default as step in the right direction and asynchronous texture upload for desktop</p> <p><a href="https://forums.adobe.com/thread/2365979">08/03/2017 - Beta - AIR 27.0.0.95</a></p> <p>we just need to get these feature built into away3d however i don’t see this ever happening. if anyone up for it im thinking of forking the engine to bring it up to date as a new engine all together. like what away3d did with papervision3d.</p> <p>let me know.</p> 2017-08-08T15:24:06+00:00 BLUEPRINT - MODELS - TEXTURES AND TEXTURES PACK http://away3d.com/forum/viewthread/4513/ http://away3d.com/forum/viewthread/4513/#When:06:29:48Z <p>BLUEPRINT, MODELS:</p> <p><a href="http://www.the-blueprints.com/">http://www.the-blueprints.com/</a></p> <p><a href="http://www.the3dstudio.com/">http://www.the3dstudio.com/</a><br /> <a href="http://www.fineart.sk/">http://www.fineart.sk/</a><br /> <a href="http://www.anatomytools.com/index.php">http://www.anatomytools.com/index.php</a><br /> <a href="http://www.anatomyzone.com/">http://www.anatomyzone.com/</a><br /> <a href="http://www.ballisticpublishing.com/books/dartiste/character_modeling_3/">http://www.ballisticpublishing.com/books/dartiste/character_modeling_3/</a></p> <p>TEXTURES:<br /> <a href="http://www.3dtexture.net/">http://www.3dtexture.net/</a><br /> <a href="http://www.cgadvertising.com/pages/cg/maps.php">http://www.cgadvertising.com/pages/cg/maps.php</a><br /> <a href="http://blog.duber.cz/misc/custom-uv-and-tracking-maps-for-vfx-professionals">http://blog.duber.cz/misc/custom-uv-and-tracking-maps-for-vfx-professionals</a></p> <p>Google image search <img src="/images/smileys/smile.gif" width="19" height="19" alt="smile" style="border:0;" /></p> <p>TEXTURES PACK:<br /> <a href="http://shop.3dtotal.com/">http://shop.3dtotal.com/</a></p> <p>&nbsp;</p> 2013-05-20T06:29:48+00:00 Help Sound Effects http://away3d.com/forum/viewthread/6258/ http://away3d.com/forum/viewthread/6258/#When:10:52:31Z <p>Hi guys i currenly working on my <br /> 3d RPG and looking for some Sound Effects,<br /> can u recommend me sm resources?<br /> <a href="https://www.lucidsamples.com/ambient-samples-packs/269-era-of-space-sounds.html">https://www.lucidsamples.com/ambient-samples-packs/269-era-of-space-sounds.html</a><br /> Last time i searched i found this sound pack<br /> but i don’t know , have anyone bought from<br /> them?</p> 2017-08-12T10:52:31+00:00 FBX File Support http://away3d.com/forum/viewthread/6210/ http://away3d.com/forum/viewthread/6210/#When:23:42:31Z <p>This week i have decided to create a fbx binary parser for away3d 4.1</p> <p>So far it only imports geometries data, cameras and lights.</p> <p>i was wondering although i think i know what the answer is who wants a copy when its done?</p> 2017-03-26T23:42:31+00:00 How to get UV coordinates of mesh http://away3d.com/forum/viewthread/6255/ http://away3d.com/forum/viewthread/6255/#When:12:55:31Z <p>Hi all.</p> <p>I already know that I can get UVs by using event:MouseEvent3D. event.uv is returning the same results what I need. But the problem is in my project I can’t use MouseEvent3D.</p> <p>So is there any function which returns UV of a mesh ?</p> <p>I can guess it’s called ‘unprojection’. But the function ‘unproject’ is only available for View3D &amp; it’s not resolving my issue I want to unproject a mesh. I want UVs of that mesh.</p> <p>Help please I’m searching for the solution since a last month :(</p> 2017-07-06T12:55:31+00:00 Problems converting .dae to awd http://away3d.com/forum/viewthread/6219/ http://away3d.com/forum/viewthread/6219/#When:17:18:36Z <p>Hi,</p> <p>I’m trying to convert a .dae file, exported from Blender, to .awd using Away Builder. The file uses skeleton animation and I’ve managed to imported it correctly into the Away Builder and played the animation, but when I save the file as .awd and try to re open it, I get an error#1034 and the scene is not loaded.</p> <p>If I import the file and save it, without attaching the animation into the model, I can open it fine, but as soon I try to attach the animation a get the error#1034 again.</p> <p>I’m attaching the .dae file I’m using for the test, can you help me on this matter?</p> <p>Thank you in advance.</p> 2017-04-30T17:18:36+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