Remote request are asynchronous, and flash adds listeners for the answer so that the application can keep running. However, inline codes and function calls are all executed in linear form. Flash WILL stop and wait for a function to complete or return before continuing to execute code. Therefor, because the Away3D rendering process is essentially all linear code, you can safely place the block of code that you need executed following a successful rendering after the render() function call.
On Nov 11, 5:22 pm, bakedbeing <[EMAIL PROTECTED]> wrote: > Unfortunately not, Flash doesn't wait for a function to completely > execute before it moves to the next instruction, which is one of the > main reasons for the event system. The most immediate example of this > would be a call to a database or an xml file - the code can't stop > executing or the whole movie would lock each time a net request was > made. > > On Nov 11, 1:29 pm, "Peter Kapelyan" <[EMAIL PROTECTED]> wrote: > > > Can't you put it on the on the line after view.render() ? > > > If it takes 10 seconds to render your scene, it won't hit the next line of > > code until it does anyway... > > > Just a simple idea, but I may be way off the mark of what you need. > > > -Pete > > > On Mon, Nov 10, 2008 at 7:18 PM, bakedbeing <[EMAIL PROTECTED]>wrote: > > > > Hallo again, can I lean on you lads again with another question? > > > > I'm looking for a Render Complete event I can listen for. I wan to > > > call getBounds on the view object, but I don't want to do it until the > > > frame is fully drawn. > > > > Is there such an event? Does it sound like something we could consider > > > adding if there isn't? > > > -- > > ___________________ > > > Actionscript 3.0 Flash 3D Graphics Engine > > > HTTP://AWAY3D.COM
