hi aran
thanks for your reply
i have tried using document.getElementById("flashContent");

the problem is that in IE targets the outer object, not the
innerObject
and i need to get it to target the innerObject, which i don't know how
to do

ps. this problem is explained in the api docs - thing is i haven't
goten my head around how to set this to target the innerObject yet










On Aug 21, 5:09 am, Aran Rhee <[email protected]> wrote:
> So if you are using static publishing you can use:
>
> swfobject.getObjectById(objectIdStr)
>
> (seehttp://code.google.com/p/swfobject/wiki/api)
>
> If you are using dynamic publishing, then you can just use the standard DOM
> method document.getElementById(objectIdStr);
>
> Cheers,
> Aran
>
> On Fri, Aug 21, 2009 at 1:32 PM, ifl <[email protected]> wrote:
>
> > hi
>
> > im using the SWFObject 2 to embed my flash in html and i have set a
> > AS2 callback to call a flash function from javascript.
>
> > i've read the API docs for the SWFObject but i'm not very fluent with
> > javascript nor dom so i can't see how to target the inner object (as
> > said in the API docs)
> > im wondering if anybody can show me a code of line so i can see how to
> > target the inner object because i usually understand code i don't know
> > backwards, like after seeing how it's done and cross referencing that
> > with the docs i can understand how to do it.
>
> > thanks
>
> > this is the script i have, to call the callback fundtion to the swf
>
> > <script type="text/javascript">
> > function getFlashMovie(movieName) {
> >        if(navigator.appName.indexOf("Microsoft") != -1) {
> >                var what = window[movieName];
> >                //alert(window[movieName]);
> >                return what;
> >        } else {
> >                var what = document[movieName];
> >                //alert(document[movieName]);
> >                return what;
> >        }
> > }
>
> > function formSend() {
> >        getFlashMovie("flashContent").callFunction(); //flash function
> > }
> > </script>
>
> > 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