topical media & game development
mashup-rmx-05-StylingSamples-CSSExample-RuntimeStylesheet.mx
mashup-rmx-05-StylingSamples-CSSExample-RuntimeStylesheet.mx
[swf]
flex
<?xml version="1.0" encoding="utf-8"?>
<mx:Application creationComplete="init()" 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;
init(s)
private function init():void
{
StyleManager.loadStyleDeclarations("mashup-rmx-05-StylingSamples-styles.swf");
}
]]>
</mx:Script>
panel (with background canvas)
<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.