+ Reply to Thread
Results 1 to 4 of 4

Thread: check if flash is installed

  1. #1
    wjh2303 is offline x10 Sophmore wjh2303 is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    139

    check if flash is installed

    ive had a quick google and forum seach and cant readily find the solution im after.

    Unfortunately some of my pages have flash elements do display images. Untill now ive just left it at that, so anyone visiting my site with flash not installed/enabled is going to see a confusing/ugly page when they get to it.

    How can i determine if a visitor had flash so that i can do something along the lines of:

    if(flash is installed)
    print the code to displat the page as normal
    else
    print explanation that flash is required*


    Presumably in JS or something

    *or redirect to non-flash version of the page that could be created at a later date

    TIA

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: check if flash is installed

    Quote Originally Posted by wjh2303 View Post
    ive had a quick google and forum seach and cant readily find the solution im after.
    Google search: flash alternate content. One of the better pages is the third result, "Providing alternative content for SWF files". "Flash Embedding Cage Match" on A List Apart covers various implementations. Whatever you pick, make sure it works if JS isn't supported (which is much more likely given that Flash isn't supported)

    The simplest implementation comes from from the HTML standard, section 13.3.1 "Rules for rendering objects":
    If the user agent is not able to render the object for whatever reason (configured not to, lack of resources, wrong architecture, etc.), it must try to render its contents.
    Just put the alternate content in the <object> element.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    zen-r's Avatar
    zen-r is offline Lord Of The Keys zen-r is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    Location,Location. Nothing else matters ....apparently.
    Posts
    1,937

    Re: check if flash is installed

    I've recently been looking at building a website using a Flash/ xml driven template, & have been wondering about all sorts of issues including the one you mention, plus others such as how to still keep the website search engine friendly.

    In the course of the brief research I've done so far, I found this kit & info from Adobe which should help with the detection ; http://www.adobe.com/products/flashp...detection_kit/.

    I'll probably have to start a thread of my own at some point, asking for advice on the various issues.

    I've discovered so far that Adobe have recently produced the software for search engines such as Google to be able to crawl Flash-only sites for the text they contain - enabling them to now be indexed properly. But it seems that Flash sites still have a major disadvantage in getting good ranking compared to sites which also contain html etc. There seem to be various techniques to help get round this, but it's too advanced for me at this stage.

    Obviously, the advantage of integrating html with Flash sites is that not only do they get crawled & ranked better by Search Engines, but they are also accessible by people who don't have/won't allow scripts & Flash to run in their browser.

    Please keep this thread updated with what you find out & the progress you make - it will be very useful to me & others in a similar position.

    P.S. Here is a Flash template which I am interested in purchasing ; http://flashden.net/item/advanced-xm.../20118?page=35

    Does anyone have any idea how difficult it would be to design an html alternate for the Flash site, & if anyone on this forum was skilled enough, how much they would charge?

    Alternatively, would it be easier for me to find another Flash template somewhere which already has alternate content designed in? If so, any recommendations for something which looks similar to the one I'm considering? Thanks.
    Last edited by zen-r; 07-12-2009 at 02:43 PM.
    For great installation & servicing of Audio Visual systems & equipment
    inc. LCD & Plasma Screens, Loudspeakers, Projectors, Aerials & Satellite Dishes, Lighting effects & controllers, Hifi, Amplifiers, Surround Sound, Home Cinema & Video etc
    -: based around Plymouth, Devon, or anywhere in the southwest of the UK, visit :-

  4. #4
    wjh2303 is offline x10 Sophmore wjh2303 is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    139

    Re: check if flash is installed

    @mission

    That looks perfect ill give it a go, are there any major browsers that dont follow that standard that you know of?

    @zen
    Difficulty creating a html only sister site would depend on your competence/confidence with html and probably JS. However my issue was just over a small flash element to display images, similar to just the flash video player on youtube rather than a whole flash site, so yes you would probably be better off with your own thread, not to mention i believe many people would advise against having an entire site in flash, but i digres...

+ Reply to Thread

Similar Threads

  1. Flash Plug-in Redirection
    By lhyman in forum Tutorials
    Replies: 0
    Last Post: 07-05-2009, 09:41 AM
  2. donde aprender a hacer paginas flash al gusto?
    By ZharkD in forum Ayuda Web
    Replies: 8
    Last Post: 12-02-2008, 09:23 PM
  3. [REQ][$$$]1 page image flash redesign for choclate sales
    By tgkprog in forum The Marketplace
    Replies: 5
    Last Post: 11-17-2008, 09:53 AM
  4. Load a another swf movie in to flash player.
    By satheesh in forum Tutorials
    Replies: 0
    Last Post: 10-20-2007, 01:45 AM
  5. Any Flash creator or superior in flash making
    By stealth_thunder in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 06-11-2005, 06:02 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers