We help IT Professionals succeed at work.

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

iflash
iflash asked
on
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.
Comment
Watch Question

Commented:
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
Commented:
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!

Author

Commented:
Great solution - works perfectly now. Thank you!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.