Hai i want create a full screen mode ,so i used this link http://blog.flexexamples.com/2007/08/07/creating-full-screen-flex-applications/.But i cannot create a full screen mode.anybody kindly help me.
<mx:Script>
<![CDATA[
import mx.effects.easing.*;
import mx.effects.Fade;
import mx.effects.Rotate;
import mx.controls.Alert;
private var fade:Fade;
private var rotate:Rotate;
private function init():void {
// Fade effect
fade = new Fade();
fade.duration=9500;
// Rotate effect
Alert.show("Text Copied!", "Alert Box", Alert.OK);
stage.displayState=StageDisplayState.FULL_SCREEN;
img.setStyle("showEffect", fade);
}
]]>
</mx:Script>
error

The
stageproperty is stillnullwhen the object is initialized. So you can’t callat the
init()method.You should call that when the object is added to the stage.
Or you can do as in the link you posted:
Another possibility for the error is that
imgisnulltoo. So check that it is already created before using it: