I've done something like Peter said..

However, I wanted to be able to add my view3D instance within a Flash
Movie Clip that was already on my scene (created at design-time within
Flash IDE).
Peter's way just creates a new MovieClip at run-time, where as I
wanted to add the view to a design-time MovieClip.

Cheers.


On Jul 17, 8:53 pm, Peter Kapelyan <[email protected]> wrote:
> It should be as easy as you explained, like
>
> var mView:MovieClip;
> var view:View3D;
>
> Then inside the functions you can access it like:
>
> function createAway3Dscene(){
>    mView=addChild(new MovieClip());//or movieclip from the library
>    view =mView.addChild(new View3D());
>
> }
>
> Just make sure you set the x and y's of view and mView, otherwise "view"
> might end up in the top left of your stage.
>
> -Pete
>
>
>
>
>
> On Fri, Jul 17, 2009 at 6:09 AM, justaddice <[email protected]> wrote:
>
> > I'd like to render my Away3D view within a design-type Movie Clip on
> > the Flash Scene.
>
> > I've tried adding my MC, then naming the instance to 'mView'.
> > I thought I'd just need to change my away3D init() code from:
>
> > addChild(view);
> > ..to..
> > mView.addChild(view);
>
> > But I guess I'm not accessing mView correctly (I'm a bit new to AS3).
>
> > Any help would be appreciated.
>
> > Cheers,
> > Daniel.
>
> --
> ___________________
>
> Actionscript 3.0 Flash 3D Graphics Engine
>
> HTTP://AWAY3D.COM

Reply via email to