I have tried with limited success to get JSFC & UFO to work, I have jQuery doing other things and I would ideally like to get jQuery & UFO  to handle it all,

JSFC  was last updated in 2003.  It works with both object and embed tags.

http://www.abdulqabiz.com/files/JSFC/JSFCommunicator%20Library.htm

I have thought that a little jQuery Plugin could hook up to UFO and would then allow direct communication between jQuery and flash.  Perhaps it would not need ufo either but I'd would like not to use object embed tags as they are just messy.

- S

On 10/30/06, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
it may work... but... object & embed are used separately ... some
browsers may use the object and other will use the embed. but not
both... your solution ignores the object tag. and just works on the
embed.

And in the crazy case of multiple nested objects... you will have to
each() through the tags trying to determine which was used.

On 10/30/06, Guntur N. Sarwohadi <[EMAIL PROTECTED] > wrote:
> Hah.. found the solution..
>
> 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. Sarwohadi
> >
> >
> >
> >
> > On 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/
>
>
>


--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to