topical media & game development

talk show tell print

mashup-rmx-05-StylingSamples-CSSExample-EmbeddedStylesheet.mx

mashup-rmx-05-StylingSamples-CSSExample-EmbeddedStylesheet.mx [swf] flex


  <?xml version="1.0" encoding="utf-8"?>
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
  

script(s)


   <mx:Script>
    <![CDATA[
     [Embed(source="mashup-rmx-05-StylingSamples-images-panel.gif", scaleGridTop="25", scaleGridBottom="160", scaleGridLeft="10", scaleGridRight="203")]
     [Bindable]
     private var panelBg:Class;
    ]]>
   </mx:Script>
  

style(s)


   
   <mx:Style source="mashup-rmx-05-StylingSamples-styles.css"/>
  

panel (with canvas background)


   
   <mx:Canvas width="100%" height="100%" backgroundImage="{panelBg}" backgroundSize="100%">
    <mx:Panel 
     title="Main Panel" titleStyleName="myTitleStyle" headerHeight="25"
     backgroundAlpha="0" dropShadowEnabled="false" borderAlpha="0"
     width="100%" height="100%">
     <mx:Text styleName="myFirstStyle" text="Hello Friends of Ed!"/>
     <mx:Text text="CSS is neat!"/>
    </mx:Panel>
   </mx:Canvas>
   
  </mx:Application>
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.