Set application background : Application Style « Container « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Container » Application StyleScreenshots 
Set application background
Set application background
            

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
        
            import mx.managers.SystemManager;
            import mx.events.FlexEvent;

            private function initHandler(event:Event):void {
                event.target.content.addEventListener(FlexEvent.APPLICATION_COMPLETE,applicationCompleteHandler);
            }

            private function applicationCompleteHandler(event:Event):void {
                event.target.application.setBackground(0xFFFF00);
            }

      
    </mx:Script>
    <mx:SWFLoader source="a.swf" init="initHandler(event)" />
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Set border style to solid for ApplicationSet border style to solid for Application
2.Application style aligns application to leftApplication style aligns application to left
3.Application style removes marginsApplication style removes margins
4.Application style sets background image to be emptyApplication style sets background image to be empty
5.Set Application style name to plain
6.Use to embed a font in the Flex applicationUse <mx:Style> to embed a font in the Flex application
7.Override the Default Application Style
8.style for application
9.Add padding to ApplicationAdd padding to Application
10.White application backgroundWhite application background
11.Set width and height for ApplicationSet width and height for Application
w__w_w___._j__av__a_2__s__.__com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.