Building errors related to resources.

Software: Away3D 4.x

JAre, Newbie
Posted: 01 October 2011 04:56 PM   Total Posts: 28

Got Away3d and examples to it from here:
http://away3d.com/download/

And now i’m trying to build something using this tutorial (but with RC version):
http://www.mclelun.com/blog/2011/08/flashdevelop-stage3d-away3d/

AnimatedBitmapMaterialTest.as run without any problems,  But when building examples where resources are used, compiler says that i’m stupid cuz:
***\examples_4_0_0_broomstick\src\EnvMapDiffuseTest.as(151): col: 45 Error: Type was not found or was not a compile-time constant: ResourceEvent.

Because the core does not have them:

import away3d.events.ResourceEvent;
import away3d.loading.ResourceManager;

Nor in the API reference:

http://away3d.com/livedocs/away3d-core-fp11/

Perhaps the examples are outdated and use the old resource manager?

   

Avatar
Matse, Sr. Member
Posted: 01 October 2011 05:02 PM   Total Posts: 149   [ # 1 ]

Yeah those examples are outdated, not sure if they have been updated, but if they have then you will get them from github : https://github.com/away3d

edit : ResourceManager is now AssetLibrary and ResourceEvent is now AssetEvent, not sure how much more changed though as I started recently.

   

JAre, Newbie
Posted: 01 October 2011 06:53 PM   Total Posts: 28   [ # 2 ]
Matse - 01 October 2011 05:02 PM

ResourceManager is now AssetLibrary and ResourceEvent is now AssetEvent, not sure how much more changed though as I started recently.

Thank you very much! I’ll try to find an updated sources or update a couple of examples to the new version.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X