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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:45:15+00:00 2026-05-25T00:45:15+00:00

I am developing a web application for a web firm, it is an engine

  • 0

I am developing a web application for a web firm, it is an “engine” that loads external swf files and presents them in a slideshow fashion much like what is presented a lot these days for website frontend header content areas

The thing is almost ready but I’ve hit a bit of a design roadblock. While i’ve been developing happily along with a stage width and height of 930×270, the truth is that not every single site is going to be using those dimensions. Everything that runs uses the stage.stageWidth property (and same with stage.stageHeight) for this exact reason, however I cannot seem to dynamically set the width and height values, even with basic to advanced embedding techniques on the web pages themselves.

Using the Flex/FlashBuilder meta info

[SWF(frameRate=30, widthPercent=100, heightPercent=100)]

or even if i set a specific width and height or not.
For example, if I dont set anything (just the framerate) and I embed the resulting swf on a page in an element thats 980×300, stage.stageWidth STILL reports back only 500, totally messing with how my elements are getting displayed.

I tried setting the scaleMode too, right now its set to

stage.scaleMode = StageScaleMode.EXACT_FIT;

its the first thing set in my constructor.Still 500 (without any meta information set, or even with widthPercent and heightPercent).

I need the ability for the embedded flash to be almost any size without the requirement of recompiling, No need to worry about aspect ratio either, the loaded content will be manually created for that particular project, but the entire project relies on the width property of the engines stage.

Sorry for the long wall of text, but I’m running out of ideas here…

Is there anything in MXML or some property I can modify or some embed tactic that I’m missing to get the stages properties set to the width and height of its embedded object?

  • 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-25T00:45:16+00:00Added an answer on May 25, 2026 at 12:45 am

    Try setting the following:

    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    

    Also use a method outside of the main constructor to get the stageHeight and stageWidth sometimes the stage is not ‘ready’ yet.

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

Sidebar

Related Questions

We're developing a web application that is going to be used by external clients
I'm developing a web application that is targeted at IE and during testing would
We are developing a web application that will be sold to many clients. There
I'm developing a web application that uses an in-house SSO server for authentication. I
Developing a web application that I've registered with Twitter. In this app, I might
I'm currently developing a web application for a particular niche. The point is that
I'm developing web-application (and also native iOS app) that uses images from different websites.
I am developing a web application in Arabic. For that I convert existing pages
I'm interested in developing web application and networking application. For that what is the
I'm developing web application on python. But the client wants a tool that exports

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.