Set application background : Application Style « Container « Flex






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