codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stage use in Flex?


Make sure the stage is available/created when referencing it. If you are
getting a null error - it might be because the stage is not available yet -
this can happen when you call stage in the applications
contentCreationComplete /init handler.

I always use 

if(stage){
stage.color = ..... //access stage
}

that way if the stage isn't available, it won't error.



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/