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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:00:14+00:00 2026-05-20T09:00:14+00:00

i can set the stage’s background color, etc., using a SWF metadata tag: [SWF(width=1024,

  • 0

i can set the stage’s background color, etc., using a SWF metadata tag:

[SWF(width="1024", height="600", frameRate="60", backgroundColor="#000000")]

or if i’m using Flash Professional, i can simply set these properties for the document in the UI.

while the Stage class offers the ability to set a frameRate and override width and height thru properties in actionscript, why is it not possible to set the background color of the stage the same way?

Stage doesn’t have a property (public or otherwise) for background color. can anyone explain why that is? it seems strange to me but i’m assuming there is a good reason rather than this simply being a oversight.

  • 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-20T09:00:15+00:00Added an answer on May 20, 2026 at 9:00 am

    The background color that you can set with the SWF metadata sets the default background color for the container that contains the SWF. If you use CSS (etc…) to manipulate that container’s background-color property then it will change. You can also set wmode=transparent to show whatever content is rendered under the SWF in place of the background color.

    If you’re using a standalone player it may or may not respect this metadata value. You probably shouldn’t assume that it will. If you need to guarantee a given opaque background color then draw it onto your stage when you startup:

    graphics.beginFill(0xFF0000);
    graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
    graphics.endFill();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To set the stage, I'm using rails 3 and I have these tables and
how can I set embed parameters for html wrapper using Flex Builder ? For
In windows mobile, if you create a task, you can set a due date
I have a flex app I am scaling using systemManager.stage.scaleMode=StageScaleMode.NO_BORDER; for the most part
How can I set the selectedvalue property of a SelectList after it was instantiated
Let's set the stage, PHP & MYSQL: I have a table we'll call Directions
I have a square movieclip on stage. I am trying to set the dimensions
I have this set of codes to create a simple before and after image
hey everyone, my code is listed below. as you can see, I have a
I'm writing a 32-bit .NET program with a 2 stage input process: It uses

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.