Log in

View Full Version : Myspace Flash Link



dillankid
03-01-2009, 06:31 PM
Myspace disables "get_url" links in flash, so you have to work around it. I tried to wrap the object tag in an <a href=" tag which works in all browsers but IE and Opera. Does anyone know why, or another way to link a flash image? It's not illegal to do this on Myspace, they're just trying to monitor the links so that they can stop phishing - which they can't do with a get_url. So, any ideas on a workaround?

Here's what I have on an example myspace:

http://www.myspace.com/judahgraphicsmusictest



<a href="http://www.myspace.com/loudandclearishot">
<object type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" height="100" width="450" data="http://www.judahgraphics.com/loudandclear/flashbanner.swf">
<param name="allowScriptAccess" value="never" />
<param name="allowNetworking" value="internal" />
<param name="movie" value="http://www.judahgraphics.com/loudandclear/flashbanner.swf" />
<param name="wmode" value="transparent" />
<param name="quality" value="high" />
</object></a>

Medyman
03-01-2009, 06:48 PM
Myspace disables "get_url" links in flash, so you have to work around it. I tried to wrap the object tag in an <a href=" tag which works in all browsers but IE and Opera. Does anyone know why, or another way to link a flash image? It's not illegal to do this on Myspace, they're just trying to monitor the links so that they can stop phishing - which they can't do with a get_url. So, any ideas on a workaround?

Here's what I have on an example myspace:

http://www.myspace.com/judahgraphicsmusictest



<a href="http://www.myspace.com/loudandclearishot">
<object type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" height="100" width="450" data="http://www.judahgraphics.com/loudandclear/flashbanner.swf">
<param name="allowScriptAccess" value="never" />
<param name="allowNetworking" value="internal" />
<param name="movie" value="http://www.judahgraphics.com/loudandclear/flashbanner.swf" />
<param name="wmode" value="transparent" />
<param name="quality" value="high" />
</object></a>


As you've found out, you can't just wrap an anchor tag around the object element. The only solution I can think of is to place an invisible target above the Flash.

So, create a transparent gif. Next, add it to your markup and wrap it in an anchor tag. Something like this:


<a href="path/to/link" title="invisible link"><img src="transparent.gif" alt="invisible target"></a>

Next, you could use CSS (absolute and/or relative positioning) to position the transparent anchor (resized to whatever size you need) above the Flash. So, when someone clicks on the Flash, they're actually clicking on the image.

Christy23
09-24-2009, 05:08 AM
Hey! I was wondering if you could help me out. I'm pretty close to coding illiterate. Just kind of learning as I go...could you help me out with a more specific example?? Thanks for any help you can give me!!