Hey Rob and thank you
i will try that, and if it works, i will put the code here in case it
could help someone else :)
thx
Le 12/10/2011 22:56, Rob Bateman a écrit :
Hey Fabrice
there will be more demos in the away3d-examples-fp11 folder of this
nature in the coming weeks. But to answer your question directly, yes
there is. You can use the mapUrl() method of the AssetLoaderContext
that is passed as an optional parameter in all load operations in
Away3D if you are having trouble local/global filepaths, or you can
set the includeDependencies property to false and manually handle the
initialisation of materials by setting up an assetComplete event
handler for all material assets encountered in the AssetLibrary parser.
On Wed, Oct 12, 2011 at 8:58 PM, fabrice wolf <[email protected]
<mailto:[email protected]>> wrote:
Hi
I am currently trying to upgrade my 3D map engine from 3.6 to 4.0.
I used to use TextureQueue, but it seems we have to use
AssetLibrary class now.
My problem is that i can't embed the assets in my swf's, i need to
load them then to build dynamically the objects.
In 3.6, i was using 2 texturequeues feeded with xmls, one to load
the texture, the other to load the normalmaps, and when i was sure
everyhting was well laoded, i loaded the 3ds and build the objetcs
and the meshes with good textures and normal maps.
I have really look everywhere, but i have found no tutorial,
niether explanation anywhere on how to load assets in 4.0.
Anyone could help me ? Is there a solution to "push" urls of
assets to load in the assetlibrary, then to load everthing at once ?
any help would be faaaar welcome
fabrice
--
Rob Bateman
Flash Development & Consultancy
[email protected] <mailto:[email protected]>
www.infiniteturtles.co.uk <http://www.infiniteturtles.co.uk>
www.away3d.com <http://www.away3d.com>
--
Fabrice WOLF
Machiavelic SàRL
Tel 04 84 25 25 78
email : [email protected]