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 153435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:48:01+00:00 2026-05-11T09:48:01+00:00

I have a simple HelloWorld app done in FlexBuilder. It’s just a simple class

  • 0

I have a simple HelloWorld app done in FlexBuilder. It’s just a simple class that extends Sprite. In the dedicated Flash player, the SWF shows up occupying the whole screen. In Firefox, however, both within HTML and alone, it shows up to the right. Is there a simple cure for this?

Code is just a constructor (in which the stage.stageWidth and stageHeight are read correctly, strangely) which adds a TextField to the Sprite and sets the size to stage.stageWidth and stage.stageHeight.

Edit: To no avail I’ve tried moving the constructor’s contents to the Event.ADDED_TO_STAGE event handling, but I think that whole line of investigation is dead.

Edit: Now that I know that Theo’s answer is right, I found this link. Nice!

  • 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. 2026-05-11T09:48:02+00:00Added an answer on May 11, 2026 at 9:48 am

    HTML Flash Embed

    First make sure your embed tag is alright (width and height set to 100%, CSS, etc.). This shouldn’t be the problem though as you say that the swf-only displayed in the browser also bugs.

    Alignement

    Check that you have set the stage alignement to top-left in your constructor :

    stage.align = StageAlign.TOP_LEFT; 

    Scaling

    Usually if you let flash scale up your whole application it may look ugly (fonts too big, etc.). The best uses to be to set the stage scaling to ‘no scale’ and the listen to the stages RESIZE Event in order to scale and position the objects that requires it.

    stage.scaleMode = StageScaleMode.NO_SCALE; stage.addEventListener(Event.RESIZE, stageResizeHandler); stageResizeHandler(); 

    And the something like (pseudo code) :

    private function stageResizeHandler(event:Event=null):void {     backgroundShape.width = stage.stageWidth;     backgroundShape.height = stage.stageHeight;      footer.y = stage.stageHeight - footer.height;  } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 67k
  • Answers 67k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer From the Mono Project's Guide to Porting Winforms Applications: public… May 11, 2026 at 11:54 am
  • added an answer You can take advantage of the fact that Django's many-to-many… May 11, 2026 at 11:54 am
  • added an answer The RegistryPermissionAttribute is part of the Code Access Security aka… May 11, 2026 at 11:54 am

Related Questions

I have a simple web service operation like this one: [WebMethod] public string HelloWorld()
I have a simple webform that will allow unauthenticated users to input their information,
I have a simple 2-column layout with a footer that clears both the right
I have a simple page with my ScriptManager and my UpdatePanel , and my
I have a simple little test app written in Flex 3 (MXML and some
I have a simple setter method for a property and null is not appropriate
I have a simple WPF application which I am trying to start. I am
I have a simple SQL 'Select' query, and I'd like to dump the results
I have a simple xml document that looks like the following snippet. I need
I have a simple .NET 2.0 windows form app that runs off of a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.