Away3d actioscript air project to a web project

Software: Away3D 4.x

drbii, Member
Posted: 03 October 2014 08:56 PM   Total Posts: 72

Hey all,
I was wondering if someone could outline the steps of how to convert an existing away3d project created as an air application to a web based project that would be hosted online.

Thanks!
Dan

   

drbii, Member
Posted: 06 October 2014 03:37 PM   Total Posts: 72   [ # 1 ]

Here is the details.  I have an away project that I have created for adobe air.  I want to make it available on web.

I created an action script project for web and moved my assets, code etc. to the project.  When I publish it the html loads but does not display the interface or models which is create starling and away3d.  Just a blank stage.  I read that I need to change the vmode to direct in the html and did that as well.  Still blank stage. 

Any ideas?  Thanks in advance for your help!
Dan

   

Avatar
Fabrice Closier, Administrator
Posted: 06 October 2014 03:48 PM   Total Posts: 1265   [ # 2 ]

if you have published using the right sdk version (same as your air project) and you have no errors during compilation, and it runs into the standalone player, you must have a basic error in your html. Porting AIR project to flash works out of the box, where the only errors you could get are related to AS3 AIR specific methods. For instance, File and most system package will not work into the player. You will get errors for these and will need to write workarounds or remove them from your code.

   

drbii, Member
Posted: 06 October 2014 09:22 PM   Total Posts: 72   [ # 3 ]

Thanks Fabrice,

I’m getting closer but now getting this error?
Error #2044: Unhandled ErrorEvent:. text=Error #3702: Context3D not available.

Edit:  Got it.  My wMode was set to “true” instead of “direct”
My bad!

Thanks for the help!
Dan

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X