Discover & Rate New Music Check out ChartVote. Promote the music you like.

Archive for February, 2007

MySpace Flash Workaround Hack

Last year MySpace was attacked by a flash based worm which caused MySpace to disable links from flash including getURL by appending the following properties to your object tag:

HTML:
  1. <param name="allownetworking" value="internal" />
  2. <param name="allowScriptAccess" value="never" />
  3. <param name="enableJSURL" value="false" />
  4. <param name="enableHREF" value="false" />

Yeah now that sucks. You say: "What do I do now? My cool flash widget I've spent so much time working on doesn't work properly in MySpace! Ahhh!!"

Enter the Hack
Now this isn't pretty and I don't like having to do this at all, but it works. The solution is to add a relatively positioned div that hovers on top of your flash with a transparent gif thats linked to the page you originally wanted to link to from your flash.

Example Code

HTML:
  1. <embed src="http://www.yourflashmovie.com/file.swf" width="221" height="334" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
  2. <div style="width: 90px; position: relative; top: -38px; left: 65px;">
  3. <a href="http://www.whatyouwanttolinkto.com"><img src="http://www.domain.com/blank.gif" border="0" width="100" height="20"></a>
  4. </div>

Just set the size of the GIF to the size of the region you want to be linkable and position the div correctly over that region and voila...you have a MySpace flash workaround hack.

I've tested this in Firefox 2 and IE 7. Anyone care to test this in Safari 2?

Firefox Flash Bug UPDATE

This is an update to: http://www.findmotive.com/2006/10/02/firefox-flash-bug-update/

So far upgrading to Flash 9 and restarting Firefox has seemed to have fixed this issue. So far so good. I'll keep ya posted.

RSS Feed



Recommended Sites