[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Bypassing "Click to ACTIVATE and USE control" on flash animation that works in both IE 7.0 & Firefox 2.0

Posted on 2008-01-27
3
Medium Priority
?
337 Views
Last Modified: 2010-04-21
Hi All,

I've got a nice flash animation for my website.

My big problem is, you will need to click on it to activate it - which is annoying to a lot of browsers.

I need a script in ASPX .NET 2.0 that will somehow bypass and ignore the activate part - that works on both IE 7.0 and Firefox 2.0.

The webpage is in: http://www.alyka.com.au/volume/Default.aspx

I currently use Visual Studios 2005 (and master pages - MasterPage.master) for my code.

Thank you.
0
Comment
Question by:iflash
  • 2
3 Comments
 
LVL 3

Expert Comment

by:bmcvicar
ID: 20753521
Hi iflash,

A while back I ran into the same issue and found a fix on Adobe's site:
http://www.adobe.com/devnet/activecontent/articles/devletter.html

Download this sample from the page, it should have everything you need.
http://download.macromedia.com/pub/developer/activecontent_samples.zip
0
 
LVL 3

Accepted Solution

by:
bmcvicar earned 1000 total points
ID: 20753615
iflash,

After downloading the sample just copy the scripts over and make the following modifications to your code:

(Add to head)
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="Scripts/AC_RunActiveContent.js" language="javascript"></script>

(Replace Flash Content)
        <!-- Begin: Flash Content -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
  alert("This page requires AC_RunActiveContent.js");
} else {
  AC_FL_RunContent(
  'codebase', 'https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0',
  'width', '800',
  'height', '250',
  'src', 'images/splash',
  'quality', 'high',
  'pluginspage', 'https://www.macromedia.com/go/getflashplayer',
  'align', 'middle',
  'play', 'true',
  'loop', 'false',
  'scale', 'noscale',
  'wmode', 'window',
  'devicefont', 'false',
  'id', 'flash-animations',
  'bgcolor', '#ffffff',
  'name', 'splash',
  'menu', 'false',
  'allowScriptAccess','sameDomain',
  'movie', 'images/splash',
  'salign', ''
            );
      }
</script>
<noscript>

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="250" id="HeroImage" align="middle">
  <param name="allowScriptAccess" value="sameDomain" />
  <param name="movie" value="images/splash.swf" />
  <param name="quality" value="high" />
  <param name="bgcolor" value="#ffffff" />
  <embed src="images/splash.swf" quality="high" bgcolor="#ffffff" width="800" height="250" name="HeroImage" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
        <!-- End: Flash Content -->

Hope this does the trick!
0
 

Author Closing Comment

by:iflash
ID: 31425385
Great solution - works perfectly now. Thank you!
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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

607 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