<?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: Define and call javascript functions directly inside an AS3 class (FL / FX)</title>
	<atom:link href="http://www.fabiobiondi.com/blog/2009/09/define-and-call-javascript-functions-directly-inside-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fabiobiondi.com/blog/2009/09/define-and-call-javascript-functions-directly-inside-as3/</link>
	<description>Adobe, Actionscript, Flex, Flash, Air, FlashLite, scripts and tutorial</description>
	<pubDate>Sun, 05 Feb 2012 09:44:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Fabio Biondi</title>
		<link>http://www.fabiobiondi.com/blog/2009/09/define-and-call-javascript-functions-directly-inside-as3/comment-page-1/#comment-35</link>
		<dc:creator>Fabio Biondi</dc:creator>
		<pubDate>Wed, 16 Sep 2009 00:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.fabiobiondi.com/blog/?p=570#comment-35</guid>
		<description>On our italian community forum (www.actionscript.it/forum) an user has requested a way to get the url path of the SWF Container (usually an HTML file).

This is another JavaScript task, so following the new method for the URLUtil class to accomplish this task:


/**
* Get the absolute path of the HTML Container
* @Return the path   
*
*/

public static function getPathHTMLContainer():String {

    var path:String =  
       String(ExternalInterface.call("window.location.href.toString"));

    return path;

}


&lt;strong&gt;USAGE (in Flash o Flex):&lt;/strong&gt;
outputTxt.text = URLUtil.getPathHTMLContainer()</description>
		<content:encoded><![CDATA[<p>On our italian community forum (www.actionscript.it/forum) an user has requested a way to get the url path of the SWF Container (usually an HTML file).</p>
<p>This is another JavaScript task, so following the new method for the URLUtil class to accomplish this task:</p>
<p>/**<br />
* Get the absolute path of the HTML Container<br />
* @Return the path<br />
*<br />
*/</p>
<p>public static function getPathHTMLContainer():String {</p>
<p>    var path:String =<br />
       String(ExternalInterface.call(&#8221;window.location.href.toString&#8221;));</p>
<p>    return path;</p>
<p>}</p>
<p><strong>USAGE (in Flash o Flex):</strong><br />
outputTxt.text = URLUtil.getPathHTMLContainer()</p>
]]></content:encoded>
	</item>
</channel>
</rss>

