Solved

need to execute flash video and an image below it.

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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 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.

708 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

18 Experts available now in Live!

Get 1:1 Help Now