to access the flashobject using these combination of tags:
<object id="flashobject" src="">
<param/>...
<embed name="flashobject" src=""></object>
and to access with jquery, use this:
var oFlash = $("object#flashobject>embed");
and as long as f.swf has a method registered with ExternalInterface (ie. fmethod), then you can call it easily by:
oFlash.fmethod()
that's it! so jquery rocks! just need to tinker the _expression_ in $() and everything works just ok :D
cheers,
Guntur N. Sarwohadi
On 10/30/06, Guntur N. Sarwohadi <[EMAIL PROTECTED]> wrote:
ok,..
this is how i access the flash object:
//function to capture flash
getFlashMovie = function(n) {
if(isIE) {
return window[n];
} else {
return document[n];
}
}
//implementation:
var oFlash = getFlashMovie("someflashmovie");
//call flash ExternalInterface registered method:
oFlash.somemethod();
What i tried with jQuery was to cut the capturing function and straight to implementation:
var oFlash = $("someflashmovie");
but calling oFlash.somemethod(); now, doesnt work :(
any ideas?
Guntur N. SarwohadiOn 10/30/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote:> Does anyone know how to access a flash object with jquery? I have a flash
> movie with a function I need to call from js. It already has a function
> registered as externalInterface and Im able to call it using regular js. I
> would like to know how in jquery. I tried doing the regular $(_expression_)
> but it doesn't work. Sorry if someone has come up to this discussion
> already, i couldn't find a way to search the list of mails from this
> maillist
Could you post your "regular" code? That would help.
--
Jörn Zaefferer
http://bassistance.de
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
