I could be corrected on this (going from memory rather than testing, but:)

function Hello(e){
    var caller = e.target || e.srcElement;
    alert( caller );
}

An event function should be passed to the Hello function automatically. You
need to receive it as an argument and then do so cross-platform work to grab
the element. A JS frameworks will help you out here.


Aran


On Sat, Nov 28, 2009 at 12:12 AM, JasperV <[email protected]> wrote:

> Hi,
>
> I'm kinda new to this google groups thing so please tell me if I am
> out of place here.
>
> But does anyone know how to obtain a reference to the Flash Object
> that called a JavaScript function, from within that called function.
>
> Basically what I do is create a JavaScript function with Flash in a
> page (SWFObject is used to do this). I do not own the page and do not
> know what HTML Id attribute the Flash Object has been given. But I
> create and call a JavaScript function from Flash. In this function I
> would like to have a reference back to the Flash Object so I can call
> it again later from JavaScript...
>
> Maybe a bit weird but very handy for what I am trying to do...
>
> Thanks in advance
>
> --
>
> 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]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>
>
>

--

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