<?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; Flash Components</title>
	<atom:link href="http://www.ghostwire.com/blog/archives/tag/flash-components/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghostwire.com/blog</link>
	<description>Flash UI Components</description>
	<lastBuildDate>Thu, 22 Apr 2010 03:33:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>uiImage: Loading Resources From Foreign Domains</title>
		<link>http://www.ghostwire.com/blog/archives/uiimage-loading-resources-from-foreign-domains/</link>
		<comments>http://www.ghostwire.com/blog/archives/uiimage-loading-resources-from-foreign-domains/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 03:33:15 +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[Flash Player Bug]]></category>
		<category><![CDATA[Loader]]></category>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1842</guid>
		<description><![CDATA[The uiImage component is used to display an image (JPG/PNG/GIF).  The path to the image is specified by the source property.  By default, the uiImage object will attempt to load resources from the &#8220;assets/images/&#8221; folder (path is relative to the application SWF).  To load from a different path, for example the folder [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.ghostwire.com/aspireui/docs/usage/uiimage">uiImage</a> component is used to display an image (JPG/PNG/GIF).  The path to the image is specified by the <code>source</code> property.  By default, the <code>uiImage</code> object will attempt to load resources from the &#8220;assets/images/&#8221; folder (path is relative to the application SWF).  To load from a different path, for example the folder &#8220;resources/images/&#8221;, prefix the source with “url:”, example “url:resources/images/garden.jpg”.</p>
<p>In order to load images from a different domain, the Flash Player will need to read a crossdomain.xml file from the foreign domain (and this file must grant permission to your domain to access the required resources). Typically, you would expect to need to specify a <code>checkPolicyFile</code> property somewhere.  In the case of the <code>uiImage</code> component, there is no <code>checkPolicyFile</code> property to set because this would be unnecessary.</p>
<p><span id="more-1842"></span>In order to load an image from a foreign domain, you would specify the source with a &#8220;url:http://&#8221; prefix.  This prefix is sufficient to let the component know that you are loading from a foreign domain (you would omit the http:// otherwise).</p>
<p>Internally, the <code>uiImage</code> component sets the <code>checkPolicyFile</code> property automatically, as necessary.  The rationale here is that, since the flag must always be <code>TRUE</code> for Flash applications deployed over the web (<code>sandboxType</code> is <code>Security.REMOTE</code>) whenever the Flash Player attempts to load resources from foreign domains, we might as well have the component set this automatically rather than having to expose a superfluous API.  To be very clear, the <code>checkPolicyFile</code> flag is <code>FALSE</code> by default &#8211; the policy file is checked only if the application is deployed over the web (ie application&#8217;s <code>sandboxType</code> is <code>Security.REMOTE</code>), because checking the policy file is unnecessary when deployed on the desktop.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/uiimage-loading-resources-from-foreign-domains/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uiFrame: ActionScript 3.0 GroupBox</title>
		<link>http://www.ghostwire.com/blog/archives/uiframe-actionscript-3-0-groupbox/</link>
		<comments>http://www.ghostwire.com/blog/archives/uiframe-actionscript-3-0-groupbox/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 09:02:05 +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>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1811</guid>
		<description><![CDATA[It is often overlooked, but the uiFrame component in the Aspire UI toolkit essentially has the same utility as the GroupBox in WPF (Windows Presentation Foundation).
A GroupBox displays a border/frame around a group of controls, with or without a caption/title.  This is typically done to provide visual feedback to end-users that a collection of [...]]]></description>
			<content:encoded><![CDATA[<p>It is often overlooked, but the <a href="http://www.ghostwire.com/aspireui/docs/usage/uiframe">uiFrame</a> component in the <a href="http://www.ghostwire.com/aspireui/">Aspire UI</a> toolkit essentially has the same utility as the GroupBox in WPF (Windows Presentation Foundation).</p>
<p>A GroupBox displays a border/frame around a group of controls, with or without a caption/title.  This is typically done to provide visual feedback to end-users that a collection of controls on a form is logically grouped.</p>
<p>When using the Aspire UI toolkit in ActionScript 3.0 projects, you can use the uiFrame component for the same results.</p>
<p><span id="more-1811"></span></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// ActionScript 3.0</span>
<span style="color: #000000; font-weight: bold;">var</span> fruit0:uiCheckBox = <span style="color: #000000; font-weight: bold;">new</span> uiCheckBox<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Apple&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> fruit1:uiCheckBox = <span style="color: #000000; font-weight: bold;">new</span> uiCheckBox<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Banana&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> fruit2:uiCheckBox = <span style="color: #000000; font-weight: bold;">new</span> uiCheckBox<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Orange&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> fruitsBox:uiBox    = <span style="color: #000000; font-weight: bold;">new</span> uiBox<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
fruitsBox.<span style="color: #006600;">vertical</span>    = <span style="color: #000000; font-weight: bold;">true</span>;
fruitsBox.<span style="color: #006600;">spacing</span>    = <span style="color: #cc66cc;">4</span>;
&nbsp;
fruitsBox.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> uiText<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;You can choose one or more fruits!&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
fruitsBox.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>fruit0<span style="color: #66cc66;">&#41;</span>;
fruitsBox.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>fruit1<span style="color: #66cc66;">&#41;</span>;
fruitsBox.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>fruit2<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> frm:uiFrame = <span style="color: #000000; font-weight: bold;">new</span> uiFrame<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
frm.<span style="color: #006600;">content</span> = fruitsBox;
frm.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;
frm.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">10</span>;
&nbsp;
frm.<span style="color: #006600;">title</span> = <span style="color: #000000; font-weight: bold;">new</span> uiText<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Fruits&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
addChild<span style="color: #66cc66;">&#40;</span>frm<span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p><img src="http://www.ghostwire.com/blog/wp-content/uploads/uiframe_xp.png" alt="" title="uiframe_xp" width="250" height="150" class="alignleft size-full wp-image-1813" /></p>
<p>Using the &#8220;graylic&#8221; theme, the result would be as follows:</p>
<p><img src="http://www.ghostwire.com/blog/wp-content/uploads/uiframe_graylic.png" alt="" title="uiframe_graylic" width="223" height="153" class="alignleft size-full wp-image-1814" /></p>
<p>Notice that the caption (title) is left aligned by default.  You can adjust the alignment by specifying the <code>alignX</code> property:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">frm.<span style="color: #006600;">title</span> = <span style="color: #000000; font-weight: bold;">new</span> uiText<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Fruits&quot;</span><span style="color: #66cc66;">&#41;</span>;
frm.<span style="color: #006600;">title</span>.<span style="color: #006600;">alignX</span> = <span style="color: #0066CC;">ALIGN</span>.<span style="color: #006600;">CENTER</span>;</pre></div></div>

<p><img src="http://www.ghostwire.com/blog/wp-content/uploads/uiframe_xp_center.png" alt="" title="uiframe_xp_center" width="250" height="150" class="alignleft size-full wp-image-1815" /></p>
<p>Using the &#8220;classic&#8221; theme with background set to gray, the result would be as follows:</p>
<p><img src="http://www.ghostwire.com/blog/wp-content/uploads/uiframe_classic.png" alt="" title="uiframe_classic" width="250" height="135" class="alignleft size-full wp-image-1817" /></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.</p>
<p>This is a pure AS3 library with no dependency on the Flex framework.</p>
<p>For more information, please <a href="http://www.ghostwire.com/aspireui/">click here</a>.</p>
<p>You may experiment with the various features by <a href="http://www.ghostwire.com/aspireui/download">downloading the trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/uiframe-actionscript-3-0-groupbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uiColorPicker: Customizing The Colors Palette</title>
		<link>http://www.ghostwire.com/blog/archives/uicolorpicker-customizing-the-colors-palette/</link>
		<comments>http://www.ghostwire.com/blog/archives/uicolorpicker-customizing-the-colors-palette/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 07:08:06 +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>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1784</guid>
		<description><![CDATA[In this post, we look at how the colors palette/swatch of the uiColorPicker control can be customized.
By default, the component uses the following set of colors:


We can define an alternative colors array for the popup palette:

private static const COLORS_CONTINUOUS_TONE:Array = &#91;
0xCCFFFF, 0xCCCCFF, 0xCC99FF, 0xCC66FF, 0xCC33FF, 0xCC00FF, 0xFF00FF, 0xFF33FF, 0xFF66FF, 0xFF99FF, 0xFFCCFF, 0xFFFFFF,
0xCCFFCC, 0xCCCCCC, 0xCC99CC, 0xCC66CC, [...]]]></description>
			<content:encoded><![CDATA[<p>In this post, we look at how the colors palette/swatch of the <a href="http://www.ghostwire.com/aspireui/docs/usage/uicolorpicker">uiColorPicker</a> control can be customized.</p>
<p><span id="more-1784"></span>By default, the component uses the following set of colors:<br />
<img src="http://www.ghostwire.com/blog/wp-content/uploads/uicolorpicker_dropshadow.png" alt="" title="uicolorpicker_dropshadow" width="295" height="250" class="alignleft size-full wp-image-1778" /></p>
<p><!-- --><br />
We can define an alternative <code>colors</code> array for the popup palette:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">private</span> <span style="color: #0066CC;">static</span> const COLORS_CONTINUOUS_TONE:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span>
0xCCFFFF, 0xCCCCFF, 0xCC99FF, 0xCC66FF, 0xCC33FF, 0xCC00FF, 0xFF00FF, 0xFF33FF, 0xFF66FF, 0xFF99FF, 0xFFCCFF, 0xFFFFFF,
0xCCFFCC, 0xCCCCCC, 0xCC99CC, 0xCC66CC, 0xCC33CC, 0xCC00CC, 0xFF00CC, 0xFF33CC, 0xFF66CC, 0xFF99CC, 0xFFCCCC, 0xFFFFCC,
0xCCFF99, 0xCCCC99, 0xCC9999, 0xCC6699, 0xCC3399, 0xCC0099, 0xFF0099, 0xFF3399, 0xFF6699, 0xFF9999, 0xFFCC99, 0xFFFF99,
0xCCFF66, 0xCCCC66, 0xCC9966, 0xCC6666, 0xCC3366, 0xCC0066, 0xFF0066, 0xFF3366, 0xFF6666, 0xFF9966, 0xFFCC66, 0xFFFF66,
0xCCFF33, 0xCCCC33, 0xCC9933, 0xCC6633, 0xCC3333, 0xCC0033, 0xFF0033, 0xFF3333, 0xFF6633, 0xFF9933, 0xFFCC33, 0xFFFF33,
0xCCFF00, 0xCCCC00, 0xCC9900, 0xCC6600, 0xCC3300, 0xCC0000, 0xFF0000, 0xFF3300, 0xFF6600, 0xFF9900, 0xFFCC00, 0xFFFF00,
0x66FF00, 0x66CC00, 0x669900, 0x666600, 0x663300, 0x660000, 0x990000, 0x993300, 0x996600, 0x999900, 0x99CC00, 0x99FF00,
0x66FF33, 0x66CC33, 0x669933, 0x666633, 0x663333, 0x660033, 0x990033, 0x993333, 0x996633, 0x999933, 0x99CC33, 0x99FF33,
0x66FF66, 0x66CC66, 0x669966, 0x666666, 0x663366, 0x660066, 0x990066, 0x993366, 0x996666, 0x999966, 0x99CC66, 0x99FF66,
0x66FF99, 0x66CC99, 0x669999, 0x666699, 0x663399, 0x660099, 0x990099, 0x993399, 0x996699, 0x999999, 0x99CC99, 0x99FF99,
0x66FFCC, 0x66CCCC, 0x6699CC, 0x6666CC, 0x6633CC, 0x6600CC, 0x9900CC, 0x9933CC, 0x9966CC, 0x9999CC, 0x99CCCC, 0x99FFCC,
0x66FFFF, 0x66CCFF, 0x6699FF, 0x6666FF, 0x6633FF, 0x6600FF, 0x9900FF, 0x9933FF, 0x9966FF, 0x9999FF, 0x99CCFF, 0x99FFFF,
0x00FFFF, 0x00CCFF, 0x0099FF, 0x0066FF, 0x0033FF, 0x0000FF, 0x3300FF, 0x3333FF, 0x3366FF, 0x3399FF, 0x33CCFF, 0x33FFFF,
0x00FFCC, 0x00CCCC, 0x0099CC, 0x0066CC, 0x0033CC, 0x0000CC, 0x3300CC, 0x3333CC, 0x3366CC, 0x3399CC, 0x33CCCC, 0x33FFCC,
0x00FF99, 0x00CC99, 0x009999, 0x006699, 0x003399, 0x000099, 0x330099, 0x333399, 0x336699, 0x339999, 0x33CC99, 0x33FF99,
0x00FF33, 0x00CC33, 0x009933, 0x006633, 0x003333, 0x000033, 0x330033, 0x333333, 0x336633, 0x339933, 0x33CC33, 0x33FF33,
0x00FF00, 0x00CC00, 0x009900, 0x006600, 0x003300, 0x000000, 0x330000, 0x333300, 0x336600, 0x339900, 0x33CC00, 0x33FF00,
<span style="color: #66cc66;">&#93;</span>;</pre></div></div>

<p><!-- --><br />
And then assign the <code>colors</code> array as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> myColorPicker:uiColorPicker = <span style="color: #000000; font-weight: bold;">new</span> uiColorPicker<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
myColorPicker.<span style="color: #006600;">colors</span> = COLORS_CONTINUOUS_TONE;</pre></div></div>

<p><a href="http://www.ghostwire.com/blog/wp-content/uploads/uicolorpicker_continuous_tone_palette.png"><img src="http://www.ghostwire.com/blog/wp-content/uploads/uicolorpicker_continuous_tone_palette.png" alt="" title="uicolorpicker_continuous_tone_palette" width="250" height="230" class="alignleft size-full wp-image-1785" /></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.</p>
<p>This is a pure AS3 library with no dependency on the Flex framework.</p>
<p>For more information, please <a href="http://www.ghostwire.com/aspireui/">click here</a>.</p>
<p>You may experiment with the various features by <a href="http://www.ghostwire.com/aspireui/download">downloading the trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/uicolorpicker-customizing-the-colors-palette/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uiColorPicker: Adding Drop Shadow To Popup Palette</title>
		<link>http://www.ghostwire.com/blog/archives/uicolorpicker-adding-drop-shadow-to-popup-palette/</link>
		<comments>http://www.ghostwire.com/blog/archives/uicolorpicker-adding-drop-shadow-to-popup-palette/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 08:00:11 +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>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1776</guid>
		<description><![CDATA[The uiColorPicker control displays a single rectangular button that brings up a palette of pre-defined set of colors (also known as a color swatch).  By default, this popup does not cast a drop shadow, as shown in the screenshot below:

In this post, we look at how to get the popup to cast a drop [...]]]></description>
			<content:encoded><![CDATA[<p>The uiColorPicker control displays a single rectangular button that brings up a palette of pre-defined set of colors (also known as a color swatch).  By default, this popup does not cast a drop shadow, as shown in the screenshot below:<br />
<img src="http://www.ghostwire.com/blog/wp-content/uploads/uicolopicker_example.png" alt="" title="uicolopicker_example" width="295" height="230" class="alignleft size-full wp-image-1767" /></p>
<p>In this post, we look at how to get the popup to cast a drop shadow, by simply adding some directives in the &#8220;rules.xml&#8221; of the theme you are using.</p>
<p><span id="more-1776"></span>The uiColorPicker component uses three skin assets:<br />
ColorPicker.png<br />
ColorPickerFrame.png<br />
ColorPickerInput.png</p>
<p>The ColorPicker.png is the image that will be used to render the rectangular button.  This skin asset is mandatory.  If it is missing, the component will not show.</p>
<p>The ColorPickerInput.png is optional, affecting the look of the text input field in the popup palette.  This skin is usually pointed to the same skin asset used by the uiTextInput component:</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;ColorPickerInput</span> <span style="color: #000066;">clone</span>=<span style="color: #ff0000;">&quot;TextInput&quot;</span> <span style="color: #000066;">prefs</span>=<span style="color: #ff0000;">&quot;width|74|focusPadding|1|padding|0&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

<p>The ColorPickerFrame.png is the image that will be used to render the background of the popup palette.  You can specify styling directives for the popup, such as padding, in the &#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;ColorPickerFrame</span> <span style="color: #000066;">edge</span>=<span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #000066;">prefs</span>=<span style="color: #ff0000;">&quot;padding|3&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

<p>Therefore, to get the popup to cast a drop shadow, all you need to do is to add the directive as such:</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;ColorPickerFrame</span> <span style="color: #000066;">edge</span>=<span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #000066;">prefs</span>=<span style="color: #ff0000;">&quot;padding|3|background|shadow,0x000000&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

<p>The result will be as shown below:<br />
<img src="http://www.ghostwire.com/blog/wp-content/uploads/uicolorpicker_dropshadow.png" alt="" title="uicolorpicker_dropshadow" width="295" height="250" class="alignleft size-full wp-image-1778" /></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.</p>
<p>This is a pure AS3 library with no dependency on the Flex framework.</p>
<p>For more information, please <a href="http://www.ghostwire.com/aspireui/">click here</a>.</p>
<p>You may experiment with the various features by <a href="http://www.ghostwire.com/aspireui/download">downloading the trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/uicolorpicker-adding-drop-shadow-to-popup-palette/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aspire UI Components Update v1.4</title>
		<link>http://www.ghostwire.com/blog/archives/aspire-ui-components-update-v1-4/</link>
		<comments>http://www.ghostwire.com/blog/archives/aspire-ui-components-update-v1-4/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 11:25:54 +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>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1766</guid>
		<description><![CDATA[The Aspire UI Components toolkit has been updated to version 1.4 (changelog).
With this update, the uiColorPicker component has been added to the Standard Edition.

In addition, we have streamlined component instance alignment with the following:
(i) new childAlignX and childAlignY properties help to define a default alignment for child objects contained within the same container.
(ii) a new [...]]]></description>
			<content:encoded><![CDATA[<p>The Aspire UI Components toolkit has been updated to version 1.4 (<a href="/aspireui/docs/changelog">changelog</a>).</p>
<p><span id="more-1766"></span>With this update, the <a href="http://www.ghostwire.com/aspireui/docs/usage/uicolorpicker">uiColorPicker</a> component has been added to the Standard Edition.<br />
<img src="http://www.ghostwire.com/blog/wp-content/uploads/uicolopicker_example.png" alt="" title="uicolopicker_example" width="295" height="230" class="alignleft size-full wp-image-1767" /></p>
<p>In addition, we have streamlined component instance alignment with the following:</p>
<p>(i) new <code>childAlignX</code> and <code>childAlignY</code> properties help to define a default alignment for child objects contained within the same container.</p>
<p>(ii) a new qualified value for <code>alignX</code> and <code>alignY</code> properties &#8211; setting the property to <code>ALIGN.FILL</code> will indicate that the object is expected to fill its whole allocated space (horizontally for <code>alignX</code> or vertically for <code>alignY</code>), and therefore alignment does not apply.</p>
<p>(iii) as a result of (ii), it is no longer necessary to define <code>fillX</code> and <code>fillY</code> properties (since <code>ALIGN.FILL</code> and other alignment values should be mutually exclusive).</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.</p>
<p>This is a pure AS3 library with no dependency on the Flex framework.</p>
<p>For more information, please <a href="http://www.ghostwire.com/aspireui/">click here</a>.</p>
<p>You may experiment with the various features by <a href="http://www.ghostwire.com/aspireui/download">downloading the trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/aspire-ui-components-update-v1-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aspire UI Components (Flash ActionScript 3.0) Site License</title>
		<link>http://www.ghostwire.com/blog/archives/aspire-ui-components-flash-actionscript-3-0-site-license/</link>
		<comments>http://www.ghostwire.com/blog/archives/aspire-ui-components-flash-actionscript-3-0-site-license/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 07:32:35 +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>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1762</guid>
		<description><![CDATA[We have added a new licensing option for the Aspire UI Components (Flash ActionScript 3.0) toolkit.  For teams with more than 15 developers, this option translates to significant savings.

A Site License grants all developers located at the same site, working for the same organization, the rights to use the toolkit, royalty-free. It doesn&#8217;t matter [...]]]></description>
			<content:encoded><![CDATA[<p>We have added a new licensing option for the <a href="http://www.ghostwire.com/aspireui/">Aspire UI Components</a> (Flash ActionScript 3.0) toolkit.  For teams with more than 15 developers, this option translates to significant savings.</p>
<p><span id="more-1762"></span><br />
A Site License grants all developers located at the same site, working for the same organization, the rights to use the toolkit, royalty-free. It doesn&#8217;t matter how many developers work at the site, it doesn&#8217;t matter how many projects the developers will be using the toolkit in, and it doesn&#8217;t matter how many copies of your applications get distributed.</p>
<p>A &#8220;Site&#8221; is defined as a single location with the same mailing address. In other words, the developers must work in the same country, city, building, and on the same floor. This entitlement extends to temporary and freelance developers working at the site, as long as they remained engaged by your organization.</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.</p>
<p>This is a pure AS3 library with no dependency on the Flex framework.</p>
<p>For more information, please <a href="http://www.ghostwire.com/aspireui/">click here</a>.</p>
<p>You may experiment with the various features by <a href="http://www.ghostwire.com/aspireui/download">downloading the trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/aspire-ui-components-flash-actionscript-3-0-site-license/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Developer Showcase] ActiveCaptain &#8211; The Interactive Cruising Guidebook</title>
		<link>http://www.ghostwire.com/blog/archives/developer-showcase-activecaptain-the-interactive-cruising-guidebook/</link>
		<comments>http://www.ghostwire.com/blog/archives/developer-showcase-activecaptain-the-interactive-cruising-guidebook/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 06:25:34 +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>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1746</guid>
		<description><![CDATA[The developers at ActiveCaptain have been using the Aspire UI Components toolkit for over a year now.  In this article, we take a quick look at their latest Flash web application, an interactive cruising guide.

ActiveCaptain
The application allows boaters to share their knowledge and experience.  Registered members can provide information about fuel pricing, slip [...]]]></description>
			<content:encoded><![CDATA[<p>The developers at <a href="http://www.activecaptain.com">ActiveCaptain</a> have been using the <a href="http://www.ghostwire.com/aspireui/">Aspire UI Components</a> toolkit for over a year now.  In this article, we take a quick look at their latest Flash web application, an interactive cruising guide.</p>
<p><span id="more-1746"></span><br />
<strong>ActiveCaptain</strong><br />
The application allows boaters to share their knowledge and experience.  Registered members can provide information about fuel pricing, slip fees, a favorite anchorage, or some local knowledge, as well as read marina reviews written by other Captains, write reviews, add points of interest, or correct inaccurate information.</p>
<p>Let&#8217;s take a look at some screen shots of the application:</p>
<p><em>pressing and holding down the mouse on the map brings up a contextual popup menu</em><br />
<a href="http://www.ghostwire.com/blog/wp-content/uploads/activecaptain0.png"><img src="http://www.ghostwire.com/blog/wp-content/uploads/activecaptain0.png" alt="" title="activecaptain0" width="670" height="420" class="alignleft size-full wp-image-1747" /></a></p>
<p><em>a resizable modal dialog with some common UI controls</em><br />
<a href="http://www.ghostwire.com/blog/wp-content/uploads/activecaptain1.png"><img src="http://www.ghostwire.com/blog/wp-content/uploads/activecaptain1.png" alt="" title="activecaptain1" width="670" height="460" class="alignleft size-full wp-image-1749" /></a></p>
<p><em>searching for marinas</em><br />
<a href="http://www.ghostwire.com/blog/wp-content/uploads/activecaptain2.png"><img src="http://www.ghostwire.com/blog/wp-content/uploads/activecaptain2.png" alt="" title="activecaptain2" width="670" height="460" class="alignleft size-full wp-image-1751" /></a></p>
<p><!-- --><br />
<strong>Testimonial</strong><br />
The following is what the developers at ActiveCaptain have to say about the Aspire UI Components toolkit:</p>
<p><em>At ActiveCaptain (<a href="http://www.activecaptain.com">www.activecaptain.com</a>) we started re-writing our Interactive Cruising Guidebook over a year ago.  Early on, we decided that there was only one integrated UI toolkit for ActionScript 3 that had enough capability and quality &#8211; and that was the Aspire UI Components. We loved the way it looked and the consistent way of accessing them made coding easy to learn.</p>
<p>Although we started out with simple user-interface needs, it quickly grew to complex scrolling lists with custom multi-line list items, edit-in-place dialogs, tabbed-cards with user-interfaces, and many forms to display.</p>
<p>We&#8217;re exceedingly happy with the results.  There are no coding workarounds or funny kludgy things needed to make it all work.  It&#8217;s all consistent and clean and works very, very well.</p>
<p>All Flash apps would benefit from the Aspire UI Components toolkit.</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 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="http://www.ghostwire.com/aspireui/download">downloading the trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/developer-showcase-activecaptain-the-interactive-cruising-guidebook/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using AspireUI Components with MDM Zinc 3.0</title>
		<link>http://www.ghostwire.com/blog/archives/using-aspireui-components-with-mdm-zinc-3-0/</link>
		<comments>http://www.ghostwire.com/blog/archives/using-aspireui-components-with-mdm-zinc-3-0/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 22:51:42 +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[Desktop]]></category>
		<category><![CDATA[Flash Components]]></category>
		<category><![CDATA[MDM]]></category>
		<category><![CDATA[Zinc]]></category>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1714</guid>
		<description><![CDATA[MDM Zinc™ 3.0 is a feature-rich Rapid Application Development Tool for turning SWFs into stunning commercial cross-platform desktop applications, screensavers, widgets, CD roms, DVD’s, kiosks and more. The AspireUI AS3 library uses PNG image files for component skinning, and this ease of skinning is a good fit for Zinc™ 3.0 projects, especially if you would [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.multidmedia.com">MDM Zinc™ 3.0</a> is a feature-rich Rapid Application Development Tool for turning SWFs into stunning commercial cross-platform desktop applications, screensavers, widgets, CD roms, DVD’s, kiosks and more. The <a href="http://www.ghostwire.com/aspireui/">AspireUI AS3 library</a> uses PNG image files for component skinning, and this ease of skinning is a good fit for Zinc™ 3.0 projects, especially if you would like to create applications that look like native desktop applications.  The toolkit currently comes with four component themes &#8211; &#8220;classic&#8221;, &#8220;xp&#8221;, &#8220;vista&#8221; and &#8220;graylic&#8221;.  The first three aforementioned themes are Windows OS lookalike themes.  </p>
<p>In this short tutorial, we will look at how you can use the AspireUI library in Zinc™ 3.0 projects, and how you can easily swap component themes by simply changing one line of code.</p>
<p><span id="more-1714"></span></p>
<p><strong>mdm.Application.path</strong><br />
When using Zinc™ 3.0, it is important to remember that relative paths to external assets do not work well.  To ensure that your Zinc™ 3.0 compiled applications work as expected, you should always prefix paths with <code>mdm.Application.path</code> so that the application knows where to look for external assets (to be loaded during run-time).</p>
<p>When using the AspireUI library in a normal Flash AS3 project, we would usually initialize the uiSkins manager as follows:</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: #ff0000;">&quot;default&quot;</span>, <span style="color: #ff0000;">&quot;assets/skins/&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// use &quot;default&quot; theme folder from the relative path &quot;assets/skins/&quot;</span></pre></div></div>

<p>When coding for Zinc™ 3.0 projects, the following will be used:</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: #ff0000;">&quot;default&quot;</span>, mdm.<span style="color: #006600;">Application</span>.<span style="color: #006600;">path</span> + <span style="color: #ff0000;">&quot;assets/skins/&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>Likewise, in order for the uiImage class to work properly in Zinc™ 3.0 applications, the following path must be set:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">uiImage.<span style="color: #006600;">path</span> = mdm.<span style="color: #006600;">Application</span>.<span style="color: #006600;">path</span> + <span style="color: #ff0000;">&quot;assets/images/&quot;</span>;</pre></div></div>

<p>That will make it possible for <code>uiImage</code> instances to load from the &#8220;assets/images/&#8221; folder.  For example, the following will create a uiImage instance with image source loaded from &#8220;assets/images/icon.png&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> imgIcon:uiImage = <span style="color: #000000; font-weight: bold;">new</span> uiImage<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;icon.png&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p><strong>MyZincApp Class</strong><br />
Let&#8217;s now look at a simple <code>MyZincApp</code> class:</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> 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>;
	<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;">uiScrollPane</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;">uiWindow</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;">uiImage</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">enums</span>.<span style="color: #006600;">WINDOW</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;">uiCursors</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>;
	<span style="color: #0066CC;">import</span> mdm.<span style="color: #66cc66;">*</span>;
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> MyZincApp <span style="color: #0066CC;">extends</span> Sprite 
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> MyZincApp<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> 
		<span style="color: #66cc66;">&#123;</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>
		<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;">// in order to work with Zinc, we need to specify</span>
			<span style="color: #808080; font-style: italic;">// correct paths to external assets</span>
			uiSkins.<span style="color: #006600;">initialize</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;default&quot;</span>, mdm.<span style="color: #006600;">Application</span>.<span style="color: #006600;">path</span> + <span style="color: #ff0000;">&quot;assets/skins/&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			uiImage.<span style="color: #006600;">path</span> = mdm.<span style="color: #006600;">Application</span>.<span style="color: #006600;">path</span> + <span style="color: #ff0000;">&quot;assets/images/&quot;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">// listen to uiSkins manager to get notified when</span>
			<span style="color: #808080; font-style: italic;">// theme assets have been fully loaded</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>
		<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;">// ** initializes uiCursors class **</span>
			uiCursors.<span style="color: #006600;">initialize</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">// ** initializes uiWindow class **</span>
			uiWindow.<span style="color: #006600;">initialize</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">// ** img window **</span>
			<span style="color: #000000; font-weight: bold;">var</span> img:uiImage = <span style="color: #000000; font-weight: bold;">new</span> uiImage<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;flower.jpg&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #000000; font-weight: bold;">var</span> imgsp:uiScrollPane	= <span style="color: #000000; font-weight: bold;">new</span> uiScrollPane<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			imgsp.<span style="color: #006600;">fillX</span> = <span style="color: #000000; font-weight: bold;">true</span>;
			imgsp.<span style="color: #006600;">fillY</span> = <span style="color: #000000; font-weight: bold;">true</span>;
			imgsp.<span style="color: #006600;">content</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>img<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #000000; font-weight: bold;">var</span> imgWin:uiWindow	= <span style="color: #000000; font-weight: bold;">new</span> uiWindow<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			imgWin.<span style="color: #006600;">title</span>		= <span style="color: #ff0000;">&quot;flower.jpg&quot;</span>;
			imgWin.<span style="color: #006600;">content</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>imgsp<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #808080; font-style: italic;">// ** end img window **</span>
&nbsp;
			imgWin.<span style="color: #006600;">open</span><span style="color: #66cc66;">&#40;</span><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>After compiling the above class, you will get a SWF that you can then run through the Zinc Builder software to create a desktop application (for Windows, Mac or Linux).  If you run the compiled Zinc application, you will see something like the following:<br />
<a href="http://www.ghostwire.com/blog/wp-content/uploads/MyZincAppXP.png"><img src="http://www.ghostwire.com/blog/wp-content/uploads/MyZincAppXP.png" alt="" title="MyZincAppXP" width="606" height="260" class="alignleft size-full wp-image-1716" /></a></p>
<p><strong>Changing Theme I</strong><br />
Now, let&#8217;s see how we can easily change the component theme.  The themes are stored in their respective folders in the &#8220;assets/skins/&#8221; folder.  By changing one line of code, we can switch to using another 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: #ff0000;">&quot;vista&quot;</span>, mdm.<span style="color: #006600;">Application</span>.<span style="color: #006600;">path</span> + <span style="color: #ff0000;">&quot;assets/skins/&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>With that, we will now use the &#8220;vista&#8221; theme instead of the default &#8220;xp&#8221; theme.  After re-compiling the SWF and running the new SWF through the Zinc Builder software, we will see something like the following:<br />
<a href="http://www.ghostwire.com/blog/wp-content/uploads/MyZincAppVista.png"><img src="http://www.ghostwire.com/blog/wp-content/uploads/MyZincAppVista.png" alt="" title="MyZincAppVista" width="606" height="260" class="alignleft size-full wp-image-1717" /></a></p>
<p><strong>Changing Theme II</strong><br />
Next, we look at how we can change the theme without even changing any code, without re-compiling the SWF, and without re-building the Zinc application. We do this by swapping the contents of the &#8220;default&#8221; folder with the contents from the &#8220;classic&#8221; folder, and then run the Zinc application without re-building.  You will see something like the following:<br />
<a href="http://www.ghostwire.com/blog/wp-content/uploads/MyZincAppClassic.png"><img src="http://www.ghostwire.com/blog/wp-content/uploads/MyZincAppClassic.png" alt="" title="MyZincAppClassic" width="606" height="260" class="alignleft size-full wp-image-1718" /></a></p>
<p>The above is possible because by default, the AspireUI library uses run-time skin assets (and is what we are using in this introductory tutorial).  This means that by changing the PNG image assets in the &#8220;assets/skins/default&#8221; folder, you will change the look of your Zinc application.  The library also supports the option to embed the skin assets within the SWF, if so desired.  There is also a tool to package all the skin assets within a folder into one compressed binary file.</p>
<p><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="http://www.ghostwire.com/aspireui/download">downloading the trial version</a>.</p>
<p><strong>MDM Zinc™ 3.0</strong><br />
MDM Zinc™ 3.0, available for Windows and Mac OSX, is the only development tool in its class to offer X-Platform, X-Compile™ to Windows, Mac OSX &#038; Linux Systems. Rapid Application Development for Adobe® Flash® and Flex®.  You may download MDM Zinc™ 3.0 Builder for Windows &#038; Mac OSX at:<br />
<a href="http://www.multidmedia.com/software/zinc/download/">http://www.multidmedia.com/software/zinc/download/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/using-aspireui-components-with-mdm-zinc-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aspire UI Components Trial Version Updated</title>
		<link>http://www.ghostwire.com/blog/archives/aspire-ui-components-trial-version-updated/</link>
		<comments>http://www.ghostwire.com/blog/archives/aspire-ui-components-trial-version-updated/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 16:07:43 +0000</pubDate>
		<dc:creator>sunny</dc:creator>
				<category><![CDATA[Aspire UI]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Components]]></category>

		<guid isPermaLink="false">http://www.ghostwire.com/blog/?p=1669</guid>
		<description><![CDATA[The Trial Version of the Aspire UI library has been updated to v1.3.4 and is now available for download at
http://ghostwire.com/aspireui/download/
* The trial version is strictly for evaluation purposes.
* Compiled SWFs will stop working after a few minutes.
* This trial version is based off Aspire UI Standard Edition v1.3.4.
* Includes the assets for &#8220;classic&#8221;, &#8220;graylic&#8221; and [...]]]></description>
			<content:encoded><![CDATA[<p>The Trial Version of the Aspire UI library has been updated to v1.3.4 and is now available for download at<br />
<a href="http://ghostwire.com/aspireui/download/">http://ghostwire.com/aspireui/download/</a></p>
<p>* The trial version is strictly for evaluation purposes.</p>
<p>* Compiled SWFs will stop working after a few minutes.</p>
<p>* This trial version is based off <a href="http://ghostwire.com/aspireui/docs/changelog">Aspire UI Standard Edition v1.3.4</a>.</p>
<p>* Includes the assets for &#8220;classic&#8221;, &#8220;graylic&#8221; and &#8220;xp&#8221; themes.</p>
<p>* Aspire UI is an ActionScript 3.0 library &#8211; compiled SWFs must target Flash Player 9+.</p>
<p><span id="more-1669"></span><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>The AS3 API Reference is available at<br />
<a href="http://ghostwire.com/aspireui/docs/api/">http://ghostwire.com/aspireui/docs/api/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/aspire-ui-components-trial-version-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
	</channel>
</rss>
