Load away3D swf to normal as3 project

Software: Away3D 4.x

chris15, Newbie
Posted: 27 May 2013 08:06 AM   Total Posts: 3

Hi smile
Sorry for bad english.
I made an animation using Away3d. I now wants to load the swf into another project in Flash CS6 (without Away3D). Using the Loader class does not work. How can I do?
Please help me

   

Avatar
Fabrice Closier, Administrator
Posted: 27 May 2013 08:20 AM   Total Posts: 1265   [ # 1 ]

What does not work?

   

chris15, Newbie
Posted: 27 May 2013 08:40 AM   Total Posts: 3   [ # 2 ]

Ok, my code

var loader:Loader = new Loader();
var 
url:URLRequest = new URLRequest("anim.swf");
 
loader.addEventListener(Event.COMPLETEonLoaded);
 
loader.load(url);


function 
onLoaded(e:Event):void
{
 addChild
(loader);

and error
TypeError: Error #1009:You can not access a property or method of a null object reference
at away3d.containers::View3D/render()
at Basic_View/_onEnterFrame()

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X