<?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>Bodie Leonard &#187; Actionscript 3.0</title>
	<atom:link href="http://bodieleonard.com/tag/actionscript-30/feed/" rel="self" type="application/rss+xml" />
	<link>http://bodieleonard.com</link>
	<description>click, listen, learn, play interactive web</description>
	<lastBuildDate>Fri, 04 Sep 2009 16:39:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>AS3 getting past IE popup blocker</title>
		<link>http://bodieleonard.com/as3-getting-past-ie-popup-blocker/</link>
		<comments>http://bodieleonard.com/as3-getting-past-ie-popup-blocker/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 15:07:22 +0000</pubDate>
		<dc:creator>Bodie Leonard</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[IE popup]]></category>

		<guid isPermaLink="false">http://bodieleonard.com/?p=273</guid>
		<description><![CDATA[[Edited September 04, 2009]
I also use this fix to bypass popups in IE&#8230;

/*
use this snippet in the as file to work with this class
function  discoverBtnHandler(e:MouseEvent){
    var popup:PassPopup = new PassPopup();
    // Open the popup window.
    popup.ChangePage( &#8220;http://theotherwhitemeat.com/porkrecipes/#/recipes/&#8221; );
}
*/
package com {
    import flash.external.ExternalInterface;
 [...]]]></description>
			<content:encoded><![CDATA[<p>[Edited September 04, 2009]<br />
I also use this fix to bypass popups in IE&#8230;</p>
<div id="code">
/*</p>
<p>use this snippet in the as file to work with this class<br />
function  discoverBtnHandler(e:MouseEvent){</p>
<p>    var popup:PassPopup = new PassPopup();<br />
    // Open the popup window.<br />
    popup.ChangePage( &#8220;http://theotherwhitemeat.com/porkrecipes/#/recipes/&#8221; );<br />
}</p>
<p>*/</p>
<p>package com {<br />
    import flash.external.ExternalInterface;<br />
    import flash.net.*;</p>
<p>    public class PassPopup {</p>
<p>        /<br />
        public function ChangePage(url:*, window:String = &#8220;_blank&#8221;):void {<br />
            var req:URLRequest = url is String ? new URLRequest(url) : url;<br />
            if (!ExternalInterface.available) {<br />
                navigateToURL(req, window);<br />
            } else {<br />
                var strUserAgent:String = String(ExternalInterface.call(&#8221;function() {return navigator.userAgent;}&#8221;)).toLowerCase();<br />
                if (strUserAgent.indexOf(&#8221;firefox&#8221;) != -1 || (strUserAgent.indexOf(&#8221;msie&#8221;) != -1 &#038;&#038; uint(strUserAgent.substr(strUserAgent.indexOf(&#8221;msie&#8221;) + 5, 3)) >= 7)) {<br />
                    ExternalInterface.call(&#8221;window.open&#8221;, req.url, window);<br />
                } else {<br />
                    navigateToURL(req, window);<br />
                }<br />
            }<br />
        }</p>
<p>    }</p>
<p>}
</p></div>
<p>[End Edit September 04, 2009]</p>
<div id="code">import com.neondust.external.PopupWindow;<br />
import com.neondust.external.PopupWindowDefaults;</p>
<p>var popup:PopupWindow = new PopupWindow();<br />
popup.width = WIDTH OF POPUP;<br />
popup.height = HEIGHT OF POPUP;<br />
popup.menuBar = false;<br />
popup.toolBar = false;<br />
popup.open( &#8220;YOUR HTML PAGE PATH&#8221; );</p></div>
<p>Package created by NEONDUST STUDIOS<br />
Download <a href="http://bodieleonard.com/wp-content/uploads/com/PopupWindow.as" >PopupWindow.as</a><br />
Download <a href="http://bodieleonard.com/wp-content/uploads/com/PopupWindowDefaults.as" >PopupWindowDefaults.as</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bodieleonard.com/as3-getting-past-ie-popup-blocker/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Adobe Actionscript 3.0 E4X</title>
		<link>http://bodieleonard.com/adobe-actionscript-30-e4x/</link>
		<comments>http://bodieleonard.com/adobe-actionscript-30-e4x/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 17:21:18 +0000</pubDate>
		<dc:creator>Bodie Leonard</dc:creator>
				<category><![CDATA[E4X]]></category>
		<category><![CDATA[Actionscript 3.0]]></category>

		<guid isPermaLink="false">http://bodieleonard.com/?p=257</guid>
		<description><![CDATA[Currently I am creating a sortable list via actionscript 3.0 and xml.  I have been learning about E4X but have not really taken that big step to form the way as2 talkes to XML to E4X.  I started my reserch on dispatchevent.org then I viewed the E4X video from Mark Birat the Adobe [...]]]></description>
			<content:encoded><![CDATA[<p>Currently I am creating a sortable list via actionscript 3.0 and xml.  I have been learning about <a href="http://learn.adobe.com/wiki/display/Flex/E4X" onclick="javascript:pageTracker._trackPageview('/outbound/article/learn.adobe.com');">E4X</a> but have not really taken that big step to form the way as2 talkes to XML to E4X.  I started my reserch on <a href="http://dispatchevent.org/roger/as3-e4x-rundown/" onclick="javascript:pageTracker._trackPageview('/outbound/article/dispatchevent.org');">dispatchevent.org</a> then I viewed the E4X <a href="http://tv.adobe.com/#vi+f15384v1104" onclick="javascript:pageTracker._trackPageview('/outbound/article/tv.adobe.com');">video</a> from <a href="http://allyourflex.wordpress.com/about/" onclick="javascript:pageTracker._trackPageview('/outbound/article/allyourflex.wordpress.com');">Mark Bir</a>at the Adobe MAX sessions and it helped put my research into working knowledge.</p>
<p>I am creating a table that will communicate with xml and can search by many different criterias and then spit the ordered details out in order.</p>
]]></content:encoded>
			<wfw:commentRss>http://bodieleonard.com/adobe-actionscript-30-e4x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Click Here site has been launched</title>
		<link>http://bodieleonard.com/click-here-site-has-been-launched/</link>
		<comments>http://bodieleonard.com/click-here-site-has-been-launched/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 22:12:56 +0000</pubDate>
		<dc:creator>Bodie Leonard</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Online News]]></category>
		<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[click here]]></category>

		<guid isPermaLink="false">http://bodieleonard.com/?p=193</guid>
		<description><![CDATA[Finally after many hours of flash development my coworker Corban Baxter and I have finally finished the Click Here website.  This is my first full blown website with Actionscript 3.0.
Developing this site I learned that you must error proof as you go or an end product will be a big roll of duck tape. [...]]]></description>
			<content:encoded><![CDATA[<p>Finally after many hours of flash development my coworker <a href="http://blog.projectx4.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/blog.projectx4.com');">Corban Baxter</a> and I have finally finished the <a href="http://www.clickhere.com" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.clickhere.com');">Click Here website</a>.  This is my first full blown website with <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/" onclick="javascript:pageTracker._trackPageview('/outbound/article/livedocs.adobe.com');">Actionscript 3.0</a>.<br />
Developing this site I learned that you must error proof as you go or an end product will be a big roll of <a href="http://duckproducts.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/duckproducts.com');">duck tape</a>.  </p>
<p>10 Useful tips in developing a large scale flash as3 site that is fully dynamic in every way possible.</p>
<ol>
<li>Start with <a href="http://www.asual.com/swfaddress/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.asual.com');">SWF Address</a> or <a href="http://www.gaiaflashframework.com/wiki/index.php?title=Leveraging_Deeplinks_and_SWFAddress" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.gaiaflashframework.com');">Gaia</a> and work your site around those frameworks for deeplinking.</li>
<li>Consistently check to make sure the flash doesn&#8217;t bog down the <a href="http://en.wikipedia.org/wiki/Processor" onclick="javascript:pageTracker._trackPageview('/outbound/article/en.wikipedia.org');">processor</a> and loading times are adequate</li>
<li>Use as many <a href="http://senocular.com/flash/actionscript.php?file=ActionScript_3.0/getURL.as" onclick="javascript:pageTracker._trackPageview('/outbound/article/senocular.com');">classes</a> as you can to cut down on repetitive functions</li>
<li>Make sure all a href=&#8221;" target=&#8221;_blank&#8221; links are not <a href="http://www.mehtanirav.com/2008/11/27/opening-external-links-in-new-window-from-as3" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.mehtanirav.com');">blocked by browser popup blockers</a> as you code to save headache at crunch time.</li>
<li>Disable all elements on stage that are not in the <a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00001977.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/livedocs.adobe.com');">tabIndex</a> by tabEnabled = false;</li>
<li>Make sure you have all the <a href="http://ntt.cc/2008/03/29/the-list-of-helpful-flex-or-flash-debug-tools.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/ntt.cc');">up-to-date free debugging software</a>. <a href="http://www.sephiroth.it/firefox/flashtracer/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.sephiroth.it');">Flash Tracer</a> is great if your on <a href="http://www.mozilla.com/en-US/firefox/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.mozilla.com');">FireFox</a></li>
<li>Make sure you <a href="http://www.flashessential.com/archives/90" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.flashessential.com');">removeEventListeners</a> as you develop for <a href="http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.gskinner.com');">garbage collection</a></li>
<li>One object to rule them all.  If your loading in XML create an <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Object.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/livedocs.adobe.com');">object={};</a> so you can call one central location to prevent player corruption down the road.</li>
<li>Instead of <a href="http://www.smithmediafusion.com/blog/?p=334" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.smithmediafusion.com');">for loops</a> everywhere try <a href="http://www.kirupa.com/forum/showthread.php?p=1923917" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.kirupa.com');">forEach()</a></li>
<li>Enjoy as3 and learn something new with every new project. Check out this very helpful <a href="http://www.automatastudios.com/2007/11/17/the-nooks-and-crannies-of-actionscript-3/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.automatastudios.com');">presentation by Branden Hall CTO &#038; Chief Sofware Architect at Automata Studios</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://bodieleonard.com/click-here-site-has-been-launched/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to use tabIndex and getting rid of the yellow box in AS 3.0</title>
		<link>http://bodieleonard.com/how-to-use-tabindex-and-getting-rid-of-the-yellow-box-in-as-30/</link>
		<comments>http://bodieleonard.com/how-to-use-tabindex-and-getting-rid-of-the-yellow-box-in-as-30/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 19:15:52 +0000</pubDate>
		<dc:creator>Bodie Leonard</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[tabIndex]]></category>

		<guid isPermaLink="false">http://bodieleonard.com/?p=171</guid>
		<description><![CDATA[Enabling tabIndex
You can either code all your tabIndex&#8217;s or you can use the Accessibility panel to set the Tab Index which can be found in Windows > Other Panel > Accessibility or shortcut Shift F11.

elementName.tabIndex=1; // numbers from 1 &#8211; 65535

Enable any elements that are not to be used by tab shortcut key

elementName.focusRect = true;

Once [...]]]></description>
			<content:encoded><![CDATA[<p>Enabling tabIndex<br />
You can either code all your tabIndex&#8217;s or you can use the Accessibility panel to set the Tab Index which can be found in Windows > Other Panel > Accessibility or shortcut Shift F11.</p>
<div id="code">
elementName.tabIndex=1; // numbers from 1 &#8211; 65535
</div>
<p>Enable any elements that are not to be used by tab shortcut key</p>
<div id="code">
elementName.focusRect = true;
</div>
<p>Once the tab indexes order has been set and all the elements are enabled (or disabled if not in use) we can set the focus so users will know if they have tabbed to an element on the page.</p>
<div id="code">
elementName.addEventListener(FocusEvent.FOCUS_IN, changeHalo);<br />
function changeHalo(e:FocusEvent):voidactionscrip 3<br />
{<br />
    e.target.transform.colorTransform =  0xFFFFFF;<br />
}
</div>
<p>And now tabbing has been set for the form with no yellow boxes on focused elements. </p>
]]></content:encoded>
			<wfw:commentRss>http://bodieleonard.com/how-to-use-tabindex-and-getting-rid-of-the-yellow-box-in-as-30/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
