<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - flash - 9.0 - main - 00000343.html</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T17:44:50</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000343.html#75991" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000343.html#70915" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000343.html#75991">
		<title>flash/9.0/main/00000343.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000343.html#75991</link>
		<description>It's an error in the documentation.  You need to get the object, not use it's string. Correct code is as follows:&lt;br /&gt;&lt;br /&gt;&lt;script language=&quot;JavaScript&quot;&gt;&lt;br /&gt;    // callResult gets the value &quot;busy signal&quot;&lt;br /&gt;    var flashObj = document.getElementById('flashObject');&lt;br /&gt;    var callResult = flashObj.myFunction(&quot;my name&quot;);&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;If you use the prototype framework you can do the following.&lt;br /&gt;&lt;br /&gt;&lt;script language=&quot;JavaScript&quot;&gt;&lt;br /&gt;    // callResult gets the value &quot;busy signal&quot;&lt;br /&gt;    var callResult = $('flashObject').myFunction(&quot;my name&quot;);&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;Another thing the documentation forgets to mention - the flash object must have been drawn into the DOM before you can invoke any of its functions. This is particular important if you are drawing the movie into the DOM to get around the IE7 &quot;feature&quot; of requiring click ons to activate swf objects. Also if you have a particularly beefy amount of script that the movie has to use to initialize itself you might want to set up a call to javascript to tell your javascript that the movie is ready to receive calls.&lt;br /&gt;&lt;br /&gt;I'm working on some code that extends prototype/scriptaculous to smooth out crosstalk between javascript and actionscript. Once I'm sure of its stability I intend to release it under MIT license sometime early next year.</description>
		<dc:creator>mlmorr0</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-11-02T00:03:06</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000343.html#70915">
		<title>flash/9.0/main/00000343.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000343.html#70915</link>
		<description>Have a error...&lt;br /&gt;Return the &quot;flashObject.myFunction&quot; is not a function!&lt;br /&gt;&lt;br /&gt;Tested In IE7 and FF2.&lt;br /&gt;&lt;br /&gt;Someone obtained it?&lt;br /&gt;Thanks.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-07-28T10:23:53</dc:date>
	</item>
	</rdf:RDF>

