<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'AS3: My favorite helper functions'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 22 Apr 2026 22:12:16 +0000</lastBuildDate>
    <item>
      <title>Winkyboy said on 29/Jun/2010</title>
      <link>https://snipplr.com/view/10204/as3-my-favorite-helper-functions</link>
      <description>&lt;p&gt;Just a little note for myself, the next time I come back through here and need to pass flashvars through to a getURL in an .as file...&#13;
&#13;
&#13;
&#13;
	import flash.display.LoaderInfo;&#13;
	import flash.net.URLRequest;&#13;
	import flash.net.navigateToURL;&#13;
&#13;
		private function getURL(url:String, target:String = null){&#13;
			try {&#13;
				navigateToURL(new URLRequest(url), target);&#13;
			}catch(error:Error){&#13;
				trace("[getURL] "+error);&#13;
			}&#13;
		}&#13;
		&#13;
		private function getFlashVars():Object&#13;
		{&#13;
			 return Object( LoaderInfo( this.loaderInfo ).parameters );&#13;
		}&#13;
&#13;
// using info from Adobe to pass the flashvars: http://kb2.adobe.com/cps/164/tn_16417.html&lt;/p&gt;</description>
      <pubDate>Tue, 29 Jun 2010 00:53:23 UTC</pubDate>
      <guid>https://snipplr.com/view/10204/as3-my-favorite-helper-functions</guid>
    </item>
    <item>
      <title>Winkyboy said on 29/Jun/2010</title>
      <link>https://snipplr.com/view/10204/as3-my-favorite-helper-functions</link>
      <description>&lt;p&gt;Oops! And here's the call to get it  going:&#13;
&#13;
getURL (getFlashVars().clickTag, "_blank");&lt;/p&gt;</description>
      <pubDate>Tue, 29 Jun 2010 00:54:21 UTC</pubDate>
      <guid>https://snipplr.com/view/10204/as3-my-favorite-helper-functions</guid>
    </item>
  </channel>
</rss>
