I want to display the Chart of swf type. It is displayed proeprly in firefox and ie but in chrome it is not displayed. In chrome the chart will be displayed after a click on the chart div. Data for chart is loaded properly but will be displayed only on click.
my code is:
<?php
$link = "/flash/Chart.swf?theXml=".urlencode(url_for('#chartCompare?series='.$seriesName.'&id='.$seriesId.'&source='.$sourceName,true));
?>
<div style="margin-top:10px; margin-bottom:10px">
<object style="z-index:-1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="560" height="180" id="Chart" align="middle" >
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<PARAM NAME="WMODE" VALUE="transparent">
<param name="movie" value="<?php echo $link; ?>" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
<embed src="<?php echo $link; ?>" wmode="transparent" quality="high" bgcolor="#ffffff" width="560" height="180" name="Chart" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
Anybody have any idea? ...Thanks in advance.
Try removing param movie, worked for me. It's kind of a hack but you just turn off that line if chrome (or can try !IE since firefox probably doesn't need it either).
Others have had luck with swfobject loading: http://www.adobe.com/devnet/flashplayer/articles/swfobject.html
Related
I am working on a html project with video, and need to work with this video. I am hoping to apply two style
width: 550px;
controls preload="auto;
but am not sure where to place it. I need the video to preload due to its long loading time! Code examples have always shown a tag, but this code does not have any.
<object id="flashObj" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0">
<param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9?isVid=1&isUI=1" />
<param name="bgcolor" value="#FFFFFF" />
<param name="flashVars" value="videoId=3286763175001&linkBaseURL=http%3A%2F%2Fmedianetwork.oracle.com%2Fvideo%2Fplayer%2F3286763175001&playerID=1787102915001&playerKey=AQ~~,AAAAAFcSbzI~,OkyYKKfkn3xPOduPEsqhjskdCvDxqymz&domain=embed&dynamicStreaming=true" />
<param name="base" value="http://admin.brightcove.com" />
<param name="seamlesstabbing" value="false" />
<param name="allowFullScreen" value="true" />
<param name="swLiveConnect" value="true" />
<param name="allowScriptAccess" value="always" />
<embed src="http://c.brightcove.com/services/viewer/federated_f9?isVid=1&isUI=1" bgcolor="#FFFFFF" flashVars="videoId=3286763175001&linkBaseURL=http%3A%2F%2Fmedianetwork.oracle.com%2Fvideo%2Fplayer%2F3286763175001&playerID=1787102915001&playerKey=AQ~~,AAAAAFcSbzI~,OkyYKKfkn3xPOduPEsqhjskdCvDxqymz&domain=embed&dynamicStreaming=true" base="http://admin.brightcove.com" name="flashObj" width="640" height="358" seamlesstabbing="false" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" swLiveConnect="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" style="width: 550px;"></embed>
</object>
If someone could please shorten and explain what some of the essential tags do that would be greatly appreciated.
id is the element of the video, the param tag helps to define the plugins with the element, http://www.w3schools.com/tags/tag_param.asp , this gives a good example.
I am coding interactive short story and and embedded my Flash into my HTML page but it is not playing at all. It's just a black screen. The animation plays fine when using Safari though.
Help would be welcome ASAP.
This is the code I used to embed the swf file:
<div id="sleepingvideo">
<object width="720" height="510">
<param name="movie" value="SC_Flash.swf" />
<param name="allowfullscreen" value="true" />
<param name="scale" value="noScale" />
<param name="salign" value="lt" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="path=deuter" />
<embed margin-height="100" width="600" height="400" src="survey.swf"
flashvars="path=deuter" allowfullscreen="true"
allowscriptaccess="always" name="player1" scale="noScale"
salign="lt"></embed>
</object>
</div>
I advice you to use SWFObject for flash embedding. It works everywhere.
could anybody tell me how could I embed this video to a fancybox popup?
Video: http://www.tm-tube.com/video/28199/XTA+-+WAR+4+-+THC+VS+3DMAX+-+R3
Website: http://thc-racing.ucoz.com/index/gallery/0-9
Under: Having Fun! i would like to replace that image with the video from link above.
Is that possible?
Thanks!
First, go on TMTube and get the embed code for your video.
Second, use the Inline content way described in the Fancybox doc :
<a class="fancybox" id="inline" href="#video">This shows your video</a>
<div style="display:none">
<div id="video">
<script type="text/javascript" src="http://www.tm-tube.com/js/embed.js.php?id=28199"></script>
<noscript><object type="application/x-shockwave-flash" data="http://www.tm-tube.com/vimp.swf?playlistmode=media&mediaid=28199&webtv=false&hosturl=http%3A%2F%2Fwww.tm-tube.com%2Fflashcomm.php" id="flashcontent_511cc6b591bcf" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" name="c6a80378-3eb2-47e7-8415-ba1f7cff037e" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="480" height="270" align="middle"><param name="movie" value="http://www.tm-tube.com/vimp.swf?playlistmode=media&mediaid=28199&webtv=false&hosturl=http%3A%2F%2Fwww.tm-tube.com%2Fflashcomm.php" /><param name="width" value="480" /><param name="height" value="270" /><param name="align" value="middle" /><param name="quality" value="high" /><param name="allowscriptaccess" value="always" /></object></noscript>
</div>
</div>
Working jsFiddle.
I used
<object type="application/x-shockwave-flash" onmouseup="document.location='http://www.pageopensafterclick.com'" height=50 width=150>
<param name="wmode" value="transparent" />
<param name="movie" value="myswffile.swf" />
</object>
to embed my swf file and link it to another page, but it is only working in Chrome, I.E., opera but not in Firefox. Can someone please tell me a code which works in all the browsers.
I would be so thankful.
<div onmousedown="window.location.href='new_location'">
<object>
<param name="movie" value="3.swf">
<param name="wmode" value="transparent" />
<embed wmode=transparent allowfullscreen="true" allowscriptaccess="always" src="3.swf"></embed>
</object>
</div>
I am trying to make a mockup of this website for a class project: http://www.smokeybear.com/campfire-safety.asp
I have all the elements loaded just fine, except I can't seem to make it load the flash\clock.swf right above the Approximate number of acres burned on the right-hand side.
Since I don't have a copy of the swf saved locally on my hard drive, I was trying to reroute it to the actual url of the swf. What it is currently showing is the grey space for the counter, without the orange numbers. Here is the clip of code from the page source:
<script type="text/javascript" language="JavaScript">getCounterFlash()</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="190" height="45" id="clock" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://www.smokeybear.com/flash/clock.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="http://www.smokeybear.com/flash/clock.swf" quality="high" bgcolor="#000000" width="190" height="45" name="clock" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
Here is the getCounterFlash() from the js:
function getCounterFlash() {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="190" height="45" id="clock" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://www.smokeybear.com/flash/clock.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="opaque"><embed src="http://www.smokeybear.com/flash/clock.swf" quality="high" bgcolor="#ffffff" width="190" height="45" id="clock" name="clock" align="middle" allowScriptAccess="sameDomain" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}
Haven't really played with embedded flash objects too much, so could anyone advise on what values I should change to get it to work like it is working on the original site? Thanks.
I may not entirely understand your problem.
Assuming you have tested various browsers.
Seems to me you are missing a second path. If you go to the originals, and look at this example: http://kb2.adobe.com/cps/415/tn_4150.html
there are two movie_name.swf
and you have two close tags for js?