<?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>DanDev.com &#187; as3</title> <atom:link href="http://www.dandev.com/tag/as3/feed/" rel="self" type="application/rss+xml" /><link>http://www.dandev.com</link> <description>Daniel&#039;s Dev Blog..ish</description> <lastBuildDate>Sat, 28 Jan 2012 18:06:25 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Add a click event to a BitmapImage in Adobe Flex/AIR</title><link>http://www.dandev.com/software/add-a-click-event-to-a-bitmapimage-in-adobe-flexair/</link> <comments>http://www.dandev.com/software/add-a-click-event-to-a-bitmapimage-in-adobe-flexair/#comments</comments> <pubDate>Wed, 05 Oct 2011 04:00:29 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[Flex]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[actionscript]]></category> <category><![CDATA[adobe]]></category> <category><![CDATA[AIR]]></category> <category><![CDATA[as3]]></category> <category><![CDATA[bitmapimage]]></category> <category><![CDATA[Click]]></category> <category><![CDATA[graphic]]></category> <category><![CDATA[MouseEvent]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=215</guid> <description><![CDATA[You may have noticed MouseEvent.Click is not an event available to be set on the BitmapImage Spark primitive(in the current Flex SDK). But, there is a simple workaround for this. All you have to do is place it inside of a Graphic primitive wrapper. In MXML it would look like this: 1 2 3 4 [...]]]></description> <content:encoded><![CDATA[<p>You may have noticed MouseEvent.Click is not an event available to be set on the BitmapImage Spark primitive(in the current Flex SDK). But, there is a simple workaround for this. All you have to do is place it inside of a Graphic primitive wrapper. In MXML it would look like this:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td
class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>s:Application xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span>
			   xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span>
			   xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span><span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>fx:Script<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;
&nbsp;
			protected <span style="color: #000000; font-weight: bold;">function</span> graphic1_clickHandler<span style="color: #66cc66;">&#40;</span>event:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
				Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Nope!'</span>, <span style="color: #ff0000;">'Click Event'</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>fx:Script<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>fx:Declarations<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span>-- Place non-visual elements <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">g</span>., services, value objects<span style="color: #66cc66;">&#41;</span> here --<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>fx:Declarations<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>s:HGroup id=<span style="color: #ff0000;">&quot;container&quot;</span><span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;</span>s:Graphic click=<span style="color: #ff0000;">&quot;graphic1_clickHandler(event)&quot;</span><span style="color: #66cc66;">&gt;</span>
			<span style="color: #66cc66;">&lt;</span>s:BitmapImage source=<span style="color: #ff0000;">&quot;path/to/image.jpg&quot;</span>
						   smooth=<span style="color: #ff0000;">&quot;true&quot;</span>
						   smoothingQuality=<span style="color: #ff0000;">&quot;high&quot;</span> <span style="color: #66cc66;">/&gt;</span>
		<span style="color: #66cc66;">&lt;/</span>s:Graphic<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>s:HGroup<span style="color: #66cc66;">&gt;</span>
&nbsp;
<span style="color: #66cc66;">&lt;/</span>s:Application<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div><p><a
href="http://www.dandev.com/samples/BitmapImage%20Click%20Event.fxp">Flex Builder Project</a></p><p>In AS3 it looks like this:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
</pre></td><td
class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>s:Application xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span>
			   xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span>
			   xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span>
			   creationComplete=<span style="color: #ff0000;">&quot;application1_creationCompleteHandler(event)&quot;</span><span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>fx:Script<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">FlexEvent</span>;
&nbsp;
			<span style="color: #0066CC;">import</span> spark.<span style="color: #006600;">primitives</span>.<span style="color: #006600;">BitmapImage</span>;
			<span style="color: #0066CC;">import</span> spark.<span style="color: #006600;">primitives</span>.<span style="color: #006600;">Graphic</span>;
&nbsp;
			protected <span style="color: #000000; font-weight: bold;">function</span> application1_creationCompleteHandler<span style="color: #66cc66;">&#40;</span>event:FlexEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">var</span> myBI:BitmapImage = <span style="color: #000000; font-weight: bold;">new</span> BitmapImage<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
				myBI.<span style="color: #006600;">source</span> = <span style="color: #ff0000;">'path/to/image.jpg'</span>;
				myBI.<span style="color: #006600;">smooth</span> = <span style="color: #000000; font-weight: bold;">true</span>;
				myBI.<span style="color: #006600;">smoothingQuality</span> = <span style="color: #ff0000;">'high'</span>;
&nbsp;
				<span style="color: #000000; font-weight: bold;">var</span> myG:Graphic = <span style="color: #000000; font-weight: bold;">new</span> Graphic<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
				myG.<span style="color: #006600;">addElement</span><span style="color: #66cc66;">&#40;</span>myBI<span style="color: #66cc66;">&#41;</span>;
				myG.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, graphic1_clickHandler<span style="color: #66cc66;">&#41;</span>;
&nbsp;
				container.<span style="color: #006600;">addElement</span><span style="color: #66cc66;">&#40;</span>myG<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
			protected <span style="color: #000000; font-weight: bold;">function</span> graphic1_clickHandler<span style="color: #66cc66;">&#40;</span>event:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
			<span style="color: #66cc66;">&#123;</span>
				Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Nope!'</span>, <span style="color: #ff0000;">'Click Event'</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>fx:Script<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>fx:Declarations<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span>-- Place non-visual elements <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">g</span>., services, value objects<span style="color: #66cc66;">&#41;</span> here --<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>fx:Declarations<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>s:HGroup id=<span style="color: #ff0000;">&quot;container&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>s:HGroup<span style="color: #66cc66;">&gt;</span>
&nbsp;
<span style="color: #66cc66;">&lt;/</span>s:Application<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div><p><a
href="http://www.dandev.com/samples/BitmapImage%20Click%20Event%20AS.fxp">Flex Builder Project</a></p> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/software/add-a-click-event-to-a-bitmapimage-in-adobe-flexair/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Flex Tip: Accessing your AS functions/properties from imported classes</title><link>http://www.dandev.com/flex/flex-tip-accessing-your-as-functionsproperties-from-imported-classes/</link> <comments>http://www.dandev.com/flex/flex-tip-accessing-your-as-functionsproperties-from-imported-classes/#comments</comments> <pubDate>Mon, 25 May 2009 22:54:10 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[Flex]]></category> <category><![CDATA[actionscript]]></category> <category><![CDATA[application]]></category> <category><![CDATA[as3]]></category> <category><![CDATA[class]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=151</guid> <description><![CDATA[Every once in a while you might run across a case where you need to access a property or method from the parent application, and you don&#8217;t have the ability to pass the value you need to the class. Or, for example, you&#8217;re debugging and you don&#8217;t want to write a bunch of code that [...]]]></description> <content:encoded><![CDATA[<p>Every once in a while you might run across a case where you need to access a property or method from the parent application, and you don&#8217;t have the ability to pass the value you need to the class. Or, for example, you&#8217;re debugging and you don&#8217;t want to write a bunch of code that you&#8217;ll have to remove later just to test the value of a variable.</p><p>So, with that said the process is fairly simple. The following is a hypothetical example of a class you have imported into your application:</p><div
class="wp_syntax"><div
class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> com<span style="color: #000066; font-weight: bold;">.</span>example<span style="color: #000066; font-weight: bold;">.</span>scope
<span style="color: #000000;">&#123;</span>
    <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> myVar<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #990000;">&quot;This is NOT the value we're trying to get&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
    <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> scopeExample
    <span style="color: #000000;">&#123;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> scopeExample<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #009900; font-style: italic;">// Flex 4</span>
            <span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>core<span style="color: #000066; font-weight: bold;">.</span>FlexGlobals<span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// make &quot;FlexGlobals&quot; available in the current scope</span>
            <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>FlexGlobals<span style="color: #000066; font-weight: bold;">.</span>topLevelApplication<span style="color: #000066; font-weight: bold;">.</span>myVar<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// outputs the value of myVar in the main application</span>
&nbsp;
            <span style="color: #009900; font-style: italic;">// Flex 3</span>
            <span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>core<span style="color: #000066; font-weight: bold;">.</span>Application<span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// make &quot;Application&quot; available in the current scope</span>
            <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>Application<span style="color: #000066; font-weight: bold;">.</span>application<span style="color: #000066; font-weight: bold;">.</span>myVar<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// outputs the value of myVar in the main application</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div><p>You could also use:</p><div
class="wp_syntax"><div
class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>parentDocument<span style="color: #000066; font-weight: bold;">.</span>myVar<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// if the component is a child of the main application</span></pre></div></div><p>I ran across a post on Holly Schinsky&#8217;s blog the other day that had good descriptions of the various scope keywords, and a few tips. All of which is good knowledge to possess, so <a
title="Flex/AIR Application Scope Tips" href="http://devgirl.wordpress.com/2009/01/27/flexair-application-scope-tips/" target="_blank">check it out</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/flex/flex-tip-accessing-your-as-functionsproperties-from-imported-classes/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Flex/AIR Tips: Keyboard Codes</title><link>http://www.dandev.com/flex/flex-tips-keyboard-codes/</link> <comments>http://www.dandev.com/flex/flex-tips-keyboard-codes/#comments</comments> <pubDate>Tue, 10 Mar 2009 09:40:22 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[Flex]]></category> <category><![CDATA[actionscript]]></category> <category><![CDATA[as3]]></category> <category><![CDATA[charcode]]></category> <category><![CDATA[flash]]></category> <category><![CDATA[keyboard]]></category> <category><![CDATA[keyboardevent]]></category> <category><![CDATA[keycode]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=132</guid> <description><![CDATA[If you ever have the urge to capture a specific key pressed in Flex or AS3 in general, there is an excellent list of the keycodes, and costants you can use to represent them in your code here: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ui/Keyboard.html You can use them statically(without instantiating an object) like so: trace&#40;Keyboard.TAB&#41;; // 9]]></description> <content:encoded><![CDATA[<p>If you ever have the urge to capture a specific key pressed in Flex or AS3 in general, there is an excellent list of the keycodes, and costants you can use to represent them in your code here: <a
href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ui/Keyboard.html" target="_blank">http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ui/Keyboard.html</a></p><p><img
class="alignnone size-medium wp-image-133" title="3-10-2009-5-36-24-am" src="http://www.dandev.com/wp-content/uploads/2009/03/3-10-2009-5-36-24-am-300x300.png" alt="3-10-2009-5-36-24-am" width="300" height="300" /></p><p>You can use them statically(without instantiating an object) like so:</p><div
style="background-color:#222"><div
class="wp_syntax"><div
class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Keyboard</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">TAB</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// 9</span></pre></div></div></div> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/flex/flex-tips-keyboard-codes/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Flex: getType() schmettype</title><link>http://www.dandev.com/flex/flex-gettype-schmettype/</link> <comments>http://www.dandev.com/flex/flex-gettype-schmettype/#comments</comments> <pubDate>Sun, 08 Mar 2009 00:31:54 +0000</pubDate> <dc:creator>Daniel</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[Flex]]></category> <category><![CDATA[actionscript]]></category> <category><![CDATA[Alert]]></category> <category><![CDATA[as3]]></category> <category><![CDATA[describeType()]]></category> <category><![CDATA[flash]]></category> <category><![CDATA[getType()]]></category> <guid
isPermaLink="false">http://www.dandev.com/?p=112</guid> <description><![CDATA[I&#8217;ve started dabbling in Flex recently, and something that was apparent(and annoying at times) to me  early on was it&#8217;s strongly-typed nature. Not type as in a keyboard, but variable types. Flex cares very much whether your variable is an Array, or ArrayCollection as it&#8217;s knowledge of types is key to it&#8217;s processing. This is [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;ve started dabbling in Flex recently, and something that was apparent(and annoying at times) to me  early on was it&#8217;s strongly-typed nature. Not type as in a keyboard, but variable types. Flex cares very much whether your variable is an Array, or ArrayCollection as it&#8217;s knowledge of types is key to it&#8217;s processing. This is quite the converse to a language like PHP, which is loosely-typed to say the least.</p><p>Anyway, I came upon a case where I needed to know the type a variable was so I could cast it properly(and for debugging), and I found that Flex doesn&#8217;t have a function to simply return a variable&#8217;s type. There is describeType(), but this returns an XML object with all of the information about the variable &#8212; not just the type. Plus you have to import the proper class to use it. So, I threw together this function quickly that will perform the import, and return/alert the type as needed:</p><div
style="background-color: #222"><div
class="wp_syntax"><div
class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> getType<span style="color: #000000;">&#40;</span><span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">:*,</span> alert<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.utils</span><span style="color: #000066; font-weight: bold;">.*;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">description</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XML</span> = <span style="color: #004993;">describeType</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">value</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>alert<span style="color: #000000;">&#41;</span>
		Alert<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">show</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">description</span><span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>@<span style="color: #004993;">name</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">return</span> <span style="color: #004993;">description</span><span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>@<span style="color: #004993;">name</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div></div><p>I hope someone else can find it useful. <img
src='http://www.dandev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://www.dandev.com/flex/flex-gettype-schmettype/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> </channel> </rss>
