Solved

need to execute flash video and an image below it.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

930 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now