Mega Code Archive
Deferred view state, and you cannot access it until after the first switch to the Deferred view state
// Because the Immediate view state creates the Button control
// at application startup, you can access the control to
// set the label before the first switch
// to the Immediate view state.
public function initButton():void {
newButtonImmediate.label="Immediate Button";
// Uncommenting this line to access the label causes a
// Run Time Exception because newButtonDeferred does not exist yet.
// newButtonDeferred.label="Deferred Button";
}