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

  • Home
  • SEARCH
  • 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 8061229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:16:05+00:00 2026-06-05T10:16:05+00:00

I have an application with an fullscreen button, when that button is clicked I

  • 0

I have an application with an fullscreen button, when that button is clicked I change the displayState of stage to StageDisplayState.FULL_SCREEN_INTERACTIVE.

That makes Event.RESIZE fire twice if stage.scaleMode = StageScaleMode.NO_SCALE.

The event is only fireing once if i change back to stage.displayState = StageDisplayState.NORMAL.

Anyone know a good way to prevent the Event.RESIZE from fireing twice except calling the onResize function directly or implementing a custom event?

Sample code that reproduces the issue:

package test
{
    import flash.display.Sprite;
    import flash.display.StageDisplayState;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.events.MouseEvent;

    public class Main extends Sprite 
    {

        public function Main():void 
        {
            if (stage) 
                this.init();                
            else 
                this.addEventListener(Event.ADDED_TO_STAGE, init);
        }

        private function init(e:Event = null):void 
        {
            this.removeEventListener(Event.ADDED_TO_STAGE, init);
            stage.addEventListener(Event.RESIZE, onResize);
            stage.scaleMode = StageScaleMode.NO_SCALE;

            var button:Sprite = new Sprite();
            button.mouseEnabled = true;
            button.addEventListener(MouseEvent.CLICK, doResize);
            button.graphics.lineStyle(3,0x00ff00);
            button.graphics.beginFill(0x0000FF);
            button.graphics.drawRect(10, 10, 100, 100);
            button.graphics.endFill();

            this.addChild(button);
        }

        private function doResize(e:MouseEvent) : void {
            if (stage.displayState == StageDisplayState.NORMAL) {
                stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;                
            }
            else {
                stage.displayState = StageDisplayState.NORMAL;
            }           
        }

        private function onResize(e:Event) : void {
            trace("onResize", stage.displayState);
        }       
    }   
}

Further investigation shows that it seems like switching to fullscreen is two steps, first one resize to a StageDisplayState.NORMAL and then to StageDisplayState.FULL_SCREEN_INTERACTIVE.

  • 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-06-05T10:16:07+00:00Added an answer on June 5, 2026 at 10:16 am

    It seems like this is a bug limited to the debug player.

    Debug version of Flash Player 11.1 reproduces this bug, while the Chrome version 11.2 and browser plugin 11.1 does not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application that is a fullscreen kiosk app. It's actually a
I have application that makes different queries with different results so the caching in
I have an application that runs in fullscreen mode and has been working fine.
I have a application as below that runs as FullScreen.NoTitleBar: public class BrowserActivity extends
I have tried to make the fullscreen feature of a SDI application with splitter
I have application that is connecting to the DB and if I enter incorrect
I have application that is up more than 3 days. I can see in
I have a java application that will run on Windows 7 (using Swing, App
I have a cocoa application that has a finder like feel it and is
I have an applications that I've built to target SDK 3.0. In this application

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.