Hey guys the perreinial problem with the stage access is that the view needs to get a default clipping rectangle from somewhere. if one isn't implicitly defined, then the view has to go hunting for one and will access the stage property to grab the width and height properties if all else fails. However, this doesn't happen until the render loop is called. in general use, you would be unlikely to want to call render on the view if it is not attached to the display list somewhere, because you wouldn't see the result. The exception to that seems to be rendering into a bitmap object, and the workaround for this at present is to attach the view somewhere on the dislpay list and make it invisible.
This issue is not set for high priority because technically it is not a bug, but a restriction of use. However, now that you are aware of the issues, we would be very interested to hear what your suggestions would be to fix the problem for the use you would like to see. When answering, bear in mind that a great many Away3d projects will already rely on the view automatically creating their clipping rectangle based on stage dimensions, so one thing we are keen to do is not to break backwards compatibility. Rob On Wed, Oct 28, 2009 at 7:41 AM, Diomas <[email protected]> wrote: > > Makc & Ken, the issue already exist: > > http://code.google.com/p/away3d/issues/detail?id=36 > > But it seems, no one support it to be high priority. > > > On Oct 23, 10:47 pm, Ken Railey <[email protected]> wrote: >> I have worked around the missing stage issue before by subclassing View3D so >> I could have a view not added to the stage. In order to make this happen >> (in Lite anyway), you also have to hack around in Clipping.as, since it also >> accesses the stage. >> >> For what it's worth, I agree that it would be nice if the stage wasn't >> accessed directly. >> >> -Ken >> >> >> >> On Fri, Oct 23, 2009 at 12:50 PM, Makc <[email protected]> wrote: >> >> > On Fri, Oct 23, 2009 at 6:37 PM, Pc Thomatos <[email protected]> wrote: >> >> > > Flash 10 3d creates it's perpective projection based on stage >> > > dimensions. There is no way around it. >> >> > there is, pass stage dimensions somewhere. -- Rob Bateman Flash Development & Consultancy [email protected] www.infiniteturtles.co.uk www.away3d.com
