Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7592057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:48:36+00:00 2026-05-30T20:48:36+00:00

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/

  • 0

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
enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:48:37+00:00Added an answer on May 30, 2026 at 8:48 pm

    The stage property is still null when the object is initialized. So you can’t call

    stage.displayState = StageDisplayState.FULL_SCREEN;
    

    at the init() method.

    You should call that when the object is added to the stage.

    private function init():void {
        // ...
        this.addEventListener(Event.ADDED_TO_STAGE, addedToStage);
    }
    
    function addedToStage(e:Event) {
        stage.displayState = StageDisplayState.FULL_SCREEN;
    }
    

    Or you can do as in the link you posted:

    private function init():void {
        // ...
        Application.application.stage.displayState = StageDisplayState.FULL_SCREEN;
    }
    

    Another possibility for the error is that img is null too. So check that it is already created before using it:

    private function init():void {
        // ...
        if (img) {
            img.setStyle("showEffect", fade);
        } else {
            trace("img is null.");
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hai I want to create more users as admin and allow permission to access
hai I want to create a web page like left and right side image,
Hai, I am trying to create a chess board. Here I want to do
hai.all..can you tell me how to make table in jquery? i want using this
Hai I am new to iphone and i am creating an application. I want
Hai, I am using Java GWT. In this i want to load one html
Hai i want to generated an automated click event. I am working in php
Hai guys, I want to send scheduled mail every morning from my application and
hai guys, I want to upload images through my web page to a folder
Hai all, In my iphone application i want to open a my custom application(available

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.