I would have a read of this tut about what happens when you call remove etc: http://learnswfobject.com/advanced-topics/load-a-swf-using-javascript-onclick-event/
<http://learnswfobject.com/advanced-topics/load-a-swf-using-javascript-onclick-event/>Your code snippet does not seem to follow proper swfobject notations or conventions, so I would also have a read of the basic concepts. Specifically, I think you should be using the dynamic publishing option with your ajax site: http://learnswfobject.com/the-basics/dynamic-publishing/ If you need help generating valid swfobject code, try using the ocde generator: http://learnswfobject.com/generator/ Aran <http://learnswfobject.com/the-basics/dynamic-publishing/> On Thu, Apr 29, 2010 at 1:04 AM, markakapops <[email protected]> wrote: > I am working on a site that has embedded flash movies. The problem I > am trying to solve is , I am using the css display:none and > display:block to make the movie appear and disappear. In Firefox when > display none is actuated the div is hidden and the movie stops > playing. In IE the div is hidden but the sound marches on!. > > In the examples I noticed that their is a remove function, which does > seem to work in IE , sound stops. So I know if I can get this working > it would solve my problems. > > this is basically a one page site that changes the contents of a > container via menu choices and ajax. The ajax content contains the > movies. Below is the complete code of a typical ajax page. I have > included the swobject.js in the head section of the default.asp page. > The problem seems to be getting the movie to play. I noticed that the > movies seem to be defined in the head section, I tried that but that > did not work either. Can someone set me on the right track. Thanks > > > <div id="picDiv" style="background:url(Images/blueman-bg.jpg) no- > repeat;" > > <a href="javascript:unhide('video1');"><img src="http:// > www.epic.ncl.com/resources/images/blue-watch-button.jpg?scale=100" > title="" alt="" /> > </a> > <div id="video1" class="hidden"> > <a href="javascript: unhide('video1');">Close Video</ > a> <br/> > <object data="http://www.epic.ncl.com/resources/files/ > blue_man_group.swf" type="application/x-shockwave-flash" height="420" > width="600" bgcolor="#000000"> > <param name="movie" value="http://www.epic.ncl.com/resources/ > files/blue_man_group.swf" /> > <param name="allowScriptAcess" value="sameDomain" /> > <param name="quality" value="best" /> > <param name="scale" value="noScale" /> > <param name="bgcolor" value="#000000" /> > <param name="salign" value="TL" /> > <param name="FlashVars" value="playerMode=embedded" /> > <param name="wmode" value="transparent" /> > <p>You don't have a flash player so you can't view the video</ > p> > </object> > </div> > > </div> > > -- > 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.
