Redirect Your MySpace Traffic with Flash

Get the WebProNews Newsletter:

[ Social Media]

Well, we all know that MySpace pages have the potential to drive a ton of traffic.

Sure, it takes some work to build an extensive network, but eventually many people have gotten their MySpace pages to the point where they might have 1000+ uniques per day running through these pages.

Many slightly devious minds have realized the selling potential of these pages, and place affiliate programs on their MySpace pages, hawking everything from ringtones to jewelry to pr0n and other less ethical products. Now, if you are using MySpace for affiliate marketing, I am sure that you must be somewhat frustrated with the limited freedom you have in creating Myspace pages. In short, they suck.

So, wouldn’t it be nice if you could redirect all of your MySpace visitors to a landing page or website of your choice? Well, this isn’t nearly difficult as you might think. Let’s set up a Flash redirect. To pull this off, you will need a Linux box, and a text editor, and a server of your own somewhere.

First things first, you must install the Ming package. Ming is a library for generating Macromedia Flash files (.swf). This can be done in any Debian based Linux distribution by running:

apt-get install libming-util

Now, in your favorite text editor, create a file with the following text:


Substitute the URL for the site you want to redirect to in place of www.example.com’ above. Save this file as redirect.as. Now run the command:

makeswf redirect.as

This will produce a file called out.swf. Upload this file to a webserver where you can now fetch it from an external page.

The final step is to include the new flash file in your MySpace page. Include the following code somewhere on your MySpace page:

<embed allowScriptAccess="always" allowNetworking="internal" enableJavaScript="false"
src="http://www.example.com/path/to/out.swf" quality=high
type="application/x-shockwave-flash" width="200" height="200">

Make sure to change the src tag in the code above to point to the location of your out.swf. This will enable you to redirect your visitors to the page you specified when creadting your redirect.as. Good Luck!

P.S this may not work for much longer. MySpace is upgrading to Flash 9. This code may or may not work. The issue is that MySpace is now forcing allowScriptAccess="never" on all embeds, which stops the browser from redirecting. If anyone knows how to avoid this, please comment!


Bookmark WebProNews:

Did you like this article? Keep up with Brian’s expert search optimization tips and tricks at http://www.caydel.com

Redirect Your MySpace Traffic with Flash
Top Rated White Papers and Resources
  • http://www.myspace.com/ChairmenoftheBoard9909 adrian the great

    this code does not work any more myspace has upgraded to flash 9

  • Guest

    I did this a slightly different way round (probably to the same effect) by using Macromedia (well adobe) flash with the getURL line.  It worked for me, but not for a friend I asked to try it out. Not sure what’s going on here, but at least i got it sort of working

  • Join for Access to Our Exclusive Web Tools
  • Sidebar Top
  • Sidebar Middle
  • Sign Up For The Free Newsletter
  • Sidebar Bottom