Flash Detection Script

The Flash detection script generated by Flash 8 doesn't work
with IE7 .....andy fixes out there??

On Wed, 12 Sep 2007 17:48:49 +0000 (UTC), "joeq"
<[email protected]> wrote:
> let's say you have a page with that script and some
flash content on it as
>well... called scriptwithflash.html (catchy, eh?). i want
to be able to have
>that page load if the proper version of flash is found
and redirect to another
>page (ohcrapyoudonthaveflash.html) if it is isn't.
Okay. Now it makes sense. Change this:
if ( MM_FlashCanPlay ) {
window.location.replace("
http://www.leoandsabrina.com/main.html");
} else{
window.location.replace("
http://www.leoandsabrina.com/poop.html");
To this:
if ( !MM_FlashCanPlay ) {
window.location.replace("
http://www.leoandsabrina.com/ohcrapyoudonthaveflash.html");

Similar Messages

  • Browser flash detection script

    I need to put a flash detection scrip on my page as some of
    my friends can't view my page.
    Can you advise?
    Thank You
    Kevin

    ... that is easy, go here
    http://www.adobe.com/products/flashplayer/download/detection_kit/

  • .Exe with Flash detection

    Hey fellow Flash users,
    i'm wondering if anyone could tell me how to publish a EXE
    file in Flash that has an incorporated Flash Detection script.
    For the moment i'm using a AS based detection for my sfw
    file(downloaded from and Adobe site). Problem being that ithe final
    product has to be a selfrunning demo, wich means an exe file
    executing the swf file in a player.(atleast in my case).
    I know it's possible to publish a SWF to an EXE, but by doing
    so, the different files, AS and directories the Action scripts need
    are not incorporated in the EXE file.
    Is there a way to compact all the different AS files,
    directories and swf files to one EXE file ?
    any help will be appriciated.
    greets

    What you have said here doesn't make any sense to me. Flash
    Detection script usually means a way to detect what Flash player
    the user has installed and either adjust itself or recommend that
    the user update their player.
    By publishing an EXE you are bundling the player into the
    file and even if the end user has a different version installed it
    won't matter. The EXE will use the version that is included inside
    the EXE so no detection is necessary.
    Now if your problem is that the external assets aren't
    included in the EXE, then no detection script is going to help.
    There are two ways to address this. Just include the external
    assets on a CD or something. Remember that all load paths will be
    relative to the EXE. It is very easy to construct a self-running
    demo of this sort. Just keep everything nicely organized.
    There are also third party tools which allow for packaging
    everything together into one file. I haven't used them so I don't
    know how well any of them work.

  • Flash detection & express install

    How does flash detection work and express install with the
    new scripts dreamweaver creates for loading flash?

    hi
    I have done the flash detection script and it works for me
    please refer these links
    http://blog.deconcept.com/swfobject/#howitworks
    http://www.adobe.com/devnet/flash/articles/swfobject.html
    thanks

  • Flash Detect

    Hi,
    I ve created a site www.theimperial.in
    The problem im facing is that the end users machine should be
    updated with the latest flash player. secondly i got this
    fullscreen window pop up code from some site which doesnt function
    properly. Can anyone please help me out on the scripting part. I
    have downloaded the flash detection script from adobe. but am
    unable to integrate that into my site as i have very little
    knowlegde bout scripting. Thanks in advance.

    Hi,
    You need;
    http://blog.deconcept.com/swfobject/
    You'll never look back!
    Kind Regards,
    Boxing Boom

  • Flash detection

    I've got a problem with the javascript which should detect
    the flash plugin version, if it is deactivated or if there is a
    flash plugin installed. I deactivated Flash in my browser. Now I
    want my page to tell me that I have to activate the flash plugin.
    If I try it locally on my pc everything works fine. If I try to
    upload it on our server it don't work. and my page shows a broken
    image and seem to find a flash version. Our server is a linux
    mashine. Does anybody know something about this problem? Might be a
    problem to receive the data via HTTP?

    123akru wrote:
    > Hello Paul,
    >
    > i tried to get some help from there. That doesn't work
    unfortunately.
    > Nobody answered my questions :-( I don't think that it
    is a HTML problem
    > because everything works fine locally. Mitght be a
    problem, that
    > informations about the flash plugin are transferred via
    the HTTP Header.
    > Do you have any experiences with it ?
    >
    > Thanks for your help.
    > Greetings!
    HI! below is part of the swfobject code that is located in
    the HTML page.
    The first part in between the divs is displayed if the user
    does not have
    Flash plugin installed.
    The next part has the movie to be played with the version
    that is needed for
    it to be played. in this case its version 8.0.22
    This also works with the so.setAttribute("redirectUrl", IF
    Flash is
    detected but is lower than 8.0.22 then goto ExpressInstall
    BUT IF the users
    version is less than is needed for ExpressInstall to work
    THEN "redirectUrl"
    is used to redirect the user to another html page.
    In that case it would be
    "Errors_warnings/flash_not_detected.asp".
    If you go back to geoff page and scroll down a bit you will
    find that he
    does has some examples of flash detect, flash verison, flash
    expressInstall
    ( which will upgrade the users flash plugin automaticly). and
    has a full
    tutorial.
    Usually people do reply as I am now, you must of hit slow
    week.
    Paul
    <div id="flashcontent">
    Error! You do not have a flash plugin.<BR><a
    href="Errors_warnings/flash_not_detected.asp">Click here
    to get
    plugin.</a></div>
    <script type="text/javascript">
    // <![CDATA[
    var so = new SWFObject("my_flash_movie.swf", "fotester",
    "593", "150",
    "8.0.22", "#FFFFFF");
    so.addVariable("flashVarText", "this is passed in via
    FlashVars");
    so.setAttribute("redirectUrl",
    "Errors_warnings/flash_not_detected.asp");
    so.useExpressInstall('goto_expressinstall.swf');
    so.addParam("wmode", "transparent");
    so.write("flashcontent");
    // ]]>
    </script>

  • Flash detection kit

    I try to use, I runs ok but I don�t know where I put
    information to go after
    installation. Where? And where I can put a image during
    installation?
    <head><meta http-equiv="Content-Type"
    content="text/html;
    charset=iso-8859-1" />
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <script src="AC_OETags.js"
    language="javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    // Globals
    // Major version of Flash required
    var requiredMajorVersion = 8;
    // Minor version of Flash required
    var requiredMinorVersion = 0;
    // Minor version of Flash required
    var requiredRevision = 0;
    // -->
    </script>
    <title>Kaikyo - Culin&aacute;ria
    Japonesa</title>
    <META NAME="title" CONTENT="Kaikyo - Culin�ria
    Japonesa" />
    <META NAME="description" CONTENT="Kaikyo - Site do
    restaurante de comida
    japonesa situado em Botafogo, no Rio de Janeiro. " />
    <META NAME="keywords" CONTENT="***�o, comida,
    restaurante, comida japonesa,
    culin�ria japonesa, sushi, salm�o, cultura
    japonesa, cultura, cozinha
    japonesa, japan, pauzinho, shoyo, sashimi, banana caramelada"
    />
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <style type="text/css">
    html{height:100%}
    html,body {margin:0;padding:0;}
    body{
    text-align:center;
    min-width:650px;
    #flashvertical{
    position:absolute;
    top:50%;
    margin-top:-200px;/* half flash height*/
    left:0;
    width:100%;
    #flashhoz {
    width:624px;/* flash width*/
    margin-left:auto;
    margin-right:auto;
    height:395px;/* flash height*/
    background:#666;
    h1 {color:#fff;margin:0;padding:0}
    </style>
    </head>
    <body bgcolor="#000000">
    <div id="flashvertical">
    <div id="flashhoz">
    <script language="JavaScript" type="text/javascript">
    <!--
    // Version check for the Flash Player that has the ability to
    start Player
    Product Install (6.0r65)
    var hasProductInstall = DetectFlashVer(6, 0, 65);
    // Version check based upon the values defined in globals
    var hasReqestedVersion = DetectFlashVer(requiredMajorVersion,
    requiredMinorVersion, requiredRevision);
    // Check to see if a player with Flash Product Install is
    available and the
    version does not meet the requirements for playback
    if ( hasProductInstall && !hasReqestedVersion ) {
    // MMdoctitle is the stored document.title value used by the
    installation
    process to close the window that started the process
    // This is necessary in order to close browser windows that
    are still
    utilizing the older version of the player after installation
    has completed
    // DO NOT MODIFY THE FOLLOWING FOUR LINES
    // Location visited after installation is complete if
    installation is
    required
    var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
    var MMredirectURL = window.location;
    document.title = document.title.slice(0, 47) + " - Flash
    Player
    Installation";
    var MMdoctitle = document.title;
    AC_FL_RunContent(
    "src", "index_backup.html",
    "FlashVars",
    "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+
    MMdoctitle+"",
    "width", "740",
    "height", "432",
    "align", "middle",
    "id", "detectionExample",
    "quality", "high",
    "bgcolor", "#3A6EA5",
    "name", "detectionExample",
    "allowScriptAccess","sameDomain",
    "type", "application/x-shockwave-flash",
    "pluginspage", "
    http://www.adobe.com/go/getflashplayer"
    } else if (hasReqestedVersion) {
    // if we've detected an acceptable version
    // embed the Flash Content SWF when all tests are passed
    AC_FL_RunContent(
    "src", "kaikyo.swf",
    "width", "740",
    "height", "432",
    "align", "middle",
    "id", "detectionExample",
    "quality", "high",
    "bgcolor", "#FFFFFF",
    "name", "detectionExample",
    "allowScriptAccess","sameDomain",
    "type", "application/x-shockwave-flash",
    'codebase',
    http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
    "pluginspage", "
    http://www.adobe.com/go/getflashplayer"
    } else { // flash is too old or we can't detect the plugin
    var alternateContent = 'teste<BR>'
    + 'This content requires the Adobe Flash Player. '
    + '<a href=http://www.adobe.com/go/getflash/>Get
    Flash</a>';
    document.write(alternateContent); // insert non-flash
    content
    // -->
    </script>
    <noscript>
    Provide alternate content for browsers that do not support
    scripting
    or for those that have scripting disabled.
    Alternate HTML content should be placed here.
    This content requires the Adobe Flash Player and a browser
    with
    JavaScript enabled.
    <a href="
    http://www.adobe.com/go/getflash/">Get
    Flash</a>
    </noscript>
    </div>
    </div>
    </body>
    </html>

    Anyone have any ideas?

  • Help installing flash detection express

    I need some help installing the flash express detection
    script.
    Can anyone advise me on this?
    1) This tutorial assumes that you have already added the
    Flash 8 detection scripts to a web page (as explained in the
    synopsis
    of the implementation process) and have already downloaded the
    Flash Player Detection Kit:
    a) After you've exported HTML with Flash detection from Flash
    8, move the JavaScript code found within the template's
    <head> tag to the same location in your page along with the
    JavaScript include, AC_OETags.js.
    What exactly is it there asking me to do here?
    Export what html with flash detection?
    Are they talking about when I insert the swf movie file?
    Not sure what there saying!
    Can you advise?
    Kevin

    I have several times tried to install adobe flash player (which I'l call ADF for short) and follow each step carefully, to the last step (apparently) stating that ADF is installed,but then I get an email from one source or another asking me to install ADF.  I have gone through this routine a number if times, and have a bunch of "Install ADF" signs scatted all over my desktop (I have an iMac). 
    Most recently,  I have received a message that, in order to install ADF, I need to uninstall all previous ADF's BEFORE I download and install an ADF,  so I download the uninstall App, thinking I will get some instuction, with that download in uninstalling the ADF residuals on my desktop
    Instead, what I get is a potful of UNINSTALL ADF units (which I don't know what to do with, littering my desktop.
    HELP!
    Gary Fry, Adobe ID 204233534

  • Flash Detection Question

    I am trying to include some script for flash detection on my
    site to ensure that my viewers have the right flash player. Does
    the Flash Detection Kit also include detection for ActiveX? The
    reason I ask is because I have a page that some of my viewer have
    trouble seeing and one discovered that she could see the page after
    her flash player AND ActiveX were updated. I am not sure whether my
    viewers problem is an old flash player or old ActiveX, but I need
    to make sure both are up to date first.
    If the Flash Detection Kit does not detect ActiveX does
    anyone know where I can find code to do that?
    Thanks,
    Sharon

    I use swfObject for Flash detection. It's easier to control
    than the Adobe solution and allows you to provide plain html
    alternate content:
    http://blog.deconcept.com/swfobject/

  • Help Editing code from a published html file with flash detection enabled from flash

    hi guys ive publish a html file with flash detection enabled from flash
    heres the code from the publish html:
    <!-- saved from url=(0013)about:internet -->
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>main</title>
    <script language="javascript"> AC_FL_RunContent = 0; </script>
    <script language="javascript"> DetectFlashVer = 0; </script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    // Globals
    // Major version of Flash required
    var requiredMajorVersion = 9;
    // Minor version of Flash required
    var requiredMinorVersion = 0;
    // Revision of Flash required
    var requiredRevision = 45;
    // -->
    </script>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <script language="JavaScript" type="text/javascript">
    <!--
    if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
         alert("This page requires AC_RunActiveContent.js.");
    } else {
         var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
         if(hasRightVersion) {  // if we've detected an acceptable version
              // embed the flash movie
              AC_FL_RunContent(
                   'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
                   'width', '800',
                   'height', '600',
                   'src', 'main',
                   'quality', 'high',
                   'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                   'align', 'middle',
                   'play', 'true',
                   'loop', 'true',
                   'scale', 'showall',
                   'wmode', 'window',
                   'devicefont', 'false',
                   'id', 'main',
                   'bgcolor', '#ffffff',
                   'name', 'main',
                   'menu', 'true',
                   'allowScriptAccess','sameDomain',
                   'allowFullScreen','false',
                   'movie', 'main',
                   'salign', ''
                   ); //end AC code
         } else {  // flash is too old or we can't detect the plugin
              var alternateContent = 'Alternate HTML content should be placed here.'
                   + 'This content requires the Adobe Flash Player.'
                   + '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
              document.write(alternateContent);  // insert non-flash content
    // -->
    </script>
    <noscript>
         // Provide alternate content for browsers that do not support scripting
         // or for those that have scripting disabled.
           Alternate HTML content should be placed here. This content requires the Adobe Flash Player.
           <a href="http://www.macromedia.com/go/getflash/">Get Flash</a>
    </noscript>
    </body>
    </html>
    now since the default codes places my flash movie on upper left corner, ive made my own tables with the flash on it, how or where do i place this code to the upper codes?
    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th valign="middle" scope="col"><table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <th height="600" bgcolor="#333333" scope="col"><script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','800','height','600','src','main','quality','high','pluginspage','http://www.adobe.com /shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','main' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="600">
              <param name="movie" value="main.swf">
              <param name="quality" value="high">
              <embed src="main.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="600"></embed>
            </object></noscript></th>
          </tr>
        </table></th>
      </tr>
      <tr>
        <td height="30" bgcolor="#990000"><table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <th scope="col"><table width="800" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <th scope="col"><div align="left" class="style1">Copyright 2009 St. Paul of the Cross Parish. All Rights reserved.</div></th>
                <th width="400" scope="col"><div align="right" class="style1">Usage outside our permissions guidelines requires our prior written consent.</div></th>
              </tr>
            </table></th>
          </tr>
        </table></td>
      </tr>
    </table>
    Tnx in advance!

    Hi
    Can you tell me which version of dreamweaver you are using (and flash pro, if you have it), as the code you provided has element of a number of different versions (e.g. your js flash files are reasonably new, but your flash inserted into the html body is old, but with the cs3 version of flash player indicated!). Also the detect flash file is no longer required.
    PZ

  • Browser detection script

    Hello,
    I'm wondering how playback in Flash or on older browsers work. Does the published content run a browser detection script?
    Thank you.

    Actually this seems to work better:
    if (accept.indexOf("vnd.wap.wml") >= 0) {
         // I have a WAP browser...
    }I thought Opera (being WML compatible) would load the WML content, but thankfully it does not broadcast it in the Accept header.
    Thanks.

  • Detection script -- play alternative movies?

    How can I create alternative content like a quicktime movie
    to play as the alternative content, if user doesn't have flash
    player 8? I can put text or images in script, but quicktime or
    other media embeded in script doesn't show??

    I have a detection script put in my flash movie, which is
    embeded in my Dreamweaver file, from my Flash 8 authoring. It is
    for Flash 8. I want user's who don't have Flash 8 player, to see a
    quicktime version of that movie (in it's quicktime version). In the
    script section "alternative content" I can only place text or
    images and not quicktime or older flash movies -- it doesn't allow
    me to. Is there a way to do this??

  • Video bookmark (videomark) using flash/action script?

    Video bookmark is called videomark.
    Anybody did videomark using flash?.
    Is there any good place, i can learn more about videomark in
    flash?.

    yeah..........
    Can I have a small example on this ... so that it would be very easy for me to understand....
    I am a new bee in flash action scripting......
    Thanks & Regards

  • Can access c++ library from flash action script by using SWC lib?

    We want to develope a Flash application based on Windows CE 6.0 R3. The application aims to communicate with middleware libraries written in C/C++. Is it possible to create SWC file using the c++ library file so that we can load this as a component in fla project for accessing the library functions from flash action script 3.0? OR Is there any simple way to access c++ library from action script?
    Thanks,
    Saumini

    I don't think Alchemy will help you.  The reason is Alchemy does not give socket capabilities beyond what Flash provides.

  • How do you auto reconnect a live video stream broadcast in flash action script 3?

    how do you auto reconnect a live video stream broadcast in flash action script 3?
    so i don't have to ask people to refresh the page if the connection drops
    i copy pasted the live video stream broadcast files and script from here;
    http://www.adobe.com/devnet/adobe-media-server/articles/beginner_live_fms3.html
    http://www.adobe.com/content/dotcom/en/devnet/adobe-media-
    server/articles/beginner_live_fms3/_jcr_content/articlePrerequistes/multiplefiles
    /node_1278314297096/file.res/beginner_live_fms3.zip
    i don't know what i'm doing

    Why don't you use several layers with appropriate alpha properties, and move these layers according to the mouse events?

Maybe you are looking for

  • Problem with merged help

    argggh. ok. i (thought i) followed peter grainge's merged help on a simple merged webhelp project, but am having a devil of a time producing the desired result, and updating the published files to show what's been merged (e.g., the child projects). t

  • Regarding Connection to ECC 6.0

    Hi All, This is regarding connection to ECC 6.0 I have created a system in System Admin ---> System Landscape --> My_Folder For the system I have given the foll. parameters for Connector Application Host SAP Client SAP System Id SAP System Number Ser

  • Switch users/accounts in snow leopard

    i have a visitor coming to my house today and i am trying to figure out how to switch users. i followed all the instructions on the site about checking the necessary boxes in system preferences/accounts. however, my icon in the menu bar and the login

  • Calling HR_CHECK_AUTHORITY_INFTY with a specific UNAME

    Hi all, i'm realy confused about this. when a login with the user HCMTEST40 and go to PA20 and enter PERNR 00000620, i can access Infotype 0001 of the PERNR 00000620. I'm am trying to make a report, which checks if the user HCMTEST40 has access to In

  • How can I modify File Explorer to open This PC by default, instead of the new Home view?

    The methods that worked in Windows 8.1 no longer work. I tried this method but all that did was mess-up the Home view... http://superuser.com/questions/819521/how-to-make-windows-10-file-explorer-open-this-pc-by-default