<?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>Flash, Flex and ActionScript tutorials - flashadvanced</title>
	<atom:link href="http://flashadvanced.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://flashadvanced.com</link>
	<description>Become an advanced actionscript developer</description>
	<lastBuildDate>Sun, 30 Jan 2011 21:10:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adobe Flex ComboBox DataProvider</title>
		<link>http://flashadvanced.com/adobe-flex-combobox-dataprovider/</link>
		<comments>http://flashadvanced.com/adobe-flex-combobox-dataprovider/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 21:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[adobe flex]]></category>
		<category><![CDATA[Bindable]]></category>
		<category><![CDATA[combobox]]></category>
		<category><![CDATA[DataProvider]]></category>

		<guid isPermaLink="false">http://flashadvanced.com/?p=496</guid>
		<description><![CDATA[In this simple example I will show you how to use the ComboBox component in Flex. We will create an ArrayCollection with items which we will use as a dataProvider for the comboBox. Below you can see the working code for this example. &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"&#62; &#60;mx:Script&#62; &#60;![CDATA[ import mx.collections.ArrayCollection; [Bindable] private [...]]]></description>
			<content:encoded><![CDATA[<p>In this simple example I will show you how to use the ComboBox component in Flex. We will create an ArrayCollection with items which we will use as a <strong>dataProvider</strong> for the comboBox. Below you can see the working code for this example.</p>
<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"&gt;

 &lt;mx:Script&gt;
 &lt;![CDATA[
 import mx.collections.ArrayCollection;

 [Bindable]
 private var comboBoxDataProvider:ArrayCollection = new ArrayCollection(["One", "Two", "Three", "Four"]);

 ]]&gt;
 &lt;/mx:Script&gt;

 &lt;mx:ComboBox id="comboBox" dataProvider="{comboBoxDataProvider}" /&gt;

&lt;/mx:Application&gt;
</code></pre>
<p>As you see, we created the ComboBox component and as a dataProvider we set the &#8216;comboBoxDataProvider&#8217; variable. It is from type ArrayCollection and it is declared as Bindable. The [Bindable] Meta tag in Flex allows you to map an object or value to a property. It is also know as data binding. Next, in the constructor of our ArrayCollection we create an array of strings: </p>
<pre><code>new ArrayCollection(["One", "Two", "Three", "Four"]);</code></pre>
<p>This is enough. Now we have a comboBox component with 4 elements.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashadvanced.com/adobe-flex-combobox-dataprovider/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Disable Scrollbars in Flex Containers</title>
		<link>http://flashadvanced.com/disable-scrollbars-in-flex-containers/</link>
		<comments>http://flashadvanced.com/disable-scrollbars-in-flex-containers/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 11:38:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[horizontalscrollpolicy]]></category>
		<category><![CDATA[verticallscrollpolicy]]></category>

		<guid isPermaLink="false">http://flashadvanced.com/?p=486</guid>
		<description><![CDATA[If you create a container component in your Flex application and then create a child of the container which size is bigger than its parent, scrollbars will appear on the bottom and the right sides of the container. If you want to disable the appearance of the scrollbars you should use the verticalScrollPolicy property for [...]]]></description>
			<content:encoded><![CDATA[<p>If you create a container component in your Flex application and then create a child of the container which size is bigger than its parent, scrollbars will appear on the bottom and the right sides of the container. If you want to disable the appearance of the scrollbars you should use the verticalScrollPolicy property for the vertical scroll bar and the horizontalScrollPolicy for the the scroll bar shown on the bottom side of your container. When set to &#8220;off&#8221; these properties will hide the scrollbars. In the following code example we will create a VBox component in which we will add a button. The button component will have a little bit bigger size than its parent. By default, Flex will add scroll bars but we will prevent this functionality.</p>
<p><code><br />
&lt;mx:VBox id="myVBox"<br />
  verticalScrollPolicy="off" horizontalScrollPolicy="off"<br />
width="200"<br />
height="200"&gt;<br />
&lt;mx:Button id="myButton"<br />
label="My Button"<br />
width="210" height="210"/&gt;<br />
&lt;/mx:VBox&gt;</p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://flashadvanced.com/disable-scrollbars-in-flex-containers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up the default browser in Flex Builder</title>
		<link>http://flashadvanced.com/setting-up-default-browser-in-flex-builder/</link>
		<comments>http://flashadvanced.com/setting-up-default-browser-in-flex-builder/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 20:30:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[adobe flex]]></category>
		<category><![CDATA[flex builder]]></category>
		<category><![CDATA[flex default browser]]></category>

		<guid isPermaLink="false">http://flashadvanced.com/?p=479</guid>
		<description><![CDATA[If you want to change the default browser in Flex, you can do this in Flex Builder by going to Window -> Preferences. Then expand General and choose Web browser. In the &#8216;External Web browsers&#8217; list choose the browser you prefer &#8211; in my case Firefox. This is it. Enjoy!]]></description>
			<content:encoded><![CDATA[<p>If you want to change the <strong>default browser in Flex</strong>, you can do this in Flex Builder by going to Window -> Preferences. Then expand General and choose Web browser. In the &#8216;External Web browsers&#8217; list choose the browser you prefer &#8211; in my case Firefox.</p>
<p><img src="http://flashadvanced.com/wp-content/upload/flex_builder/browser.jpg" alt="Setting default browser in Flex Builder" /></p>
<p>This is it. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://flashadvanced.com/setting-up-default-browser-in-flex-builder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the default background color in Flex 3</title>
		<link>http://flashadvanced.com/changing-the-default-background-color-in-flex-3/</link>
		<comments>http://flashadvanced.com/changing-the-default-background-color-in-flex-3/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 19:14:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[adobe flex]]></category>
		<category><![CDATA[default background color]]></category>
		<category><![CDATA[flex builder]]></category>

		<guid isPermaLink="false">http://flashadvanced.com/?p=473</guid>
		<description><![CDATA[The default blue background color in Flex 3, set while the application is loading, is pretty annoying in my opinion. You can change it easily by setting the default background color property in Flex Builder. You can do this by selecting the project, then right click and choose Properties. Go to Flex Compiler and then [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong>default blue background</strong> color in Flex 3, set while the application is loading, is pretty annoying in my opinion. You can change it easily by setting the default background color property in Flex Builder. You can do this by selecting the project, then right click and choose Properties. Go to Flex Compiler and then in the &#8216;Additional compiler arguments&#8217; type this:<br />
-default-background-color #ffffff</p>
<p><img src="http://flashadvanced.com/wp-content/upload/flex_bg_color/flex_compiler.jpg" alt="Default background color in Flex 3" /></p>
<p>This will change the color of the application while it is loading to white.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashadvanced.com/changing-the-default-background-color-in-flex-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Flex Tips: Canvas rounded corners</title>
		<link>http://flashadvanced.com/adobe-flex-tips-canvas-rounded-corners/</link>
		<comments>http://flashadvanced.com/adobe-flex-tips-canvas-rounded-corners/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 13:15:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[adobe flex]]></category>
		<category><![CDATA[cornerRadius]]></category>
		<category><![CDATA[rounded corners]]></category>

		<guid isPermaLink="false">http://flashadvanced.com/?p=460</guid>
		<description><![CDATA[A strange thing in Adobe Flex is that setting up the corner radius to a Canvas component with the cornerRadius property is not enough. Solution The thing you should do in order to have the corners of the Canvas rounded is to set the borderStyle property to solid. So, at the end you will have [...]]]></description>
			<content:encoded><![CDATA[<p>A strange thing in <strong>Adobe Flex</strong> is that setting up the corner radius to a <strong>Canvas component</strong> with the <strong>cornerRadius</strong> property is not enough.</p>
<p><span style="color: green;"><strong>Solution</strong></span></p>
<p>The thing you should do in order to have the corners of the Canvas rounded is to set the <strong>borderStyle</strong> property to <strong>solid</strong>.<br />
So, at the end you will have something like this:</p>
<p><code><br />
&lt;mx:Canvas width="400" height="300"<br />
borderStyle="solid" cornerRadius="10" /&gt;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://flashadvanced.com/adobe-flex-tips-canvas-rounded-corners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Glowing Button Effect</title>
		<link>http://flashadvanced.com/glowing-button-effect/</link>
		<comments>http://flashadvanced.com/glowing-button-effect/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 13:44:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript 3.0 Basics]]></category>
		<category><![CDATA[animated buttons]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[glow filter]]></category>

		<guid isPermaLink="false">http://flashadvanced.com/?p=426</guid>
		<description><![CDATA[In this quick tutorial I am going to show you how to create a nice glowing button effect using Flash and few lines of AS3 code in order to control the button. Let&#8217;s get started 1. Open a new Flash document and save it under &#8220;GlowingButton.fla&#8221;. Set the color to #000000 and the frame rate [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://flashadvanced.com/?p=426"><br />
<img src="http://flashadvanced.com/wp-content/upload/glowing/glowing.jpg" /><br />
</a></p>
<p>In this <strong>quick tutorial</strong> I am going to show you how to create a nice glowing button effect using Flash and few lines of AS3 code in order to control the button. Let&#8217;s get started</p>
<p><span id="more-426"></span></p>
<p><span style="color: #ff0000;">1.</span> Open a new Flash document and save it under &#8220;GlowingButton.fla&#8221;. Set the color to #000000 and the frame rate to 24 fps.</p>
<p><span style="color: #ff0000;">2.</span> Take the rectangle tool and from the properties panel set the values like this:</p>
<p><img src="http://flashadvanced.com/wp-content/upload/glowing/properties.jpg" /></p>
<p>Choose #FFCC00 for color and draw a rectangle with size 120px wide by 30px high. Now take the Selection tool and select the half of the rectangle like this:</p>
<p><img src="http://flashadvanced.com/wp-content/upload/glowing/selection.jpg" /></p>
<p>Change the color of the selected half to #FDD535. The button background is now ready. Nice effect, right?</p>
<p><span style="color: #ff0000;">3.</span> Select the whole rectangle and convert it to Movie Clip symbol. Type &#8220;golden_btn&#8221; for instance name. Now double click the movie clip to go inside its timeline. Once again, select the whole rectangle and convert it to Movie Clip symbol.</p>
<p><span style="color: #ff0000;">4.</span> Click on frame 20 and convert it to <strong>Keyframe</strong>. Now, on frame 20, select the movie clip, then open the Filters Panel and select the <strong>Glow</strong> filter like this:</p>
<p><img src="http://flashadvanced.com/wp-content/upload/glowing/filter.jpg" /></p>
<p>For filter color choose #FFCC00.<br />
Now select a frame between frame 1 and 20 and create <strong>Motion Tween</strong>. From the properties panel set the tween <strong>easing</strong> to 100. Select the whole 20 frames and then by right clicking select Copy Frames:</p>
<p><img src="http://flashadvanced.com/wp-content/upload/glowing/copy.jpg" /></p>
<p>Select frame <strong>21</strong> and by right clicking select Paste Frames.<br />
Now select the copied frames and again by right clicking select Reverse Frames.</p>
<p><span style="color: #ff0000;">5.</span> Create new layer called &#8220;text&#8221;. Take the text tool and type something. For font choose Tahoma, bold, size 18, color #990000. Convert the text field to movie clip. Click on frame 20 and convert it to Keyframe.<br />
When you are still on frame 20, select the text field movie clip, go to Properties Panel and under Color choose <strong>Tint</strong>. For color choose #000000:</p>
<p><img src="http://flashadvanced.com/wp-content/upload/glowing/tint.jpg" /></p>
<p>Click somewhere between frame 1 and frame 20 and create Motion Tween. Repeat the step where you copy, paste and reverse the frames.</p>
<p><span style="color: #ff0000;">6.</span> Create a new layer called &#8220;actions&#8221; and convert frame 20 and 40 to Keyframes. On frames 1, 20, 40 open the actions panel and type &#8220;<strong>stop();</strong>&#8220;.</p>
<p>Our glowing button is ready! All we have to do is to go back to the main Scene and type some actionscript.</p>
<p><span style="color: #ff0000;">7.</span> On the main Scene, create a new layer called &#8220;actions&#8221; and open the Actions Panel.</p>
<pre><code>
//setting the button properties
golden_btn.mouseChildren = false;
golden_btn.buttonMode = true;

//adding event listeners to our button
golden_btn.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
golden_btn.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
golden_btn.addEventListener(MouseEvent.CLICK, mouseClickHandler);

function mouseOverHandler(e:MouseEvent):void{
	golden_btn.gotoAndPlay(2);
}

function mouseOutHandler(e:MouseEvent):void{
	golden_btn.gotoAndPlay(21);
}

function mouseClickHandler(e:MouseEvent):void{
	//navigating to URL on click
	navigateToURL(new URLRequest("http://flashadvanced.com"));
}
</pre>
<p></code></p>
<p>That's all!</p>
<h4>Here is the final result:</h4>
<p><object width="150" height="60"><param name="movie" value="http://flashadvanced.com/wp-content/upload/glowing/GlowingButton.swf"><embed src="http://flashadvanced.com/wp-content/upload/glowing/GlowingButton.swf" width="150" height="60"></embed></object></p>
<p style="text-align: left; margin: 40px 40px 40px 0;"><a href="http://www.flashadvanced.com/wp-content/upload/glowing/glowing.zip"><img src="http://flashadvanced.com/wp-content/upload/other/download.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://flashadvanced.com/glowing-button-effect/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

