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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:32:40+00:00 2026-05-16T05:32:40+00:00

I’m embeding a flex application into a web page using the most recent version

  • 0

I’m embeding a flex application into a web page using the most recent version of swfobject.js. I’ve set wmode to transparent and all that but whatever I’ve enterd for the embeded objects default size, is then a white background within my application. I’ve set the application’s backgroundAlpha to 0 and I know that part works because my aplication resizes after it has finished loading. The resized portion of the application is transparent but the rest still has the white background so it’s obvious it has something to do with the application and not the html or javascript embedding it. How do i fix this?

  • 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-16T05:32:41+00:00Added an answer on May 16, 2026 at 5:32 am

    Looking at the default application skin I noticed that it makes use of the backgroundColor style property to set the fill color for the backgroundRect of the applicaton. However, there’s no mention of backgroundAlpha so I created a new application skin and added a single line of code which works!

    Below this line:
    bgRectFill.color = getStyle('backgroundColor');
    Add the following:
    bgRectFill.alpha = getStyle('backgroundAlpha');

    In your application .mxml file set the skinClass property to:

    skinClass="YourSkinsDirectory.YourApplicationSkin" 
    

    I have mine saved as ApplicationSkin.mxml in a folder called Skins
    so mine looks like this: skinClass="Skins.ApplicationSkin"

    Here’s the full skin:

    <?xml version="1.0" encoding="utf-8"?>
    
    <!--
    
        ADOBE SYSTEMS INCORPORATED
        Copyright 2008 Adobe Systems Incorporated
        All Rights Reserved.
    
        NOTICE: Adobe permits you to use, modify, and distribute this file
        in accordance with the terms of the license agreement accompanying it.
    
    -->
    
    <!--- The default skin class for the Spark Application component. 
    
           @see spark.components.Application
    
          @langversion 3.0
          @playerversion Flash 10
          @playerversion AIR 1.5
          @productversion Flex 4
    -->
    <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:fb="http://ns.adobe.com/flashbuilder/2009" alpha.disabled="0.5" alpha.disabledWithControlBar="0.5">
    
        <fx:Metadata>
        <![CDATA[ 
            /** 
             * A strongly typed property that references the component to which this skin is applied.
             */
            [HostComponent("spark.components.Application")]
        ]]>
        </fx:Metadata> 
    
        <fx:Script fb:purpose="styling">
            <![CDATA[
                /**
                 *  @private
                 */
                override protected function updateDisplayList(unscaledWidth:Number, 
                    unscaledHeight:Number) : void
                {
                    bgRectFill.color = getStyle('backgroundColor');
                    bgRectFill.alpha = getStyle('backgroundAlpha');
                    super.updateDisplayList(unscaledWidth, unscaledHeight);
                }
            ]]>
        </fx:Script>
    
        <s:states>
            <s:State name="normal" />
            <s:State name="disabled" />
            <s:State name="normalWithControlBar" />
            <s:State name="disabledWithControlBar" />
        </s:states>
    
        <!-- fill -->
        <!--- 
            A rectangle with a solid color fill that forms the background of the application.
            The color of the fill is set to the Application's backgroundColor property.
        -->
        <s:Rect id="backgroundRect" left="0" right="0" top="0" bottom="0">
            <s:fill>
                <!--- @private -->
                <s:SolidColor id="bgRectFill" color="#FFFFFF" alpha="1"/>
            </s:fill>
        </s:Rect>
    
        <s:Group left="0" right="0" top="0" bottom="0">
            <s:layout>
                <s:VerticalLayout gap="0" horizontalAlign="justify" />
            </s:layout>
    
            <!--- 
                @private
                Application Control Bar
            -->
            <s:Group id="topGroup" minWidth="0" minHeight="0"
                        includeIn="normalWithControlBar, disabledWithControlBar" >
    
                <!-- layer 0: control bar highlight -->
                <s:Rect left="0" right="0" top="0" bottom="1" >
                   <s:stroke>
                        <s:LinearGradientStroke rotation="90" weight="1">
                            <s:GradientEntry color="0xFFFFFF" />
                            <s:GradientEntry color="0xD8D8D8" />
                        </s:LinearGradientStroke>
                   </s:stroke>
                </s:Rect>
    
                <!-- layer 1: control bar fill -->
                <s:Rect left="1" right="1" top="1" bottom="2" >
                   <s:fill>
                        <s:LinearGradient rotation="90">
                            <s:GradientEntry color="0xEDEDED" />
                            <s:GradientEntry color="0xCDCDCD" />
                        </s:LinearGradient>
                   </s:fill>
                </s:Rect>
    
                <!-- layer 2: control bar divider line -->
                <s:Rect left="0" right="0" bottom="0" height="1" alpha="0.55">
                    <s:fill>
                        <s:SolidColor color="0x000000" />
                    </s:fill>
                </s:Rect>
    
                <!-- layer 3: control bar -->
                <!--- @copy spark.components.Application#controlBarGroup -->
                <s:Group id="controlBarGroup" left="0" right="0" top="1" bottom="1" minWidth="0" minHeight="0">
                    <s:layout>
                        <s:HorizontalLayout paddingLeft="10" paddingRight="10" paddingTop="7" paddingBottom="7" gap="10" />
                    </s:layout>
                </s:Group>
            </s:Group>
    
            <!--- @copy spark.components.SkinnableContainer#contentGroup -->
            <s:Group id="contentGroup" width="100%" height="100%" minWidth="0" minHeight="0" />
    
        </s:Group>
    
    </s:Skin>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I'm making a simple page using Google Maps API 3. My first. One marker
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.