PDA

View Full Version : Tab Content:IE6 swf in iframe - play on load



avdistribution
10-29-2009, 05:00 PM
1) Script Title:
Tab Content Script (v 2.2)
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
3) Describe problem:
I have a video in a swf file on a separate page loading in an iframe in one of the content divs. In Firefox, the video only starts when the div is opened (and stops when closed), but in IE6 it starts when the page is opened. Is there some way to get the video to only play when the div is opened? Or should I ask this question in the flash forum?
Here's the page:
http://generation3inc.com/hvtest.aspx
Here's the div iframe code:


<div id="sc2">
<br/>
<iframe name="iframe" src="documents/hivelvideo.htm" width="550" height="400" scrolling="no" frameborder="no">
</frame>

Here's the target page code;


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0"
width="550" height="400" >
<param name="movie" value="http://www.hi-velocity.com/en/video/esp.swf">
<param name="quality" value="high">
<param name="play" value="true">
<param name="LOOP" value="false">
<embed src="http://www.hi-velocity.com/en/video/esp.swf" width="550" height="400" play="true" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash">
</embed>
</object>

ddadmin
10-29-2009, 11:38 PM
A better script to tab between Flash content is Ajax Tabs Content script (http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm). Use the IFRAME mode to display each of the pages that way.

avdistribution
10-31-2009, 04:47 PM
That does have the desired effect of not firing the swf video when the page is opened, but I'm struggling with getting it to look right. I basically need two tabs, with a flash brochure opening in the default container and then the swf video opening (and playing) only when the 2nd tab is clicked.
If I use the iframe method for the document containing the swf, the iframe covers the other page content when it's tab is clicked (and still plays in IE when the default tab loads).
I really don't understand how to get the swf file loaded in another container div and not play when the default container opens.
Here's an example (http://generation3inc.com/peerless.aspx) of what I'm looking for with the swf playing in the "Product Selection Guide" tab:
http://generation3inc.com/peerless.aspx

ddadmin
11-01-2009, 08:39 AM
On the actual page (http://generation3inc.shop.wosbee.com/PublishedService?file=&pageID=3&action=view&groupID=333&OpenGroups=301,333) you're still using Tabs Content script, not Ajax Tabs Content (http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm). You should try the later, and as mentioned, use the IFRAME mode. This is different from your current set up, which is using the former script and just inserting an IFRAME within each tab content. In the suggested case, the script auto generates just a single IFRAME, and dynamically replaces the src of the IFRAME with the specified document each time a tab is selected. That causes the previous tab content (aka page) to be completely erased first.