SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Peterborough, England
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have used the following script to determine which version of my site (Flash or Non-Flash) visitors will see:
    <HTML>
    <HEAD>
    <TITLE>FlashPlanet</TITLE>
    <meta name="GENERATOR" content="FlashPlanet.com Script Generator">
    </HEAD>

    <BODY BGCOLOR=#000000 TEXT=FFFFFF LINK=FFFFFF>

    <SCRIPT LANGUAGE="JavaScript">
    <!--
    var useFlash = navigator.mimeTypes &&
    navigator.mimeTypes["application/x-shockwave-flash"] &&
    navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;

    //-->

    </SCRIPT>
    <SCRIPT LANGUAGE="VBScript">
    <!--
    On error resume next
    useFlash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))
    -->

    </SCRIPT>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    if ( useFlash ) {
    window.location = "thispagecontainsflash";
    } else {
    window.location = "thispagedoesnotcontainflash";
    }
    //-->
    </SCRIPT>

    </BODY>
    </HTML>


    The problem i have, is that i have had a report that someone was taken to the Flash version of my web site, but i could they could not see the Flash parts of the site.

    I can only think that this is because they have Flash 1, 2, or 3, whereas i am creating in Flash 4. Does anyone think this is the case? Or do you think there is another problem i am encountering?

    If there is a problem with the Script i have, do you know where i can find a better one. Or is there a way that i can save Animations created in Flash 4,into Flash 1? I have tried clicking on "Flash 1" after selecting to save my animation, but it will not let me save in the Format of Flash 1, for me to see if this is indeed the problem.

    I look forward to peoples comments and hope that my site will soon be available to everyone, showing the appropriate version :-)



  2. #2
    SitePoint Wizard jonese's Avatar
    Join Date
    Jul 1999
    Location
    Powder Springs GA (Atlanta)
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you will need to let you audience know that they need to upgrade to Flash 4.0 or better.

    As for saving it to a differance version i'm not sure but it would seem like the option would be available as either a save as, or export.

    Also i'd look for a JS that actually checks for version 4.0 of flash.

    ------------------
    Eric Jones - SitePoint Administrator
    http://www.sitepoint.com
    eric@sitepoint.com
    Personal Site

  3. #3
    SitePoint Guru CJ's Avatar
    Join Date
    Apr 2000
    Location
    Mechelen, Belgium, Europe
    Posts
    684
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're making it too difficult.

    Make your first page redirect to a HTML page in 2 secs and insert on the SAME first page a flash animation which redirects your visitors to a flashed page after 0 secs.

    Christophe

  4. #4
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Since you want them to have Flash 4 here's an idea.

    Make a small 1x1 Flash app which uses a feature only in Flash 4. And after it uses the Flash 4-only feature make it redirect to flash_4.html or the Flash 4-enabled page. If the visitor doesn't have Flash 4 then they'll stay at that same page.

    I can't help you with the actual creation, just the logic. I'm pretty bad at Flash.

    p.s. I just tried to elaborate on what Freesources said before me...

    [Edited by d3v on 08-25-2000 at 02:11 PM]

  5. #5
    SitePoint Evangelist
    Join Date
    May 2000
    Location
    Canada
    Posts
    533
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hehe, i did something like what d3v said when i used flash.. its not all that efficient

    a little flash button will cause IE's activex features to go download the flash4 plugin and give the viewer a popup .. most are afraid to click yes...

    ---------------------------
    myONLYhost.com: your ONLY host, 'nuff said


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •