[Greasemonkey] Calling a page-defined function

Joe la Poutre jsixpack at gmail.com
Tue Aug 15 23:43:53 EDT 2006


Hmm... Flash.

About five years ago I have been wrestling with javascript and Flash,
at that time I had to rely on something called "FS-Connect" (likely
from the origin of Flash: Future Script). This hooked into liveconnect
on the Netscape side, and ActiveX on the MSIE side if I remember
correctly. It was hell and never worked quite as expected.

At that time I figured out that sending parameters to Flash was better
done at loading time, through  query string params, a kludge.

My guess is that Flash fully operates through the plugin API (or
ActiveX) and does all event handling itself as long as the applet (or
how you call such an embedded object) has focus.

Well, I fear getting too much off topic by now...

Cheers,

Joe.

On 8/15/06, Johan Sundström <oyasumi at gmail.com> wrote:
> On 8/14/06, Joe la Poutre <jsixpack at gmail.com> wrote:
> > Cool (I was wondering if the click-receiver must be of a certain type,
> > but that would be rather weird, as every element is valid to add an
> > inline onclick attribute to).
>
> Well, in a way, it does. I haven't managed to send click events to
> script embedded Flash applets from javascript, for instance -- I have
> tried and failed with the YouTube and Google Video flash movie
> players, to my chagrin; Flash seems to do native mouse event handling
> without paying any regard to synthesized DOM mouse events. Not that
> I'm surprised, but still.
>
> Should anyone manage to do something like that, by the way, I'd be
> interested in hearing about it. Flash is boring tech until you can
> hijack it to opt yourself in to innovate around it.
>
> A helpful XPath tip, by the way: instead of
> "//span[@id='zoomed-out']/a" I would suggest the syntax
> "id('zoomed-out')/a" I have grown fond of. Shorter, neater and more
> readable as well.
>
> (Some random bypassing entity wishes you all a good day.)
>
> --
>  / Johan Sundström, http://ecmanaut.blogspot.com/
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list