Solved

need to execute flash video and an image below it.

Posted on 2011-09-21
2
216 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

739 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