+ Reply to Thread
Results 1 to 7 of 7

Thread: Work around click to activate for flash in IE

  1. #1
    100percentpartytime is offline x10Hosting Member 100percentpartytime is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    7

    Work around click to activate for flash in IE

    Anyone know if there is a workaround for the "Click to activate" problem with swf files online. I have a swf button and it's just annoying that the user cannot see the action unless they click it first. So far the only workaround I've decided on was checking to see if users are using MSIE then if they are have a link at the bottom of the page telling them to go get firefox because the click to activate doesn't exist there.

    <-- added -->A legit work around.
    Last edited by 100percentpartytime; 09-26-2007 at 10:11 PM.

  2. #2
    Mooseman is offline x10Hosting Member Mooseman is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    90

    Re: Work around click to activate for flash in IE

    :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger

  3. #3
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: Work around click to activate for flash in IE

    A quick method of getting around this annoying problem is to write the flash to your HTML from an external Javascript file.

    Example
    - demo.htm
    HTML:
    Code:
    <html>
    	<head>
    	<title>IE Flash Fix Demo</title>
    	<script language="javascript" src="flashfix.js">
    	</head>
    	<body>
    	<div id="flash_container"></div>
    	<script language="javascript">
    	writeFlash('flash_container');
    	</script>
    	</body>
    </html>
    - flashfix.js

    JavaScript:
    Code:
    function writeFlash(id) {
    	document.getElementById(id).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='200' height='200' id='myflash' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='mymovie.swf' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><embed src='mymovie.swf' quality='high' bgcolor='#ffffff' width='200' height='200' name='mymovie' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";
    
    }

    Another solution is to use SWFObject. SWFObject has alot of great features for embedding flash into your HTML including the ability to detect what version of flash a user's browser is running.


    Finally there is no 'legit' way to make it work. It was introduced by MS as a result of losing a legal patent war =/. Hope this helps anyway.

  4. #4
    dyfuse's Avatar
    dyfuse is offline x10 Sophmore dyfuse is an unknown quantity at this point
    Join Date
    Apr 2006
    Posts
    196

    Re: Work around click to activate for flash in IE

    Another option similar to what Mooseman suggested is the Unobtrusive Flash Objects (UFO) script by Bobby van der Sluis.

    It's a little more complicated than Mooseman's example, but works great! To find out more about it and how to use it: http://www.bobbyvandersluis.com/ufo/

  5. #5
    chewett's Avatar
    chewett is offline x10 Sophmore chewett is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    129

    Re: Work around click to activate for flash in IE

    really you might as well use it as an excuse tyo get sed person to get firefox

    i am not going to start a war but m$ just loses badley and then makes some hemp little thing. firefox has all the edge tha ie has lost

  6. #6
    Sohail's Avatar
    Sohail is offline x10 Spammer Sohail is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    3,052

    Re: Work around click to activate for flash in IE

    Wow! Thanks for this information. I am a flash developer and i am sure this will come in handy in the future.

  7. #7
    satheesh's Avatar
    satheesh is offline x10 Elder satheesh is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Tamil Nadu,India
    Posts
    883

    Re: Work around click to activate for flash in IE

    Thanks for this information.
    I want to buy Some Scripts So Please Click This link:http://affiliate.tufat.com/index.php?id=4384
    Please rate my site:Click here




+ Reply to Thread

Similar Threads

  1. Site just doesn't work (php_
    By mattyranks in forum Free Hosting
    Replies: 9
    Last Post: 07-17-2007, 11:39 AM
  2. {req} Clicks 10 Pts Per Click
    By Derek in forum The Marketplace
    Replies: 14
    Last Post: 11-26-2006, 06:43 PM
  3. links dont work
    By Jake Bullet in forum Free Hosting
    Replies: 1
    Last Post: 09-13-2005, 03:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers