[Solved] - addChild issue - Flash vs AIR3 ...

Software: Away3D 4.x

Avatar
Jeff, Newbie
Posted: 06 September 2011 11:52 AM   Total Posts: 30

Hi all,

Got a strange issue that I do not understand ... everything is fine on flash but got an error on AIR3 ( Beta 2 )

TypeError: Error #1034: Type Coercion failed: cannot convert away3d.primitives::Sphere@478e661 to away3d.containers.ObjectContainer3D.

The error is fired when I try to add the Sphere object to a container ( ObjectContainer3D ).

_container.addChild(mysphere);

any idea ??

Regards,

   

Avatar
Alexander Seifert, Moderator
Posted: 06 September 2011 02:49 PM   Total Posts: 129   [ # 1 ]

Does that happen with other primitives as well?

What IDE are you using? If eclipse-based, did you reset the compiler and re-build the whole project? Error still there?

 Signature 
signature_image

http://www.deltastrike.org

   

Avatar
Jeff, Newbie
Posted: 06 September 2011 02:55 PM   Total Posts: 30   [ # 2 ]

Hi Alexander,

Thanks for your reply, just solved the problem, Air sandbox issue !

I’m dealing with external SWF modules loaded at run time, on AIR there is a local and external context, Here is a discussion on the problem :

http://www.flexx.fr/forum/viewtopic.php?p=6897

Cheers wink

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X