<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0">
<channel><title><![CDATA[ActionScript.org Flash, Flex and ActionScript Resources - Comments for article: Basics of using the ExternalInterface]]></title><link>http://www.actionscript.org/resources</link><description /><language>en-us</language><copyright><![CDATA[http://www.actionscript.org/resources]]></copyright><generator>N/A</generator><webMaster>general.redirect@gmail.com</webMaster><lastBuildDate>Sun, 22 Nov 2009 06:36:31 CST</lastBuildDate><ttl>20</ttl><item><title><![CDATA[Comment #1]]></title><link>http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment4550</link><description><![CDATA[Thanks! Can you do this on server side actionscript?<br/><br/>
(Comment posted by bee at 10:30 am, Wed 11th Jul 2007)]]></description><author>no@spam.com (bee)</author><pubDate><![CDATA[Wed, 11 Jul 2007 10:30:27 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment4550</guid></item><item><title><![CDATA[Comment #2]]></title><link>http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment4878</link><description><![CDATA[This only worked in fireFox for some reason.  I tried it on Safari and IE, all three on a Win XP box.<br/><br/>
(Comment posted by foxbat at 11:59 am, Mon 23rd Jul 2007)]]></description><author>no@spam.com (foxbat)</author><pubDate><![CDATA[Mon, 23 Jul 2007 11:59:22 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment4878</guid></item><item><title><![CDATA[Comment #3]]></title><link>http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment4941</link><description><![CDATA[I have been unable to make this example work.  I am testing in IE7.

Clicking the Flash area is correctly calling the function that opens the prompt (althought I don't understand while the prompt call has to be preceeded by "me.onchange".)

When I click the "Pass to AS" button, however, I get a javascript error that says "Object doesn't support this property or method."  This is in relation to the line in the HTML "me.onChange(str);"

Any help would be greatly appreciated.<br/><br/>
(Comment posted by Christopher at 9:30 am, Wed 25th Jul 2007)]]></description><author>no@spam.com (Christopher)</author><pubDate><![CDATA[Wed, 25 Jul 2007 09:30:18 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment4941</guid></item><item><title><![CDATA[Comment #4]]></title><link>http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment4950</link><description><![CDATA[Earlier today, I submitted a comment about this activity not working.  The issue is that the Flash .swf can not be embedded using the <embed> tag.  A developer will need to using an external javascript file to embed the .swf. I used AC_RunActiveContent.

After getting the example to work, I now understand the "me.onChange" piece of code and how it works within the piece.<br/><br/>
(Comment posted by Christopher at 1:30 pm, Wed 25th Jul 2007)]]></description><author>no@spam.com (Christopher)</author><pubDate><![CDATA[Wed, 25 Jul 2007 13:30:43 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment4950</guid></item><item><title><![CDATA[Comment #5 (Reply to Comment #4)]]></title><link>http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment12266</link><description><![CDATA[thanx for this post!

2 all: another way is to use <object>...</object> tag for embedding of your SWF<br/><br/>
(Comment posted by 0xDD at 7:14 am, Thu 13th Nov 2008)]]></description><author>no@spam.com (0xDD)</author><pubDate><![CDATA[Thu, 13 Nov 2008 07:14:44 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment12266</guid></item><item><title><![CDATA[Comment #6]]></title><link>http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment9723</link><description><![CDATA[Excellent tutorial for the basics, thanks! It would be helpful for Dooshbags such as myself to add, since local testing did not work and had me puzzled for half an hour: 

Note: For local content running in a browser, calls to the ExternalInterface.addCallback() method work only if the SWF file and the containing web page are in the local-trusted security sandbox. For more information, see the following:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000347.html <br/><br/>
(Comment posted by creatino at 8:18 am, Sun 24th Feb 2008)]]></description><author>no@spam.com (creatino)</author><pubDate><![CDATA[Sun, 24 Feb 2008 08:18:33 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment9723</guid></item><item><title><![CDATA[Comment #7]]></title><link>http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment11940</link><description><![CDATA[Getting a javascript error that says "Object doesn't support this property or method." usually means you passed as the second parameter in the SWFobject a name that is == to the ID of the DIV you're inserting the flash into. This creates problems in IE because you end up having 2 elements with the same ID. FF and Safari use that parameter as a NAME and not ID so the same does not apply.<br/><br/>
(Comment posted by Ivan at 8:01 am, Wed 10th Sep 2008)]]></description><author>no@spam.com (Ivan)</author><pubDate><![CDATA[Wed, 10 Sep 2008 08:01:59 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment11940</guid></item><item><title><![CDATA[Comment #8]]></title><link>http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment12271</link><description><![CDATA[I discovered the External Interface object recently and I'm trying to use in my web site.  I have an interactive map which Flash handles well but I'm experimenting with Javascript based navigation menu that uses jQuery which has some pretty nifty effects that are really easy and speed up development.

My External Interface works great on the Mac but so far only works in Firefox on Windows. This is true even for the code found at the Adobe support site that documents External Interface for Actionscript  2.0 and 3.0.

I love External Interface - it gives you a great deal of apparantly reliable flexibility being able to have 2 - way communication between Javascript and Flash -  but I'll be happier when I get it to work for me in Explorer.<br/><br/>
(Comment posted by John at 12:55 am, Fri 14th Nov 2008)]]></description><author>no@spam.com (John)</author><pubDate><![CDATA[Fri, 14 Nov 2008 00:55:58 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment12271</guid></item><item><title><![CDATA[Comment #9]]></title><link>http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment12693</link><description><![CDATA[I'm using external AS (2) in the FlashDevelop IDE. I noticed that when running an AS method from JS, it somehow messes up your scope: the AS objects properties and other methods can't be accessed.

You're able to use a workaround by assigning the object as a property of _root (f.ex: _root.APP = this; in constructor), but i'd rather not mess up _root... 
Does anyone know another way around this?

.Jorn<br/><br/>
(Comment posted by Jorn at 2:15 am, Wed 25th Feb 2009)]]></description><author>no@spam.com (Jorn)</author><pubDate><![CDATA[Wed, 25 Feb 2009 02:15:10 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment12693</guid></item><item><title><![CDATA[Comment #10 (Reply to Comment #9)]]></title><link>http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment13307</link><description><![CDATA[Look at the Delegate class to define the scope to whatever you like.<br/><br/>
(Comment posted by Scott at 5:45 pm, Tue 4th Aug 2009)]]></description><author>no@spam.com (Scott)</author><pubDate><![CDATA[Tue, 04 Aug 2009 17:45:51 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment13307</guid></item><item><title><![CDATA[Comment #11]]></title><link>http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment12973</link><description><![CDATA[very poor<br/><br/>
(Comment posted by aa@gmail.com at 3:17 am, Wed 6th May 2009)]]></description><author>no@spam.com (aa@gmail.com)</author><pubDate><![CDATA[Wed, 06 May 2009 03:17:10 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment12973</guid></item><item><title><![CDATA[Comment #12]]></title><link>http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment13316</link><description><![CDATA[I followed this excellent article, but my code didn't work.
After googleing and trying I found out:
1) The callBack function on the flex side has to be defined as static (I also added public):
public static function callMe(name:String):String
2) The ExternalInterface decelerations need to be defined within a function. I also read that it should be in a method that handles an event.

Hope this helps :)<br/><br/>
(Comment posted by Sivan at 11:10 am, Thu 6th Aug 2009)]]></description><author>no@spam.com (Sivan)</author><pubDate><![CDATA[Thu, 06 Aug 2009 11:10:40 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment13316</guid></item><item><title><![CDATA[Comment #13]]></title><link>http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment13631</link><description><![CDATA[Yes! Thank you. Been banging away at Adobe's tutorials and others and getting nowhere.
I wrapped the swf in the standard <object> wrapper and gave the wrapper a separate id to get it to work in IE, and then used a document.getElementById() to get it to work in both firefox and chrome.
  Javascript looks like this now:
if(navigator.appName.indexOf("Microsoft") != -1){
		  flash = window["objectidforinternetexplorer"];
		  
     } else {
		  flash = document.getElementById("embedidforeveryoneelse");
     }

... I know this has some drawbacks, but it works okay until i can figure out how to do it better.<br/><br/>
(Comment posted by Lee at 1:47 pm, Wed 28th Oct 2009)]]></description><author>no@spam.com (Lee)</author><pubDate><![CDATA[Wed, 28 Oct 2009 13:47:36 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html#Comment13631</guid></item></channel></rss>