When I compile the SWF (flash 9 / as3.0) I have a function which uses
stage.stageWidth to create a grid.
For the children of any object, I of course use Event.ADDED_TO_STAGE to
avoid getting a null reference to stage. However this is for my document
class.
The hacky work around that I have is
Anyone???
Is using timeout for this just standard practice?
mario gonzalez wrote:
When I compile the SWF (flash 9 / as3.0) I have a function which uses
stage.stageWidth to create a grid.
For the children of any object, I of course use Event.ADDED_TO_STAGE
to avoid getting a null reference to
I can't speak to AS3, but in AS2 I have to do an interval which
constantly checks the stage width. Initially it's the size given at
build time, then it switches to 0, then some time later it switches to
the actual size. I have all my initialization wait until I see the
size set to something other
3 matches
Mail list logo