<?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/"
	>

<channel>
	<title>Web App Solution Blog &#187; Uncategorized</title>
	<atom:link href="http://www.webappsolution.com/wordpress/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webappsolution.com/wordpress</link>
	<description>When you're in need of an appsolution</description>
	<pubDate>Thu, 05 Apr 2012 19:39:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WASI @ MAX!</title>
		<link>http://www.webappsolution.com/wordpress/2010/10/22/wasi-max/</link>
		<comments>http://www.webappsolution.com/wordpress/2010/10/22/wasi-max/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 16:43:43 +0000</pubDate>
		<dc:creator>brianr</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[adobe-max]]></category>

		<category><![CDATA[contact]]></category>

		<guid isPermaLink="false">http://www.webappsolution.com/wordpress/?p=888</guid>
		<description><![CDATA[Hit us up at MAX!
Brian Riley
617-480-0432
brianr@webappsolution.com
AIM/GIM/MSN/YIM/Twitter/Skype: wasibrianr
Tim McGee
508-566-6711
tim@webappsolution.com
AIM/GIM/YIM/MSN cheftimbob
Skype wasitim
Joe Seiter
201.981.2347
joes@webappsolution.com
YIM: seiter
AIM/GIM/Skype: wasijoes
 Tweet This Post]]></description>
			<content:encoded><![CDATA[<p>Hit us up at MAX!</p>
<p><strong>Brian Riley</strong><br />
617-480-0432<br />
brianr@webappsolution.com<br />
AIM/GIM/MSN/YIM/Twitter/Skype: wasibrianr</p>
<p><strong>Tim McGee</strong><br />
508-566-6711<br />
tim@webappsolution.com<br />
AIM/GIM/YIM/MSN cheftimbob<br />
Skype wasitim</p>
<p><strong>Joe Seiter</strong><br />
201.981.2347<br />
joes@webappsolution.com<br />
YIM: seiter<br />
AIM/GIM/Skype: wasijoes</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=WASI+%40+MAX%21+http://wwmna.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.webappsolution.com/wordpress/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=WASI+%40+MAX%21+http://wwmna.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.webappsolution.com/wordpress/2010/10/22/wasi-max/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dynamic Classes Gotcha!</title>
		<link>http://www.webappsolution.com/wordpress/2010/04/06/dynamic-classes-gotcha/</link>
		<comments>http://www.webappsolution.com/wordpress/2010/04/06/dynamic-classes-gotcha/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 19:30:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[flex]]></category>

		<category><![CDATA[flex builder]]></category>

		<category><![CDATA[class]]></category>

		<category><![CDATA[dynamic]]></category>

		<category><![CDATA[reflection]]></category>

		<guid isPermaLink="false">http://www.webappsolution.com/wordpress/?p=758</guid>
		<description><![CDATA[We recently started using dynamic classes to assist with unknown data formats. It&#8217;s a pretty powerful feature of the language. It comes with a price in that you don&#8217;t get strong typing nor intellisense on the dynamic properties. But, there are cases where it can serve great purpose.
One of the things you have to keep [...]]]></description>
			<content:encoded><![CDATA[<p>We recently started using dynamic classes to assist with unknown data formats. It&#8217;s a pretty powerful feature of the language. It comes with a price in that you don&#8217;t get strong typing nor intellisense on the dynamic properties. But, there are cases where it can serve great purpose.</p>
<p>One of the things you have to keep in mind though is that since the class is dynamic, the compiler can&#8217;t provide the linkage for you to do something like:</p>
<pre class="brush: as3;">
var someValue:SomeClass = someObject as SomeDynamicClass;
</pre>
<p>The compiler won&#8217;t complain, but, you will as you scratch your head trying to understand why someValue == null all the time. The lack of information at compile time is the obvious culprit.</p>
<p>But, I have found a decent workaround. Provide a constructor for the dynamic class that takes and Object as an optional parameter. If you pass in a parameter, call the helper function to populate the object. Here I&#8217;m using a form of reflection to do this dynamically so I don&#8217;t have to hand write all the properties.</p>
<pre class="brush: as3;">

dynamic public class SomeDynamicClass

public function SomeDynamicClass(obj:Object=null)
{
if ( obj )
this.populateMe(obj);
}

private function populateMe(source:Object):void
{

var destinationList:XML = describeType(this);

for each ( var propName:XML in destinationList..variable )
{
if ( source.hasOwnProperty( propName.@name ) )
{
var cls:Class = getDefinitionByName(propName.@type) as Class;
this[propName.@name] = source[propName.@name] as cls;
}
}
}
</pre>
<p>Later on, when you get some generic Object, like from ArrayCollection.getItem, you don&#8217;t do the normal cast but instead create a new instance passing in the Object.</p>
<pre class="brush: as3;">
var someValue:SomeClass = new SomeDynamicClass(someObject);
</pre>
<p>Hope that helps.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Dynamic+Classes+Gotcha%21+http://ydh2r.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.webappsolution.com/wordpress/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Dynamic+Classes+Gotcha%21+http://ydh2r.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.webappsolution.com/wordpress/2010/04/06/dynamic-classes-gotcha/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Adobe MAX Widget</title>
		<link>http://www.webappsolution.com/wordpress/2009/08/27/adobe-max-widget/</link>
		<comments>http://www.webappsolution.com/wordpress/2009/08/27/adobe-max-widget/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 13:33:03 +0000</pubDate>
		<dc:creator>brianr</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[adobe-max]]></category>

		<category><![CDATA[ted-patrick]]></category>

		<guid isPermaLink="false">http://www.webappsolution.com/wordpress/?p=491</guid>
		<description><![CDATA[
See you there!


&#8230;from Ted&#8217;s Blog


 Tweet This Post]]></description>
			<content:encoded><![CDATA[<div align="center">
<p>See you there!</p>
<p><img style="visibility: hidden; width: 0px; height: 0px;" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNTEzNzc3NzM1MTgmcHQ9MTI1MTM3NzgxMzczNCZwPTc3NDM3MSZkPW1heDA5d2lkZ2V*Jmc9MyZvPWQ4NmU3YzlkMTI1YzRiZGU5MjI3NjhkMDNkMmVkZTNmJnM9b25mbGFzaC5vcmcmb2Y9MA==.gif" border="0" alt="" width="0" height="0" /><object width="400" height="400" data="http://max.adobe.com/widget/MaxWidget.swf" type="application/x-shockwave-flash"><param name="id" value="MaxWidget" /><param name="quality" value="high" /><param name="bgcolor" value="#869ca7" /><param name="allowScriptAccess" value="sameDomain" /><param name="FlashVars" value="crtr=1&amp;gig_lt=1251377773518&amp;gig_pt=1251377813734&amp;gig_g=3&amp;gig_s=onflash.org&amp;gig_crtr=1" /><param name="src" value="http://max.adobe.com/widget/MaxWidget.swf" /><param name="name" value="MaxWidget" /><param name="align" value="middle" /><param name="flashvars" value="crtr=1&amp;gig_lt=1251377773518&amp;gig_pt=1251377813734&amp;gig_g=3&amp;gig_s=onflash.org&amp;gig_crtr=1" /></object></p>
<p>
&#8230;from <a href="http://onflash.org/ted/2009/08/adobe-max-widget-embed-it-on-your-blog.php" target="_blank">Ted&#8217;s Blog</a>
</p>
</div>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Adobe+MAX+Widget+http://nscod.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.webappsolution.com/wordpress/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Adobe+MAX+Widget+http://nscod.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.webappsolution.com/wordpress/2009/08/27/adobe-max-widget/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flex Compile Error 1195</title>
		<link>http://www.webappsolution.com/wordpress/2009/07/24/flex-compile-error-1195/</link>
		<comments>http://www.webappsolution.com/wordpress/2009/07/24/flex-compile-error-1195/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 15:56:13 +0000</pubDate>
		<dc:creator>brianr</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.webappsolution.com/wordpress/?p=466</guid>
		<description><![CDATA[This was a simple issue that gave me a 5 minute headache b/c the error wasn&#8217;t clear enough, so I thought I&#8217;d share..if you ever run into the following Flex Compiler error:
1195 Attempted access of inaccessible method &#60;methodName&#62; through a reference with static type &#60;fullQualifiedClass&#62;.
&#8230;maybe you did what I did and changed a public function [...]]]></description>
			<content:encoded><![CDATA[<p>This was a simple issue that gave me a 5 minute headache b/c the error wasn&#8217;t clear enough, so I thought I&#8217;d share..if you ever run into the following Flex Compiler error:</p>
<p><strong>1195</strong> Attempted access of inaccessible method &lt;methodName&gt; through a reference with static type &lt;fullQualifiedClass&gt;.</p>
<p>&#8230;maybe you did what I did and changed a public function to a public set function, but forgot to change the implementation where you used it&#8230;so my interface was originally:</p>
<pre class="brush: as3;">public function bar(str:String):void;</pre>
<p>and then I changed the bar method to a setter method like this:</p>
<pre class="brush: as3;">public function set bar(str:String):void;</pre>
<p>so I also needed to change my implementation of that method from:</p>
<pre class="brush: as3;">foo.bar(&quot;str&quot;);</pre>
<p>to</p>
<pre class="brush: as3;">foo.bar = &quot;str&quot;;</pre>
<p>&#8230;a simple mistake that led me to a slightly convoluted error that I hope helps someone else.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Flex+Compile+Error+1195+http://mhgc2.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.webappsolution.com/wordpress/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Flex+Compile+Error+1195+http://mhgc2.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.webappsolution.com/wordpress/2009/07/24/flex-compile-error-1195/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

