<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Develop an OOP Drop Down Menu Using ActionScript 3.0 Documents</title>
	<atom:link href="http://active.tutsplus.com/tutorials/xml/develop-an-oop-drop-down-menu-using-actionscript-30-documents/feed/" rel="self" type="application/rss+xml" />
	<link>http://active.tutsplus.com/tutorials/xml/develop-an-oop-drop-down-menu-using-actionscript-30-documents/</link>
	<description>Flash, Flex &#38; ActionScript Tutorials</description>
	<lastBuildDate>Sat, 21 Nov 2009 17:18:16 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: André</title>
		<link>http://active.tutsplus.com/tutorials/xml/develop-an-oop-drop-down-menu-using-actionscript-30-documents/#comment-10654</link>
		<dc:creator>André</dc:creator>
		<pubDate>Wed, 04 Nov 2009 11:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=631#comment-10654</guid>
		<description>Sorry, the coment just got away my xml...

but the same structure, just the caption for the first you change for &quot;google&quot; and it´s value change to http://www.google.com and for the second line of the xml file you change the caption to &quot;yahoo&quot; and it´s value to http://www.yahoo.com, and test it with the navigateToURL

I hope you put it working</description>
		<content:encoded><![CDATA[<p>Sorry, the coment just got away my xml&#8230;</p>
<p>but the same structure, just the caption for the first you change for &#8220;google&#8221; and it´s value change to <a href="http://www.google.com" rel="nofollow">http://www.google.com</a> and for the second line of the xml file you change the caption to &#8220;yahoo&#8221; and it´s value to <a href="http://www.yahoo.com" rel="nofollow">http://www.yahoo.com</a>, and test it with the navigateToURL</p>
<p>I hope you put it working</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: André</title>
		<link>http://active.tutsplus.com/tutorials/xml/develop-an-oop-drop-down-menu-using-actionscript-30-documents/#comment-10653</link>
		<dc:creator>André</dc:creator>
		<pubDate>Wed, 04 Nov 2009 11:20:51 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=631#comment-10653</guid>
		<description>Hi, thanks for your words.

You can create a XML file like this:

  
      
      
&lt;/menu

Them, in the Main.as file you have the line:

private function d2Change(e:DropDownMenuEvent):void{    trace(e.caption+&quot; = &quot;+e.value);
}

the e.caption will be the selected item caption, and the e.value will be the selected item value, so instead of using trace you can use for example navigateToURL...

so:

private function d2Change(e:DropDownMenuEvent):void{
navigateToURL(new URLRequest(e.value)); //it will open the selected url from the box
}</description>
		<content:encoded><![CDATA[<p>Hi, thanks for your words.</p>
<p>You can create a XML file like this:</p>
<p>&lt;/menu</p>
<p>Them, in the Main.as file you have the line:</p>
<p>private function d2Change(e:DropDownMenuEvent):void{    trace(e.caption+&quot; = &quot;+e.value);<br />
}</p>
<p>the e.caption will be the selected item caption, and the e.value will be the selected item value, so instead of using trace you can use for example navigateToURL&#8230;</p>
<p>so:</p>
<p>private function d2Change(e:DropDownMenuEvent):void{<br />
navigateToURL(new URLRequest(e.value)); //it will open the selected url from the box<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radiculous</title>
		<link>http://active.tutsplus.com/tutorials/xml/develop-an-oop-drop-down-menu-using-actionscript-30-documents/#comment-10580</link>
		<dc:creator>Radiculous</dc:creator>
		<pubDate>Tue, 03 Nov 2009 06:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=631#comment-10580</guid>
		<description>Hi Andre! 

I&#039;m referencing your tuturial for a project that I am doing, so far everything has been going great (so to say) when I stumbled upon a dead end.. and this is probably the stupidest question asked, 

I am a noob at this so bear with me..

in your XML file, you have a value = &quot;email address&quot; from my understanding you&#039;re able to change the email addy to a  URL link, but how do I access the URL so that when I click on the links, it actually calls upon external links? I know it has something to do with the e.value variable but I can&#039;t seem to get it to work..

Please help.

Thank you.</description>
		<content:encoded><![CDATA[<p>Hi Andre! </p>
<p>I&#8217;m referencing your tuturial for a project that I am doing, so far everything has been going great (so to say) when I stumbled upon a dead end.. and this is probably the stupidest question asked, </p>
<p>I am a noob at this so bear with me..</p>
<p>in your XML file, you have a value = &#8220;email address&#8221; from my understanding you&#8217;re able to change the email addy to a  URL link, but how do I access the URL so that when I click on the links, it actually calls upon external links? I know it has something to do with the e.value variable but I can&#8217;t seem to get it to work..</p>
<p>Please help.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: André</title>
		<link>http://active.tutsplus.com/tutorials/xml/develop-an-oop-drop-down-menu-using-actionscript-30-documents/#comment-7764</link>
		<dc:creator>André</dc:creator>
		<pubDate>Tue, 29 Sep 2009 13:45:13 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=631#comment-7764</guid>
		<description>The txt.text is the main caption, wich will display the SELECTED caption, wich name you would like to change?

var menuItem:MenuItem=new MenuItem(caption,swf,_w,_h);
this is the constructor of the MenuItem Object, the argument caption is a variable the Type of String, you can use whatever you want there, but the porpouse is to use xml to set the values...

If you want to change the value of some button at runtime, you will need to add the folowing at MenuItem Object:

public function set caption(v:String):String{ txt.text=v; }  
public function set value(v:String):String{  _value=v; }

so you can set by using:

var menuItem:MenuItem=new MenuItem(&quot;caption&quot;,&quot;value&quot;,width,height);
menuItem.caption=&quot;new caption&quot;;
menuItem.value=&quot;new value&quot;;

If this is not your difficult please just give me more details for a better help, or you can add in msn: group225300@groupsim.com
it´s a online chat at msn wich you can ask there and people who are online can help you, i am almost full time there</description>
		<content:encoded><![CDATA[<p>The txt.text is the main caption, wich will display the SELECTED caption, wich name you would like to change?</p>
<p>var menuItem:MenuItem=new MenuItem(caption,swf,_w,_h);<br />
this is the constructor of the MenuItem Object, the argument caption is a variable the Type of String, you can use whatever you want there, but the porpouse is to use xml to set the values&#8230;</p>
<p>If you want to change the value of some button at runtime, you will need to add the folowing at MenuItem Object:</p>
<p>public function set caption(v:String):String{ txt.text=v; }<br />
public function set value(v:String):String{  _value=v; }</p>
<p>so you can set by using:</p>
<p>var menuItem:MenuItem=new MenuItem(&#8221;caption&#8221;,&#8221;value&#8221;,width,height);<br />
menuItem.caption=&#8221;new caption&#8221;;<br />
menuItem.value=&#8221;new value&#8221;;</p>
<p>If this is not your difficult please just give me more details for a better help, or you can add in msn: <a href="mailto:group225300@groupsim.com">group225300@groupsim.com</a><br />
it´s a online chat at msn wich you can ask there and people who are online can help you, i am almost full time there</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: André</title>
		<link>http://active.tutsplus.com/tutorials/xml/develop-an-oop-drop-down-menu-using-actionscript-30-documents/#comment-7685</link>
		<dc:creator>André</dc:creator>
		<pubDate>Mon, 28 Sep 2009 13:54:12 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=631#comment-7685</guid>
		<description>Thanks fot yout comment...

Scrollbar usually are not easy to create, but i will try to explain how it could be done here...

Ok, we already have our container, where we put all the MenuItem objects... so we need a scrooll and a mask, we could just mask the container (we already have this), and create a scroolbar, when you put the MenuItem objects inside the container, you check if the container is bigger tham the limit (the mask), if yes, set the scroll bar visibility to true (scrooll.visible=true; for example)... when you drag the scroollbar you can check it´s value, i recomend a scroolbar wich goes from 0 to 1 only, so when you drag and change the value of the scroolbar you set the position of the container, but the mask will not change it´s position, so you get the difference between the container´s height and the mask height and set the container y position  according to the difference and the value of the scroollbar... for example:

if the container.height is 300 and the mask.height is 100, the diference will be 200, so the y position of the container will be -200*scroollbar.value... (scrollbar.value will be a number between 0 and 1)...

Another way is to set the maximum value of the scroollbar, when change the contents of the Container, check the diference, if more tham 0 so set the max value of the scroolbar as the difference between the container.height-mask.height... if this value is less or equal to zero, the scroollbar should be hidden or disabled

Any doubts just ask here :D</description>
		<content:encoded><![CDATA[<p>Thanks fot yout comment&#8230;</p>
<p>Scrollbar usually are not easy to create, but i will try to explain how it could be done here&#8230;</p>
<p>Ok, we already have our container, where we put all the MenuItem objects&#8230; so we need a scrooll and a mask, we could just mask the container (we already have this), and create a scroolbar, when you put the MenuItem objects inside the container, you check if the container is bigger tham the limit (the mask), if yes, set the scroll bar visibility to true (scrooll.visible=true; for example)&#8230; when you drag the scroollbar you can check it´s value, i recomend a scroolbar wich goes from 0 to 1 only, so when you drag and change the value of the scroolbar you set the position of the container, but the mask will not change it´s position, so you get the difference between the container´s height and the mask height and set the container y position  according to the difference and the value of the scroollbar&#8230; for example:</p>
<p>if the container.height is 300 and the mask.height is 100, the diference will be 200, so the y position of the container will be -200*scroollbar.value&#8230; (scrollbar.value will be a number between 0 and 1)&#8230;</p>
<p>Another way is to set the maximum value of the scroollbar, when change the contents of the Container, check the diference, if more tham 0 so set the max value of the scroolbar as the difference between the container.height-mask.height&#8230; if this value is less or equal to zero, the scroollbar should be hidden or disabled</p>
<p>Any doubts just ask here <img src='http://active.tutsplus.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chand</title>
		<link>http://active.tutsplus.com/tutorials/xml/develop-an-oop-drop-down-menu-using-actionscript-30-documents/#comment-7683</link>
		<dc:creator>chand</dc:creator>
		<pubDate>Mon, 28 Sep 2009 13:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=631#comment-7683</guid>
		<description>I need different name for each button which is shown select right now how I can do that, if I try to put the statement 
txt.text=xml.item[i].@caption;
inside the loop then it repeats only one caption on all main buttons.

Please help</description>
		<content:encoded><![CDATA[<p>I need different name for each button which is shown select right now how I can do that, if I try to put the statement<br />
txt.text=xml.item[i].@caption;<br />
inside the loop then it repeats only one caption on all main buttons.</p>
<p>Please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: André</title>
		<link>http://active.tutsplus.com/tutorials/xml/develop-an-oop-drop-down-menu-using-actionscript-30-documents/#comment-7681</link>
		<dc:creator>André</dc:creator>
		<pubDate>Mon, 28 Sep 2009 13:06:25 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=631#comment-7681</guid>
		<description>Really sorry for this, but the source is for CS4, but the tutorial works also for CS3</description>
		<content:encoded><![CDATA[<p>Really sorry for this, but the source is for CS4, but the tutorial works also for CS3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Maxey</title>
		<link>http://active.tutsplus.com/tutorials/xml/develop-an-oop-drop-down-menu-using-actionscript-30-documents/#comment-7673</link>
		<dc:creator>Chris Maxey</dc:creator>
		<pubDate>Mon, 28 Sep 2009 11:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=631#comment-7673</guid>
		<description>Great menu options. Just what I have been looking for. Thanks.

One small question, as I have very little with regards to ActionScript.
Was wondering how easy would it be to implement a scroll bar at the side of the drop down if you have lots of options?

Kind regards,

Chris</description>
		<content:encoded><![CDATA[<p>Great menu options. Just what I have been looking for. Thanks.</p>
<p>One small question, as I have very little with regards to ActionScript.<br />
Was wondering how easy would it be to implement a scroll bar at the side of the drop down if you have lots of options?</p>
<p>Kind regards,</p>
<p>Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Create Custom Filters Using the Pixel Bender Toolkit &#124; MisrIT Reader (Beta)</title>
		<link>http://active.tutsplus.com/tutorials/xml/develop-an-oop-drop-down-menu-using-actionscript-30-documents/#comment-7515</link>
		<dc:creator>Create Custom Filters Using the Pixel Bender Toolkit &#124; MisrIT Reader (Beta)</dc:creator>
		<pubDate>Thu, 24 Sep 2009 20:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=631#comment-7515</guid>
		<description>[...] use&amp;#32&amp;#121&amp;#111ur classpath, if you dont have one and want to cre&amp;#97&amp;#116&amp;#101 one, open my previous tutorial and follow Step 1.&amp;#32&amp;#73&amp;#102 you don&#8217;t want a classpath, use the same folder of your .fla [...]</description>
		<content:encoded><![CDATA[<p>[...] use&amp;#32&amp;#121&amp;#111ur classpath, if you dont have one and want to cre&amp;#97&amp;#116&amp;#101 one, open my previous tutorial and follow Step 1.&amp;#32&amp;#73&amp;#102 you don&#8217;t want a classpath, use the same folder of your .fla [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Create Custom Filters Using the Pixel Bender Toolkit &#124; Downrex</title>
		<link>http://active.tutsplus.com/tutorials/xml/develop-an-oop-drop-down-menu-using-actionscript-30-documents/#comment-7502</link>
		<dc:creator>Create Custom Filters Using the Pixel Bender Toolkit &#124; Downrex</dc:creator>
		<pubDate>Thu, 24 Sep 2009 12:22:09 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=631#comment-7502</guid>
		<description>[...] a classpath for Flash, use your classpath, if you dont have one and want to create one, open my previous tutorial and follow Step 1. If you don&#8217;t want a classpath, use the same folder of your .fla document. [...]</description>
		<content:encoded><![CDATA[<p>[...] a classpath for Flash, use your classpath, if you dont have one and want to create one, open my previous tutorial and follow Step 1. If you don&#8217;t want a classpath, use the same folder of your .fla document. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!--
This site's performance optimized by W3 Total Cache:

W3 Total Cache improves the user experience of your blog by caching
frequent operations, reducing the weight of various files and providing
transparent content delivery network integration.

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 2/7 queries in 0.006 seconds using memcached

Served from: psdtutsplus.com @ 2009-11-21 13:14:56 -->