[Solved] Loading Models on AIR Desktop Local Filesystem

Software: Away3D 4.x

rustyk, Newbie
Posted: 23 March 2016 01:39 PM   Total Posts: 22

I’m trying to create a simple 3D viewer app using Air Desktop/Projector, but I’m having problems on how to properly load it. With SWF I just use URLRequest and it works great.

_container.load(new URLRequest('teapot.3ds')); 

I’m also not trying to use the file browser utility as this is not what I have in mind. I would just like to load the model relative to the executable directory or at least inside subfolder.

How do I do this?

   

Avatar
Fabrice Closier, Administrator
Posted: 23 March 2016 04:51 PM   Total Posts: 1265   [ # 1 ]

look in doc AS3 under File… AIR, unlike the player that does it all for you, expects you to compose each and every urls for the machine its running on…

   

rustyk, Newbie
Posted: 24 March 2016 02:00 PM   Total Posts: 22   [ # 2 ]

Ok thanks Fabrice! I got it working now :D

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X