great thanks :)

On Sep 12, 8:53 am, richardolsson <[email protected]> wrote:
> There's no problems in doing so, but you cannot call the render()
> method unless your DisplayObject is in the visible display list (i.e.
> has a reference to the stage.)
>
> So make sure you don't start the render loop until you have add the
> display object containing your Away3D scene to the stage, for example
> by creating a startRenderLoop() method that sets up the ENTER_FRAME
> event listener:
>
> root.addChild(myAwayScene);
> myAwayScene.startRenderLoop();
>
> You could also, within the custom Away3D display object class create
> an event listener for ADDED_TO_STAGE, and start the render loop at
> that time:
>
> this.addEventListener(Event.ADDED_TO_STAGE, onAdded);
>
> function onAdded(ev : Event) : void
> {
>   this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
>
> }
>
> function onEnterFrame(ev : Event) : void
> {
>   myView.render();
>
> }
>
> Hope this helps! Otherwise, let us know what the errors you're getting
> are, and we can look at exactly what's the problem.
>
> Cheers
> /R
>
> On Sep 12, 7:32 am, colouredfunk <[email protected]> wrote:
>
>
>
> > hello, is there any way to create an away3d scene/setup outside the
> > document class, when ever I have tried it in the past I get a whole
> > list of errors...?- Hide quoted text -
>
> - Show quoted text -

Reply via email to