Try swfobject.getObjectById() instead.

--Kyle

--------------------------------------------------
From: "Jorge Mataleo" <[email protected]>
Sent: Monday, April 06, 2009 9:00 AM
To: "SWFObject" <[email protected]>
Subject: Unable to use Flash method

>
> Hi,
>
> I'm attempting to call a Flash method from JavaScript, but it's
> failing.  This works, with teh exact same SWF file when I embed it
> using the standard Adobe methods, but seemingly not with SWFObject.
> Here's the object, from the page source:-
>
> <div id="fim_div">
>  <object id="fim" width="0" height="0" align="middle"
> codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/
> swflash.cab#version=6,0,65,0" classid="clsid:fim_class_id">
>    <param value="http://pt10banner.demo.playtech.com/services/FIM/1/
> fim.swf" name="movie"/>
>    <param value="high" name="quality"/>
>    <param value="always" name="allowScriptAccess"/>
>    <param value="#FFFFFF" name="bgcolor"/>
>    <param value="false" name="menu"/>
>    <param value="opaque" name="wmode"/>
>    <embed width="0" height="0" align="middle" pluginspage="http://
> www.macromedia.com/go/getflashplayer" bgcolor="#FFFFFF" wmode="opaque"
> swliveconnect="true" allowscriptaccess="always" menu="false"
> quality="high" loop="false" play="true" name="fim" type="application/x-
> shockwave-flash" src="http://pt10banner.demo.playtech.com/services/FIM/
> 1/fim.swf"/>
>  </object>
> </div>
>
> ...and I'm attempting to call the method like this:-
>
> getFim().launchClient();
>
> ...where:
>
> function getFim()
> {
>  return document.getElementById(fimIdName);
> }
>
> I've looked to make sure document.getElementById("fim") does in fact
> return an object, and it does.  I know the SWF file has the right
> method in it, but I always get the JS error message:
>
>  getFim().launchClient is not a function
>
> Am I attempting to call the Flash method it wrong?  I've changed
> various things to try and get this to work to no avail.
>
> Thanks!
>
>
> >
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to