Hi Bob,

A good resource of swfobject examples can be found here

tests for both of the method I mentioned (and everything else too)
http://code.google.com/p/swfobject/wiki/test_suite

http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_api_create_remove.html

your code should remove the swf like so

swfobject.removeSWF("videoframe");


and more here too (examples and instructions)
http://pipwerks.com/lab/swfobject/

FYI the video does stop in my version of firefox (version 3.5.5); even so I
would still remove and add when navigating back to the tab.  Removing it is
a sure fire way to stop it playing + I feel its safer than leaving it there
in an inactive tab (browsers can some times crash when lots is going on -
removeswf removes the flash from the page).  I have not checked other
browsers

you could check the value of menuname within the change function you have in
_khc.js


(I have some code I have tried in firebug to get this to work and may be
able to revisit it later)

- S

ps I replied to the list; other may have something to add / suggest


2009/11/30 bob.woodman <[email protected]>

> Hi Sam,
>
> Thanks for the rapid response. I feel I am a beginner in a man's
> world.
>
> I tried onclick="javascript:document.getElementById
> ('videoframe').removeSWF("kophillintro2.swf"); changemenu
> ('home_page')";
>
> where "videoframe" is the Id of the object and "kophillintro2" the
> name of the video. No effect in Firefox or IE.
>
> The document.getElementById('videoframe').stop(); works in IE but not
> in Firefox. This when when in IE is very good (it operates like
> "pause" because if you go back to the video you can start it from
> where you stopped it.)
>
> Bob Woodman
>
> On Nov 30, 1:17 pm, Sam Sherlock <[email protected]> wrote:
> > I would removeSwf when changing from the video tab to any other tab
> >
> > then when (re-)activating the video tab createSwf
> >
> > http://code.google.com/p/swfobject/wiki/api
> >
> > - S
> >
> > 2009/11/30 bob.woodman <[email protected]>
> >
> > > Hi,
> >
> > > Onwww.kophillclimb.org.uk/_index.htmlI am using swfobject 2 to
> > > deliver a video on startup. I provide a tab to switch to a new page if
> > > the user wishes to cut it short and view the rest of the  web site. On
> > > firefox as soon as the "Video Page" has its display set to none the
> > > video stops. On IE7 the video carries on but is not shown, however the
> > > sound continues.
> >
> > > How can I get IE to stop playing the video?
> >
> > > Any help appreciated.
> >
> > > Bob Woodman
> >
> > > --
> >
> > > 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]>
> <swfobject%[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