Solved

need to execute flash video and an image below it.

Posted on 2011-09-21
2
210 Views
Last Modified: 2012-05-12
I have the following script that checks for flash.  if it has it, it plays the .swf.  if it doesn't have flash, it plays the alternate text.   These parts work great.  However, I need to show an image below the flash video, but can't get it to ONLY show when flash is present.  So to reiterate, when flash video plays, it has flash installed...  all good, but I also need an image .jpg to show beneath it.   Here is the script that works

<script type="text/javascript" src="https://tactical-arms.com/template/images/scripts/swfobject.js"></script>
<script type="text/javascript">// <![CDATA[
                  var flashvars = {};
                  var params = {};
                  params.play = "true";
                  params.loop = "false";
                  params.menu = "true";
                  params.quality = "high";
                  params.scale = "noscale";
                        params.allowfullscreen = "false";
                  var attributes = {};
                  swfobject.embedSWF("http://tactical-arms.com/template/images/scripts/test.swf", "myAlternativeContent", "585", "270", "9.0.0", false, flashvars, params, attributes);
// ]]></script>

<div id="myAlternativeContent"><a href="http://www.adobe.com/go/getflashplayer"><img style="margin-top: 20px; margin-bottom: 20px;" src="https://www.xxxx.xxx/ver4.png" alt="Get Adobe Flash player" width="586" height="488" /> </a></div>

I was thinking that just adding a <img Src= somewhere after the swfobject line, but I don't think I have the right syntax.
0
Comment
Question by:rdelrosario
  • 2
2 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 36577636
It's right syntax if Flash Player is not installed user will get your image

0
 
LVL 29

Accepted Solution

by:
dgofman earned 500 total points
ID: 36577657
But if you want to show an image when flash player presents you have to move out myAlternativeContent div

<div id="holder">
	<div id="myAlternativeContent" style="position:static;width:586px;height:488px"></div>
	<a href="http://www.adobe.com/go/getflashplayer"><img  src="https://www.xxxx.xxx/ver4.png" alt="Get Adobe Flash player"/></a>
</div>

Open in new window

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Embedding Flash App/Movie on Website 3 496
Rotating Adobe pdf document 4 313
Web browser crash when play videos 24 290
flash professional 3 11
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question