492 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
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.

5755 posts
  • Exclusive Author
  • Author had a File in an Envato Bundle
  • Elite Author
  • Has been a member for 5-6 years
  • Sold between 100 000 and 250 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • India
+3 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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
avenue28 says

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

8186 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer 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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
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!.

2114 posts
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
fifty_tons says
492 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
avenue28 says

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

2114 posts
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
avenue28 says

got it. ;)

by
by
by
by
by
by