<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GhostWire Studios &#187; Themes</title>
	<atom:link href="http://www.ghostwire.com/blog/archives/tag/themes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghostwire.com/blog</link>
	<description>Flash UI Components</description>
	<lastBuildDate>Tue, 23 Aug 2011 03:51:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Aspire UI Components: Size of &#8220;classic&#8221;, &#8220;graylic&#8221;, &#8220;vista&#8221; and &#8220;xp&#8221; Themes</title>
		<link>http://www.ghostwire.com/blog/archives/aspire-ui-components-size-of-classic-graylic-vista-and-xp-themes/</link>
		<comments>http://www.ghostwire.com/blog/archives/aspire-ui-components-size-of-classic-graylic-vista-and-xp-themes/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 11:13:04 +0000</pubDate>
		<dc:creator>sunny</dc:creator>
				<category><![CDATA[Aspire UI]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash Components]]></category>
		<category><![CDATA[Skinning]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1652</guid>
		<description><![CDATA[The Aspire UI Components library, for pure ActionScript 3.0 development, now ships with four themes &#8211; &#8220;classic&#8221;, &#8220;graylic&#8221;, &#8220;vista&#8221; and &#8220;xp&#8221;. These themes are included to demonstrate the versatility of the skinning workflow; developers are not limited to these themes but can design their own themes via PNG images. By default, components in the toolkit [...]]]></description>
			<content:encoded><![CDATA[<p>The Aspire UI Components library, for pure ActionScript 3.0 development, now ships with four themes &#8211; &#8220;classic&#8221;, &#8220;graylic&#8221;, &#8220;vista&#8221; and &#8220;xp&#8221;.  These themes are included to demonstrate the versatility of the skinning workflow; developers are not limited to these themes but can design their own themes via PNG images.</p>
<p>By default, components in the toolkit uses external PNG images loaded during run-time for component skinning.  As of version 1.3, skin assets of the same theme can be compressed and packed into a single binary file, facilitating run-time loading and also making it easy to embed the skin assets if so desired.</p>
<p>As at the time of this post, the sizes of the compressed packed version of the themes are as follows:</p>
<p><span id="more-1652"></span><br />
<strong>&#8220;classic&#8221;</strong><br />
6kb (uncompressed 15kb)<br />
The following is a screenshot of the theme in action:<br />
<img src="http://www.ghostwire.com/blog/wp-content/uploads/aspireui_theme_classic.png" alt="aspireui_theme_classic" title="aspireui_theme_classic" width="446" height="348" class="alignleft size-full wp-image-1654" /></p>
<p><!-- --><br />
<strong>&#8220;graylic&#8221;</strong><br />
8kb (uncompressed 17kb)<br />
The following is a screenshot of the theme in action:<br />
<img src="http://www.ghostwire.com/blog/wp-content/uploads/aspireui_theme_graylic.png" alt="aspireui_theme_graylic" title="aspireui_theme_graylic" width="446" height="348" class="alignleft size-full wp-image-1655" /></p>
<p><!-- --><br />
<strong>&#8220;vista&#8221;</strong><br />
22kb (uncompressed 36kb)<br />
The following is a screenshot of the theme in action:<br />
<img src="http://www.ghostwire.com/blog/wp-content/uploads/aspireui_theme_vista.png" alt="aspireui_theme_vista" title="aspireui_theme_vista" width="446" height="348" class="alignleft size-full wp-image-1656" /></p>
<p><!-- --><br />
<strong>&#8220;xp&#8221;</strong><br />
22kb (uncompressed 30kb)<br />
The following is a screenshot of the theme in action:<br />
<img src="http://www.ghostwire.com/blog/wp-content/uploads/aspireui_theme_xp1.png" alt="aspireui_theme_xp" title="aspireui_theme_xp" width="446" height="348" class="alignleft size-full wp-image-1666" /></p>
<p>Note: sizes may change in the future if more component assets are added to the library.</p>
<p>For more information on packing themes, please refer to:<br />
<a href="http://ghostwire.com/aspireui/docs/skinning/packing-skin-assets">http://ghostwire.com/aspireui/docs/skinning/packing-skin-assets</a></p>
<p><!-- --><br />
<strong>Aspire UI Components</strong><br />
Aspire UI is a library of Actionscript 3.0 (AS3) classes for building flexible and lightweight UI elements in Adobe Flash applications. Key features of the components include easy skinning using PNG image files, automatic tab focus ordering, CSS text styles, and layout management. This is a pure AS3 library with no dependency on the Flex framework.</p>
<p>You may experiment with the various features by <a href="/aspireui/download">downloading the trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/aspire-ui-components-size-of-classic-graylic-vista-and-xp-themes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uiWindow: Background Drop Shadow + Glow Effect</title>
		<link>http://www.ghostwire.com/blog/archives/uiwindow-background-drop-shadow-glow-effect/</link>
		<comments>http://www.ghostwire.com/blog/archives/uiwindow-background-drop-shadow-glow-effect/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 16:02:47 +0000</pubDate>
		<dc:creator>sunny</dc:creator>
				<category><![CDATA[Aspire UI]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Filters]]></category>
		<category><![CDATA[Flash Components]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Window]]></category>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1600</guid>
		<description><![CDATA[The default behavior of the uiWindow container is to cast a drop shadow when it is active in the foreground, and not do so when it is inactive or when it is maximized to fill the stage. This behavior is determined by the component instance&#8217;s background property value. Default Shadow The following is the default [...]]]></description>
			<content:encoded><![CDATA[<p>The default behavior of the <a href="http://www.ghostwire.com/aspireui/docs/usage/uiwindow">uiWindow</a> container is to cast a drop shadow when it is active in the foreground, and not do so when it is inactive or when it is maximized to fill the stage.  This behavior is determined by the component instance&#8217;s <code>background</code> property value.</p>
<p><span id="more-1600"></span><br />
<strong>Default Shadow</strong><br />
The following is the default <code>background</code> property value for all <code>uiWindow</code> instances:<br />
<code>{shadow_up:0x000000, shadow_up_maximized:-1};</code><br />
That tells the instance it should render a drop shadow of color 0&#215;000000 when its visual state is &#8220;up&#8221;, and not render any drop shadow when its visual state is &#8220;up_maximized&#8221; (when it is maximized, the drop shadow cannot be seen so applying the effect will be pointless).</p>
<p><img src="http://www.ghostwire.com/blog/wp-content/uploads/winxp.png" alt="winxp" title="winxp" width="480" height="416" class="alignleft size-full wp-image-1608" /></p>
<p><!-- --><br />
<strong>Always Cast Drop Shadow</strong><br />
To make a <code>uiWindow</code> instance <em>always</em> cast a drop shadow, you can set its background property as below:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> win:uiWindow = <span style="color: #000000; font-weight: bold;">new</span> uiWindow<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
win.<span style="color: #0066CC;">background</span> = <span style="color: #66cc66;">&#123;</span>shadow:0x000000<span style="color: #66cc66;">&#125;</span>;</pre></div></div>

<p><img src="http://www.ghostwire.com/blog/wp-content/uploads/winxp_always.png" alt="winxp_always" title="winxp_always" width="480" height="416" class="alignleft size-full wp-image-1610" /></p>
<p><!-- --><br />
<strong>Never Cast Drop Shadow</strong><br />
To make a <code>uiWindow</code> instance <em>never</em> cast a drop shadow, you can set its background property to <code>null</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> win:uiWindow = <span style="color: #000000; font-weight: bold;">new</span> uiWindow<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
win.<span style="color: #0066CC;">background</span> = <span style="color: #000000; font-weight: bold;">null</span>;</pre></div></div>

<p><img src="http://www.ghostwire.com/blog/wp-content/uploads/winxp_none.png" alt="winxp_none" title="winxp_none" width="480" height="416" class="alignleft size-full wp-image-1611" /></p>
<p><!-- --><br />
<strong>Glow Effect</strong><br />
As of v1.3.0+, you can also get the <code>uiWindow</code> instance (any <code>uiComponent</code>, actually) to cast a glow effect:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> win:uiWindow = <span style="color: #000000; font-weight: bold;">new</span> uiWindow<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
win.<span style="color: #0066CC;">background</span> = <span style="color: #66cc66;">&#123;</span>glow_up:0x000000, glow_up_maximized:-<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#125;</span>;</pre></div></div>

<p><img src="http://www.ghostwire.com/blog/wp-content/uploads/wingraylic_glow.png" alt="wingraylic_glow" title="wingraylic_glow" width="480" height="416" class="alignleft size-full wp-image-1616" /></p>
<p><!-- --><br />
<strong>Drop Shadow + Glow</strong><br />
In the &#8220;vista&#8221; theme, the <code>uiWindow</code> instances use drop shadow + glow effects:<br />
<img src="http://www.ghostwire.com/blog/wp-content/uploads/winvista.png" alt="winvista" title="winvista" width="480" height="416" class="alignleft size-full wp-image-1609" /></p>
<p>See: <a href="http://www.ghostwire.com/blog/archives/aspire-ui-components-theme-vista-released/">&#8220;vista&#8221; themed uiWindow demo</a></p>
<p><!-- --><br />
<strong>Specifying Default uiWindow Background Property</strong><br />
If you wish to override the default background property value, ie set the default value for all <code>uiWindow</code> instances, you can do so by defining it in the theme folder&#8217;s &#8220;rules.xml&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Window</span> <span style="color: #000066;">edge</span>=<span style="color: #ff0000;">&quot;5,5,5&quot;</span> <span style="color: #000066;">slices</span>=<span style="color: #ff0000;">&quot;up,out,up_maximized,out_maximized&quot;</span> <span style="color: #000066;">prefs</span>=<span style="color: #ff0000;">&quot;padding|5|background|shadow_up,0,shadow_up_maximized,-1,glow,0,glowDepth,12,glow_up_maximized,-1&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

<p><!-- --><br />
<strong>Aspire UI Components</strong><br />
Aspire UI is a library of Actionscript 3.0 (AS3) classes for building flexible and lightweight UI elements in Adobe Flash applications. Key features include easy skinning using PNG image files, automatic tab focus ordering, CSS text styles, and layout management. This is a pure AS3 library with no dependency on the Flex framework.</p>
<p>You may experiment with the various features by <a href="/aspireui/download/">downloading the trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/uiwindow-background-drop-shadow-glow-effect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aspire UI Components &#8220;vista&#8221; Theme Demo II</title>
		<link>http://www.ghostwire.com/blog/archives/aspire-ui-components-vista-theme-demo-ii/</link>
		<comments>http://www.ghostwire.com/blog/archives/aspire-ui-components-vista-theme-demo-ii/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 05:46:43 +0000</pubDate>
		<dc:creator>sunny</dc:creator>
				<category><![CDATA[Aspire UI]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash Components]]></category>
		<category><![CDATA[Skinning]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1524</guid>
		<description><![CDATA[The previous demo of the new &#8220;vista&#8221; theme featured mainly the uiWindow component. Here is another demo featuring various UI components, including the checkbox, radiobutton, tabview, sliders and steppers (this is the same demo included in the library distribution but with the &#8220;vista&#8221; theme applied): 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_VistaThemeDemoII_1052756540"
			class="flashmovie"
			width="480"
			height="600">
	<param name="movie" value="/aspireui/swf/VistaThemeDemoII.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/aspireui/swf/VistaThemeDemoII.swf"
			name="fm_VistaThemeDemoII_1052756540"
			width="480"
			height="600">
	<!--<![endif]-->
		 
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object> The size of [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.ghostwire.com/blog/archives/aspire-ui-components-theme-vista-released/">previous demo</a> of the new &#8220;vista&#8221; theme featured mainly the <a href="http://www.ghostwire.com/aspireui/docs/usage/uiwindow">uiWindow</a> component.</p>
<p>Here is another demo featuring various UI components, including the checkbox, radiobutton, tabview, sliders and steppers (this is the same demo included in the library distribution but with the &#8220;vista&#8221; theme applied):</p>
<p><span id="more-1524"></span><br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_VistaThemeDemoII_1153724889"
			class="flashmovie"
			width="480"
			height="600">
	<param name="movie" value="/aspireui/swf/VistaThemeDemoII.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/aspireui/swf/VistaThemeDemoII.swf"
			name="fm_VistaThemeDemoII_1153724889"
			width="480"
			height="600">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>The size of the above SWF is approximately 74KB (the theme assets embedded in the SWF contribute about 22KB to the size).</p>
<p><!-- --><br />
<strong>Aspire UI Components</strong><br />
Aspire UI is a library of Actionscript 3.0 (AS3) classes for building flexible and lightweight UI elements in Adobe Flash applications. Key features include easy skinning using PNG image files, automatic tab focus ordering, CSS text styles, and layout management. This is a pure AS3 library with no dependency on the Flex framework.</p>
<p>You may experiment with the various features by <a href="/aspireui/download/">downloading the trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/aspire-ui-components-vista-theme-demo-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aspire UI Components Theme &#8220;vista&#8221; Released</title>
		<link>http://www.ghostwire.com/blog/archives/aspire-ui-components-theme-vista-released/</link>
		<comments>http://www.ghostwire.com/blog/archives/aspire-ui-components-theme-vista-released/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 13:18:59 +0000</pubDate>
		<dc:creator>sunny</dc:creator>
				<category><![CDATA[Aspire UI]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash Components]]></category>
		<category><![CDATA[Skinning]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Window]]></category>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1515</guid>
		<description><![CDATA[A new bonus theme, emulating the look of Windows Vista OS, has been added to the Aspire UI components library. Below is a live demo (click on the three buttons to bring up windows): 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_VistaThemeDemo_1575714941"
			class="flashmovie"
			width="640"
			height="480">
	<param name="movie" value="/aspireui/swf/VistaThemeDemo.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/aspireui/swf/VistaThemeDemo.swf"
			name="fm_VistaThemeDemo_1575714941"
			width="640"
			height="480">
	<!--<![endif]-->
		 
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object> The SWF above is approximately 84KB (the theme assets are embedded in the SWF). [...]]]></description>
			<content:encoded><![CDATA[<p>A new bonus theme, emulating the look of Windows Vista OS, has been added to the <a href="http://ghostwire.com/aspireui/">Aspire UI</a> components library. Below is a live demo (click on the three buttons to bring up windows):</p>
<p><span id="more-1515"></span><br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_VistaThemeDemo_1755809883"
			class="flashmovie"
			width="640"
			height="480">
	<param name="movie" value="/aspireui/swf/VistaThemeDemo.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/aspireui/swf/VistaThemeDemo.swf"
			name="fm_VistaThemeDemo_1755809883"
			width="640"
			height="480">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>The SWF above is approximately 84KB (the theme assets are embedded in the SWF).</p>
<p><!-- --><br />
<strong>Availability</strong><br />
The new theme has been included in the distributions for both Aspire UI Lite Edition and Aspire UI Standard Edition (v1.3.3).</p>
<p><!-- --><br />
<strong>Aspire UI Components</strong><br />
Aspire UI is a library of Actionscript 3.0 (AS3) classes for building flexible and lightweight UI elements in Adobe Flash applications. Key features include easy skinning using PNG image files, automatic tab focus ordering, CSS text styles, and layout management. This is a pure AS3 library with no dependency on the Flex framework.</p>
<p>You may experiment with the various features by <a href="/aspireui/download/">downloading the trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/aspire-ui-components-theme-vista-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aspire UI v1.3 Update: Skin Assets Packing</title>
		<link>http://www.ghostwire.com/blog/archives/aspire-ui-v1-3-update-skin-assets-packing/</link>
		<comments>http://www.ghostwire.com/blog/archives/aspire-ui-v1-3-update-skin-assets-packing/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 12:42:45 +0000</pubDate>
		<dc:creator>sunny</dc:creator>
				<category><![CDATA[Aspire UI]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash Components]]></category>
		<category><![CDATA[Skinning]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1274</guid>
		<description><![CDATA[The Aspire UI library, for pure ActionScript 3 development, has been updated to version 1.3 (changelog). Among the many improvements, the most important is implementing support for the use of packaged themes. The Aspire UI library uses external PNG images for component skinning, which means that skin assets can be easily modified by theme designers [...]]]></description>
			<content:encoded><![CDATA[<p>The Aspire UI library, for pure ActionScript 3 development, has been updated to version 1.3 (<a href="/aspireui/docs/changelog">changelog</a>).</p>
<p>Among the many improvements, the most important is implementing support for the use of packaged themes.  The Aspire UI library uses external PNG images for component skinning, which means that skin assets can be easily modified by theme designers using any image editor (capable of exporting to the PNG format).</p>
<p>With the Aspire UI Version 1.3 Update, the skinning work flow has been further enhanced by allowing developers to optionally use packaged themes.</p>
<p>It is now possible to compress skin assets from a theme folder, along with the &#8220;rules.xml&#8221; file, into one single binary file.</p>
<p><span id="more-1274"></span>This is advantageous for the following reasons:</p>
<ul>
<li>the overall total payload (bytes to download over the network) is now reduced due to compression;</li>
<li>only one network connection is required, instead of multiple simultaneous connections to the various PNG files;</li>
<li>moving skin assets is now easier since you only need to move one file around;</li>
<li>if embedding skin assets into the application SWF is preferred, this can now be done easily since you only need to embed one single file.</li>
</ul>
<p>The benefits of using packaged themes will be especially visible when deploying to an environment where slow network connections are expected.</p>
<p>Included in the update is a tool for creating packaged themes.  This tool, codenamed &#8220;Amber&#8221;, allows developers to select skin assets from a theme and pack them into one single binary file.</p>
<p><img src="http://www.ghostwire.com/blog/wp-content/uploads/screenshot.png" alt="&quot;Amber&quot; screenshot" title="&quot;Amber&quot; screenshot" width="596" height="636" class="alignleft size-full wp-image-1276" /></p>
<p>* For simplicity and cross-platform compatibility, &#8220;Amber&#8221; was created as a Flash Player 10 SWF. You can run the SWF either directly using Flash Player 10+, or via a web browser (if the web browser has Flash Player 10 plugin installed).</p>
<p>* &#8220;Amber&#8221; was compiled using the Aspire UI library with the &#8220;xp&#8221; theme embedded in the SWF.</p>
<p><!-- --><br />
<strong>Aspire UI Components</strong><br />
Aspire UI is a library of Actionscript 3.0 (AS3) classes for building flexible and lightweight UI elements in Adobe Flash applications. Key features of the components include easy skinning using PNG image files, automatic tab focus ordering, CSS text styles, and layout management. This is a pure AS3 library with no dependency on the Flex framework. You may experiment with the various features by downloading the <a href="/aspireui/download/">trial version</a> (which is based off an old version of the library).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/aspire-ui-v1-3-update-skin-assets-packing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uiFrame: Drawing Fancy Borders (Frames)</title>
		<link>http://www.ghostwire.com/blog/archives/uiframe-drawing-fancy-borders-frames/</link>
		<comments>http://www.ghostwire.com/blog/archives/uiframe-drawing-fancy-borders-frames/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 06:28:28 +0000</pubDate>
		<dc:creator>sunny</dc:creator>
				<category><![CDATA[Aspire UI]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash Components]]></category>
		<category><![CDATA[Skinning]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://ghostwire.com/blog/?p=522</guid>
		<description><![CDATA[The uiFrame container is used when you want to draw a background or border behind a single child display object. The background/border is rendered using skinning, ie determined by the value of the &#8220;skin&#8221; property. In the themes shipped with the Aspire UI library, the default skin for the uiFrame class is &#8220;Frame&#8221;, ie, pointing [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="/aspireui/docs/usage/uiFrame">uiFrame</a> container is used when you want to draw a background or border behind a single child display object. The background/border is rendered using skinning, ie determined by the value of the &#8220;skin&#8221; property.</p>
<p><span id="more-522"></span><br />
In the themes shipped with the <a href="/aspireui/">Aspire UI library</a>, the default skin for the <code>uiFrame</code> class is &#8220;Frame&#8221;, ie, pointing to a &#8220;Frame.png&#8221; image file in the respective theme folder (by default, the &#8220;assets/skins/default&#8221; folder).</p>
<p><img alt="" src="/aspireui/docs/_media/usage/frame0.png" title="xp theme frame" class="alignnone" width="258" height="166" /><br />
<img alt="" src="/aspireui/docs/_media/usage/frame1.png" title="classic theme frame" class="alignnone" width="258" height="166" /><br />
NOTE: In the screenshots above, the <code>uiFrame</code> container contains a single <code>uiPane</code> instance, which in turn contains the other display objects. <code>uiFrame</code> can contain only a single child.</p>
<p><!-- --><br />
<strong>Fancy Borders</strong><br />
We look at how more fanciful graphics can be used as the background for <code>uiFrame</code> instances.</p>
<p>First, you must have the graphics in PNG bitmap format &#8211; get this done with Adobe Fireworks or any graphics editing program you have that outputs to PNG. Let&#8217;s take for example the following:<br />
<img src="/blog/wp-content/uploads/FancyFrameA.png" alt="FancyFrameA" title="FancyFrameA" width="55" height="55" class="alignleft size-full wp-image-820" /></p>
<p>We store that PNG in our theme folder as &#8220;FancyFrameA.png&#8221;.</p>
<p>Next, we need to tell the Aspire UI skinning framework about the new skin asset &#8211; basically, how it should be scaled. This is defined in the &#8220;rules.xml&#8221; file (again, stored in the theme folder). The following entry is added to the XML:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;FancyFrameA</span> <span style="color: #000066;">edge</span>=<span style="color: #ff0000;">&quot;20&quot;</span> <span style="color: #000066;">prefs</span>=<span style="color: #ff0000;">&quot;padding|15&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

<p>That XML entry tells the <code>com.ghostwire.ui.managers.uiSkins</code> manager that<br />
(i) the FancyFrameA skin asset has a non-scaling edge of &#8220;20&#8243; pixels, for all four sides; and<br />
(ii) any component instance using this skin asset should use a <code>padding</code> property value of &#8220;15&#8243;.</p>
<p>Those numbers are not arbitrarily plucked from the air &#8211; you need to get those numbers, pixel-perfectly, by looking at your PNG image. First, slice the image up into nine regions (in Adobe Fireworks, you can use guide lines):<br />
<img src="/blog/wp-content/uploads/FancyFrameA_edge.png" alt="FancyFrameA_edge" title="FancyFrameA_edge" width="75" height="75" class="alignleft size-full wp-image-822" /></p>
<p>We see from the image above that the skin asset, to avoid distortion, should not scale its top 20 pixels and bottom 20 pixels when scaling vertically, and likewise it should not scale its left 20 pixels and right 20 pixels when scaling horizontally.</p>
<p>If you are familiar with the <code>scale9grid</code> property of the <code>DisplayObject</code> class, you should be at home with this concept.  However, the <code>scale9grid</code> property is defined as a <code>Rectangle</code> (the center rectangle in the 9 regions) while the <code>edge</code> property is defined in the same way the <code>padding</code> and <code>margin</code> properties of Aspire UI component instances are defined &#8211; by declaring the thickness of the &#8220;top&#8221;, &#8220;right&#8221;, &#8220;bottom&#8221; and &#8220;left&#8221; edges respectively (in an <code>Array</code> or a comma-delimited <code>String</code>).</p>
<p>In the above example, the four edges happen to be the same size (so supplying one value is good enough &#8211; applied to all four edges).</p>
<p><!-- --><br />
Let&#8217;s look at another example:<br />
<img src="/blog/wp-content/uploads/FancyFrameB.png" alt="FancyFrameB" title="FancyFrameB" width="108" height="108" class="alignleft size-full wp-image-821" /></p>
<p>With the above image, a different scaling rule will apply:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;FancyFrameB</span> <span style="color: #000066;">edge</span>=<span style="color: #ff0000;">&quot;26,58,5,5&quot;</span> <span style="color: #000066;">prefs</span>=<span style="color: #ff0000;">&quot;padding|31,21,10,10&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

<p><img src="/blog/wp-content/uploads/FancyFrameB_edge.png" alt="FancyFrameB_edge" title="FancyFrameB_edge" width="128" height="128" class="alignleft size-full wp-image-823" /></p>
<p>That XML entry specifies:<br />
(i) the FancyFrameB skin asset has a non-scaling &#8220;top&#8221; edge of 26 pixels, &#8220;right&#8221; edge of 58 pixels, &#8220;bottom&#8221; edge of 5 pixels, and &#8220;left&#8221; edge of 5 pixels; and<br />
(ii) any component instance using this skin asset should use a <code>padding</code> property value of &#8220;31,21,10,10&#8243;, which means 31 pixels top, 21 pixels right, 10 pixels bottom and 10 pixels left.</p>
<p><!-- --><br />
Here is another example, this time with a skin asset that has more than 9 scaling regions:<br />
<img src="/blog/wp-content/uploads/FancyFrameC.png" alt="FancyFrameC" title="FancyFrameC" width="87" height="111" class="alignleft size-full wp-image-825" /></p>
<p>This skin asset has a &#8220;middle&#8221; region that should not be scaled when it is resized horizontally.</p>
<p><img src="/blog/wp-content/uploads/FancyFrameC_edge.png" alt="FancyFrameC_edge" title="FancyFrameC_edge" width="107" height="131" class="alignleft size-full wp-image-826" /></p>
<p>The XML entry will be as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;FancyFrameC</span> <span style="color: #000066;">edge</span>=<span style="color: #ff0000;">&quot;25,5,5,5&quot;</span> <span style="color: #000066;">midX</span>=<span style="color: #ff0000;">&quot;41&quot;</span> <span style="color: #000066;">prefs</span>=<span style="color: #ff0000;">&quot;padding|30,10,10,10&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

<p>The <code>midX</code> property declares that the middle 41 pixels of the image should not be scaled when the skin asset is resized horizontally.</p>
<p><!-- --><br />
<strong>FancyFrameDemo</strong><br />
Here is a live demo (uses three &#8220;special&#8221; frame skins within the same SWF):<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_FancyFrameDemo_1546065767"
			class="flashmovie"
			width="300"
			height="300">
	<param name="movie" value="/aspireui/swf/FancyFrameDemo.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/aspireui/swf/FancyFrameDemo.swf"
			name="fm_FancyFrameDemo_1546065767"
			width="300"
			height="300">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p><strong>FancyFrameDemo Class</strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">containers</span>.<span style="color: #006600;">uiFrame</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">controls</span>.<span style="color: #006600;">uiText</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">managers</span>.<span style="color: #006600;">uiSkins</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> FancyFrameDemo <span style="color: #0066CC;">extends</span> Sprite
	<span style="color: #66cc66;">&#123;</span>
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> FancyFrameDemo<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #808080; font-style: italic;">// ** make sure stage is not null **</span>
			<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span><span style="color: #66cc66;">&#41;</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #b1b100;">else</span> addEventListener<span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ADDED_TO_STAGE</span>, init<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span>evt:Event = <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			removeEventListener<span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ADDED_TO_STAGE</span>, init<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">// ** let assets preload before starting application **</span>
			uiSkins.<span style="color: #006600;">manager</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">INIT</span>, main<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> main<span style="color: #66cc66;">&#40;</span>evt:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #808080; font-style: italic;">// ** main application code **</span>
			<span style="color: #000000; font-weight: bold;">var</span> frameA:uiFrame = <span style="color: #000000; font-weight: bold;">new</span> uiFrame<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			frameA.<span style="color: #006600;">skin</span> = <span style="color: #ff0000;">&quot;FancyFrameA&quot;</span>;
			frameA.<span style="color: #006600;">content</span> = <span style="color: #000000; font-weight: bold;">new</span> uiText<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;The Big Brown Fox Jumps Over The Lazy Dog.&quot;</span><span style="color: #66cc66;">&#41;</span>;
			frameA.<span style="color: #006600;">move</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">5</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			addChild<span style="color: #66cc66;">&#40;</span>frameA<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #000000; font-weight: bold;">var</span> frameB:uiFrame = <span style="color: #000000; font-weight: bold;">new</span> uiFrame<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			frameB.<span style="color: #006600;">skin</span> = <span style="color: #ff0000;">&quot;FancyFrameB&quot;</span>;
			frameB.<span style="color: #006600;">content</span> = <span style="color: #000000; font-weight: bold;">new</span> uiText<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;The Big Brown Fox Jumps Over The Lazy Dog.&quot;</span><span style="color: #66cc66;">&#41;</span>;
			frameB.<span style="color: #006600;">move</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">5</span>, <span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			addChild<span style="color: #66cc66;">&#40;</span>frameB<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #000000; font-weight: bold;">var</span> frameC:uiFrame = <span style="color: #000000; font-weight: bold;">new</span> uiFrame<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			frameC.<span style="color: #006600;">skin</span> = <span style="color: #ff0000;">&quot;FancyFrameC&quot;</span>;
			frameC.<span style="color: #006600;">content</span> = <span style="color: #000000; font-weight: bold;">new</span> uiText<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;The Big Brown Fox Jumps Over The Lazy Dog.&quot;</span><span style="color: #66cc66;">&#41;</span>;
			frameC.<span style="color: #006600;">move</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">5</span>, <span style="color: #cc66cc;">200</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			addChild<span style="color: #66cc66;">&#40;</span>frameC<span style="color: #66cc66;">&#41;</span>;			
		<span style="color: #66cc66;">&#125;</span>		
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><!-- --><br />
<strong>Note</strong><br />
When declaring the value for <code>edge</code> (or the <code>margin</code> or <code>padding</code> properties of <code>uiComponent</code> instances), if you specify one value, that value is applied to all sides; if you supply two values, the first is applied to top and bottom, the second applied to left and right; if you supply three values, the first is applied to top, second to left and right, third to bottom; if you supply four, each side takes their respective values. If you are familiar with CSS, you should recognize that this is the same rule used for setting the <code>margin</code> and <code>padding</code> properties in CSS.</p>
<p>See: <a href="/aspireui/docs/layout/margin-and-padding">http://www.ghostwire.com/aspireui/docs/layout/margin-and-padding</a></p>
<p><!-- --><br />
<strong>Aspire UI Components</strong><br />
Aspire UI is a library of Actionscript 3.0 (AS3) classes for building flexible and lightweight UI elements in Adobe Flash applications. Key features include easy skinning using PNG image files, automatic tab focus ordering, CSS text styles, and layout management. This is a pure AS3 library with no dependency on the Flex framework. You may experiment with the various features by <a href="/aspireui/download/">downloading a trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/uiframe-drawing-fancy-borders-frames/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uiBTabView Example Using &#8220;classic&#8221; Theme</title>
		<link>http://www.ghostwire.com/blog/archives/uibtabview-example-using-classic-theme/</link>
		<comments>http://www.ghostwire.com/blog/archives/uibtabview-example-using-classic-theme/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 01:52:50 +0000</pubDate>
		<dc:creator>sunny</dc:creator>
				<category><![CDATA[Aspire UI]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash Components]]></category>
		<category><![CDATA[Skinning]]></category>
		<category><![CDATA[TabView]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://ghostwire.com/blog/?p=794</guid>
		<description><![CDATA[This demo is the same as that in the previous post uiBTabView Example Using &#8220;xp&#8221; Theme, but we are using a different theme this time: 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_BottomTabViewDemo_388595377"
			class="flashmovie"
			width="300"
			height="200">
	<param name="movie" value="/aspireui/swf/BottomTabViewDemo.swf" />
	<param name="flashvars" value="classic=true" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/aspireui/swf/BottomTabViewDemo.swf"
			name="fm_BottomTabViewDemo_388595377"
			width="300"
			height="200">
		<param name="flashvars" value="classic=true" />
	<!--<![endif]-->
		 
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object> Within the application code, a single line of code determines which theme to use: uiSkins.initialize&#40;theme&#41;; If the uiSkins.initialize() call is omitted, the [...]]]></description>
			<content:encoded><![CDATA[<p>This demo is the same as that in the previous post <a href="/blog/archives/uibtabview-example-using-xp-theme/">uiBTabView Example Using &#8220;xp&#8221; Theme</a>, but we are using a different theme this time:</p>
<p><span id="more-794"></span></p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_BottomTabViewDemo_1691689354"
			class="flashmovie"
			width="300"
			height="200">
	<param name="movie" value="/aspireui/swf/BottomTabViewDemo.swf" />
	<param name="flashvars" value="classic=true" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/aspireui/swf/BottomTabViewDemo.swf"
			name="fm_BottomTabViewDemo_1691689354"
			width="300"
			height="200">
		<param name="flashvars" value="classic=true" />
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Within the application code, a single line of code determines which theme to use:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">uiSkins.<span style="color: #006600;">initialize</span><span style="color: #66cc66;">&#40;</span>theme<span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>If the <code>uiSkins.initialize()</code> call is omitted, the &#8220;default&#8221; theme is used.</p>
<p>See also: <a href="/aspireui/docs/usage/uiskins">uiSkins usage notes</a></p>
<p>For the complete BottomTabViewDemo class code, please see <a href="/blog/archives/uibtabview-example-using-xp-theme/">the previous post</a>.</p>
<p><!-- --><br />
<strong>Aspire UI Components</strong><br />
Aspire UI is a library of Actionscript 3.0 (AS3) classes for building flexible and lightweight UI elements in Adobe Flash applications. Key features of the components include easy skinning using PNG image files, automatic tab focus ordering, CSS text styles, and layout management. This is a pure AS3 library with no dependency on the Flex framework. You may experiment with the various features by <a href="/aspireui/download/">downloading a trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/uibtabview-example-using-classic-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aspire UI theme &#8220;graylic&#8221; released</title>
		<link>http://www.ghostwire.com/blog/archives/aspire-ui-theme-graylic-released/</link>
		<comments>http://www.ghostwire.com/blog/archives/aspire-ui-theme-graylic-released/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 17:43:24 +0000</pubDate>
		<dc:creator>sunny</dc:creator>
				<category><![CDATA[Aspire UI]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash Components]]></category>
		<category><![CDATA[Skinning]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://ghostwire.com/blog/?p=238</guid>
		<description><![CDATA[A new theme has been added to the Aspire UI library. Below is a screen shot of the theme in use: The theme has been included in the distributions (v1.1.2) for both the Aspire UI Lite Edition and Aspire UI Standard Edition. Aspire UI Components Aspire UI is a library of Actionscript 3.0 (AS3) classes [...]]]></description>
			<content:encoded><![CDATA[<p>A new theme has been added to the <a href="http://ghostwire.com/aspireui/">Aspire UI</a> library. Below is a screen shot of the theme in use:</p>
<p><span id="more-238"></span><br />
<img src="http://ghostwire.com/blog/wp-content/uploads/graylictheme.png" alt="screen shot of graylic theme in use" title="screen shot of graylic theme in use" width="560" height="400" class="size-full wp-image-237" /><br />
<em>The theme has been included in the distributions (v1.1.2) for both the Aspire UI Lite Edition and Aspire UI Standard Edition.</em></p>
<p><!-- --><br />
<strong>Aspire UI Components</strong><br />
Aspire UI is a library of Actionscript 3.0 (AS3) classes for building flexible and lightweight UI elements in Adobe Flash applications. Key features include easy skinning using PNG image files, automatic tab focus ordering, CSS text styles, and layout management. This is a pure AS3 library with no dependency on the Flex framework. You may experiment with the various features by downloading a trial version at<br />
<a href="http://ghostwire.com/aspireui/download/">http://ghostwire.com/aspireui/download/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/aspire-ui-theme-graylic-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uiWindow Example using &#8220;classic&#8221; theme</title>
		<link>http://www.ghostwire.com/blog/archives/uiwindow-example-using-classic-theme/</link>
		<comments>http://www.ghostwire.com/blog/archives/uiwindow-example-using-classic-theme/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 01:19:52 +0000</pubDate>
		<dc:creator>sunny</dc:creator>
				<category><![CDATA[Aspire UI]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash Components]]></category>
		<category><![CDATA[Skinning]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Window]]></category>

		<guid isPermaLink="false">http://ghostwire.com/blog/?p=17</guid>
		<description><![CDATA[One of the key features of the Aspire UI library is the ease of skinning which is done via external PNG images. These images are loaded during run-time instead of being compiled into the application SWF. Not only does it make it easy to (re)design component skins, it also makes it easy to try out [...]]]></description>
			<content:encoded><![CDATA[<p>One of the key features of the Aspire UI library is the ease of skinning which is done via external PNG images. These images are loaded during run-time instead of being compiled into the application SWF. Not only does it make it easy to (re)design component skins, it also makes it easy to try out different themes. As long as a theme is designed and developed correctly, an application can switch themes easily.</p>
<p>The following is the exact same SWF shown in the previous <a href="/blog/archives/uiwindow-example/">uiWindow Example</a>, but this time it is rendered using the &#8220;classic&#8221; theme (included in the Aspire UI distribution):</p>
<p><span id="more-17"></span><br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_MyWinExample_1075594663"
			class="flashmovie"
			width="420"
			height="550">
	<param name="movie" value="/aspireui/swf/MyWinExample.swf" />
	<param name="flashvars" value="classic=true" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/aspireui/swf/MyWinExample.swf"
			name="fm_MyWinExample_1075594663"
			width="420"
			height="550">
		<param name="flashvars" value="classic=true" />
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Exact same SWF, just with an additional fvars &#8220;classic=true&#8221; set.</p>
<p>Within the application code, a single line of code determines which theme to use:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">uiSkins.<span style="color: #006600;">initialize</span><span style="color: #66cc66;">&#40;</span>theme<span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>If the uiSkins.initialize() call is omitted, the &#8220;default&#8221; theme is used.</p>
<p>In the example above, we use the following code to detect if the fvars is set and if so use the &#8220;classic&#8221; theme:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">uiSkins.<span style="color: #006600;">initialize</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>loaderInfo.<span style="color: #006600;">parameters</span>.<span style="color: #006600;">classic</span><span style="color: #66cc66;">&#41;</span> ? <span style="color: #ff0000;">&quot;classic&quot;</span> : <span style="color: #ff0000;">&quot;default&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>See also: <a href="/aspireui/docs/usage/uiskins">uiSkins usage notes</a></p>
<p>NOTE: By deliberate design, the Aspire UI framework does not support &#8220;on-the-fly&#8221; theme changing during application run-time. A theme is fixed once the uiSkins.initialize() call is made. This is by deliberate design because, as with most desktop applications, it is better to ask end-users to &#8220;re-start&#8221; the application before effecting a new theme.</p>
<p><!-- --><br />
<strong>Aspire UI Components</strong><br />
Aspire UI is a library of Actionscript 3.0 (AS3) classes for building flexible and lightweight UI elements in Adobe Flash applications. Key features of the components include easy skinning using PNG image files, automatic tab focus ordering, CSS text styles, and layout management. This is a pure AS3 library with no dependency on the Flex framework. You may experiment with the various features by <a href="/aspireui/download/">downloading a trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/uiwindow-example-using-classic-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

