please send me the error that show you, I need to know if the same error
that happened to me, because I know how to solved. ? but try this while
Open your Away3D Class
and add this
function added(event:Event = null):void{
init(); // put in here every code that you to use with Away3D
}
and Execute the code with this
if(stage){
added();
}else{
addEventListener(Event.ADD_TO_STAGE,added);
}
And then open de Main Class
import away3DProyect;
and create it
var proj:Sprite = new away3DProyect();
addChild(proj);
tell me if you works, if not, send me the errors, I will trying to help you
!
2011/2/10 Peyvand Akhoundzadeh <[email protected]>
> hi. i have a away3d simple class but this class is not a main class.
> i want use this class in main class. i try this but not work :(
> thank you
>