Solved

need to execute flash video and an image below it.

Posted on 2011-09-21
2
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
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.

707 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