492 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
avenue28 says

Hi guys! I’m using SWFObject 2.0 to embed my swf. Now from what I know, if there is no flash plugin on the user’s computer, then the content put in the alternative ‘div’ tag is displayed. But what I want to do here is to redirect the user to another page if flash plugin is not installed.

I’ve googled it and found this, but it is not working for me. It doesn’t even display the flash content. Any ideas on how it can be achieved.

Also, I’d like to know if you guys are aware any method to disable flash plugin of my browser so that I can test it out. I’m using firefox 3.0. I found flashblock but it is not working. Thanks.

6083 posts
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+8 more
VF says
Also, I’d like to know if you guys are aware any method to disable flash plugin of my browser so that I can test it out.

If your purpose of test is just to preview the alternative content, then simply enter a higher player version in the code (say “11” ) instead of 8, 9 or 10.

492 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
avenue28 says

wow…that worked like a charm. Thanks VF. Would love to know if anyone can come up with a solution for redirecting…

8291 posts Community Moderator
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Attended one of our Meetups around the world
+9 more
MSFX Moderator says

havent tried it but if you have some PHP within the div that is displayed when flash player isnt installed you could get that to redirect using header(redirect-url-here)

492 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
avenue28 says
havent tried it but if you have some PHP within the div that is displayed when flash player isnt installed you could get that to redirect using header(redirect-url-here)

Not working… :( That is because the header information is already sent by the time it reached the ‘div’ tag. So it cannot modify the headers!

492 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
avenue28 says

ha…got it!!! :)

pastie

In this link, redirectUrl was placed in double quotes and it must be placed in single quotes as I wrote here. Thanks for the help guys!.

2117 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+3 more
fifty_tons says
492 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
avenue28 says

wow…that is a lot of code… :D Thanks for sharing though fifty. I’ll definitely find use for it.

2117 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+3 more
fifty_tons says

no problem :). I forgot to mention, that’s the index.html file. For example www.yousite.com has that index.html, and if flash player (the right version) is found the user can be redirected to www.yoursite.com/flash, and if not, to www.yoursite.com/noflash.

492 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
avenue28 says

got it. ;)

by
by
by
by
by
by