Ok I sorted it.  Actually it was just my error.  I needed to add a
addEventListener(Event.ADDED_TO_STAGE, initScene) listener before
initializing all my objects.  It is strange, however, to be
referencing the stage inside classes that might not necessarily be
able to get that data.  But anyways, for now and in my case, it's
sorted!  Thanks guys!



On Oct 23, 10:03 am, Fabrice3D <[email protected]> wrote:
> if you have a class that have this event, you just addchild to stage,  
> then init the view3d
> if you use external swf's, if you want to do something like  
> "addchild(myloadedswfwithview3d)", just make sure the swf is compiled  
> with similar code
> if the swf holds 3d assets, just make your view, once added to stage  
> fire your view3d, parse your swf and add your assets to view3d.
>
> again, I have no idea how puremvc works, but I do not see why this  
> should be a problem.
> if this framework doesn't allow basic stuffs like this, then use  
> another one or make it smarter by just adding a few lines to the code  
> where views are addchilded.
>
> Fabrice
>
> On Oct 23, 2009, at 10:44 AM, Makc wrote:
>
>
>
>
>
> > On Fri, Oct 23, 2009 at 11:05 AM, Fabrice3D <[email protected]>  
> > wrote:
>
> >> I dunno pureMVC in practice,
> >> but there must be a way to add an addedToStage event before declare  
> >> a View3D
> >> instance.
>
> > I guess what he is saying is that the reason for View3D to even
> > attempt to access the stage is invalid. For example, if your 3d stuff
> > is in loaded swf, which is not allowed to access stage at all - what
> > are you going to do then?

Reply via email to