Nested Flash..?

Not terribly experienced with flash, as may be evidenced by
my question. I've designed a flash header for my website....in this
header, I need to include a few flash buttons that have already
been compiled into .swf form. The buttons themselves have a bit of
animation built in that I would like to have executed when the
viewer rolls over the button, just as they behave by themselves.
I tried achieving this effect by simply layering the flash
buttons on top of the flash header using dreamweaver, but the
buttons render themselves invisible. This seems like a simple
problem, help!
-cfe

I'm confused...see below...
cfe_admin wrote:
I need to include a few flash buttons that have already been
compiled into .swf form.
So *you* are the author of these buttons - meaning you have
the FLAs?
The buttons themselves have a bit of animation built in that
I would like to have executed
> when the viewer rolls over the button, just as they
behave by themselves.
Lost uou here - if the rollOver functionality has been added
already, then why are you saying you
would like to have it executed on rollOver? You contradict
yourself - first you say they have
animation "built-in" then mention that you would like them to
have rollOvers - do they not?
>
> I tried achieving this effect by simply layering the
flash buttons on top of
> the flash header using dreamweaver,
Achieving what "effect"? The rollOver? You do not need to
achieve this outside of flash - you do it
inside of flash and then publish to SWF.
but the buttons render themselves
> invisible.
"render" themeslves? You must have done something to make
them invisible - SWFs don typically do
things like this on their own.
This seems like a simple problem, help!
it could very well be a simple problem but I think you have
made it more complicated because I cant
understand what it is you have made and how you are
incoporating it into an HTML page - can you
provide a URL?
--> **Adobe Certified Expert**
--> www.mudbubble.com
--> www.keyframer.com

Similar Messages

  • Problems with fullScreenSourceRect in nested Flash movie

    I've got a Flash movie I'm updating to add the fullscreen
    property to my clients' videos. Problem is I've added all the
    necessary ActionScript and HTML code as Labs suggests and the
    fullscreen property does work but not exactly. The video FLV
    Playback component is nested inside of another .swf movie via an
    empty movie clip on the stage. And that MC is not at 0,0. Problem
    is when I go fullscreen even though I get the right width and
    heights of the rectangle from the fullScreenSourceRect property.
    The X and Y are out of wack and not in the right place. So is there
    a way I can change the following property so it knows where X and Y
    really are instead of 0,0?
    Stage["fullScreenSourceRect"] = new Rectangle(
    feature.x, feature.y,
    feature.width, feature.height);

    the CSS z Index setting is the ticket...
    http://www.w3schools.com/Css/pr_pos_z-index.asp
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF

  • How do I nest flash objects in HTML

    Here is the code that I entered it gets errors when I check
    the coding....I found our something about Flash Satay from this
    link right here:
    http://alistapart.com/articles/flashsatay......is
    this the most effective way of incorporating Flash objects? If
    someone could assist me I would appreciate it....below is the
    folling code that I am working with.
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
    width="770" height="175">
    <param name="movie"
    value="edited%20photos/homemasthead.swf">
    <param name="quality" value="high">
    <embed src="edited%20photos/homemasthead.swf"
    quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="770"
    height="175"></embed></object>

    I recomend using this:
    http://code.google.com/p/swfobject/

  • Nested flash files in Captivate

    I have 3 swf animations in my Captivate file. When I run the
    published Captivate file in IE, the animations don't always load
    properly - particularly if I fast forward or go backward. I've
    spent days trying to figure this one out. When I run the swf file
    (that Captivate creates during publishing) in the Flash player, it
    works perfect. When I run it in Firefox it works perfect. BUT, when
    I run it in IE 6, the problems occur....and its never consistent.
    Sometimes they load, sometimes they don't. I'm assuming the problem
    is coming from IE 6. Has anyone else experienced this? Is there a
    fix for this?
    Thank you in advance for any help you can provide.
    Bill

    Like ive said in this topic, i need to know where Altartifact put his files in his iDisk, too.
    Ive tried all that i know, location in the Web folder, site folder, "my website" folder... Link with "../", with .//"... xD
    theres is my code, any idea ?
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v ersion=7,0,19,0" width="611" height="511" title="flash_accueil">
    <param name="movie" value="WHEREIS_MY_FILE??" />
    <param name="quality" value="high" />
    <embed src="WHEREIS_MY_FILE??" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="611" height="511"></embed>
    </object>
    Maybe there is an error in this... because ive tried to use it with a FTP server, and the ".swf" animation is "not charged"... and its in the main page files folder !
    I cant understand... this code was working with iWeb Enhancer... :/

  • SWF project now must be on DVD but is distorted

    Hi -
    I made this animation with the end result in mind that it would only be shown via the web/swf/flv - 480x360. It looks great.
    Now I'm being asked to put it on a DVD so it can be played on a DVD player on TV but it's all whacked out.
    I know this is a common problem but I don't know the solution. Is there a setting in AE7-Mac that will handle this conversion??
    TIA some advice.
    JL

    Well, SWF is full head-on RGB and does not contain color profiles or Gamma corrections (it's all done by Flash Player) and without any special prerequisites, conversions may shift colors. Therefore, when rendering from AE, you may be able to improve matters by force-assigning color profiles to your source and to the resulting output. There will always be minor differences, though, due to how Flash works. the slight "softness" is normal - rasterization and filtering in AE are different from Flash's own antialiasing, but in general you will want that to avoid extensive flickering. Just make sure to use continuous rasterization throughout the whole chain. As for your other concerns - there is no perfect way. If you had CS4, you'd export an image sequence from Flash base on the original FLA project or by letting Flash play the SWF on its stage. that's the only way to control everything. If you are regularly doing such things, this would be one good reason to upgrade, even more so, as it's the only way to figure in script-driven content and complex nested Flash symbols.
    Mylenium

  • Nested If...Else blocks in PixelBender Kernel Don't Work in Flash Player?

    I'm writing a kernel which has a several conditional steps.  It contains a structure like the following:
    if(condition)
    dst = outputA;
    else
       if(anotherCondition)
          dst = outputB;
       else
          if(yetAnotherCondition)
              dst = outputC;
          else
             dst = outputD
    I realize that this is a bit ugly, and that conditionals are already less than ideal for a kernel (and nested conditionals even less ideal), however, it does seem to work in the PixelBender Toolkit environment itself when I run the filter.  It will also export as a pbj for Flash without any objections from the Toolkit.  However, when I run the filter in Flash it seems to do... nothing.  When I strip out the nested conditionals, I will at least see the first if / else level working, but with nested conditionals, everything seems to be ignored and the kernel doesn't run at all within Flash Player. 
    Is this a bug?  Has anyone else successfully used nested conditional blocks in a PixelBender kernel running inside Flash Player?

    This is fixed in version 2.0 of the Pixel Bender toolkit which will be up soon at the Pixel Bender Developer Network (http://www.adobe.com/devnet/pixelbender/).
    The Pixel Bender 2.0 toolkit is also installed with CS5 AE or Flash Pro or any suite that includes either of those applications.
    Bob

  • Flash hangs because of too many nested symbols

    I am trying to create an Flash application where areas expand
    when the user pushes a button which pushes the rest of the GUI down
    as it expands. To accomplish this, I have every line of the GUI (it
    is a chart-looking interface) nested in the symbol above it,
    creating nested movieclip, inside of nested movieclip, etc. This
    way when the user clicks to expand the section to view more
    details, it will move down all the symbols. Eventually this causes
    my Mac g5 to hang indefinitely when trying to put the last groups
    together.
    Do you think it is the many nested symbols that are causing
    this? They go as far as 9 deep sometimes. My 400KB fla file will
    end up taking 1 GB of memory and spiking the CPU at 100%, and, of
    course, is not responding. Thank you.

    Make an official bug report on this. I and a few others have
    experienced the identical problem, using PCs, but are unable to
    supply sample files for Adobe to test due to confidentiality
    restrictions. If you can supply Adobe with your sample file, maybe
    they can figure out the problem and fix it.
    By the way, the problem never occurred for me in previous
    versions of Flash.
    Please report it here ASAP:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Nested Components (Flash CS3, AS2) Crashes Flash

    Hi,
    When using a component within another component, Flash
    crashes with no error message. How do I solve this problem? I've
    tried to use Adobe's components within my own ones, and my own
    nested. Flash crashes.
    I have tried finding the solution online with no luck, so I
    assume it's either impossible to do, or very easy! :)
    Thanks,
    Niclas

    The FLVPlayback component is by far the easiest... but if you really want to create your own buttons, then I suggest you build a custom NetStream player. This type of player is much more powerful and versatile means of playing video than the Playback component. Keep in mind that it does require a little hand coding... but again...we are firstly advising you to use the Playback component. If you can't use that, then NetStream may be your only other option.
    However, skip the .wmv and go with an .flv or .f4v file. The .wmv compression is not very good and your video file may be too large to download quickly.
    There is a set of very good tutorials that teach you how to build a NetStream player:
    www.gotoandlearn.com
    scroll to the very bottom of the page, there are a set of "Video Basics" tutorials.
    With a NetStream player, you can build controls to pause/stop/start as well as interact with other parts of your Flash.
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.htm l
    Best wishes,
    Adninjastrator

  • Viewing flash nested in CFIF with active content work around

    thanks to the IE update, some of us including myself are
    still trying to catch up on this topic and the revisions required
    to make our sites work with flash without the "clicko to activate".
    I find the info out there for this issue with CFM
    sparse...but I have an issue: I used the dreamweaver 8 auto
    correction (adds the javascript + creates the files) on my CFM
    pages and it worked fine until the part where the flash embedding
    code was nested inside of a <CFIF> statement....and nothing
    appears.
    any ideas? I am so-so with code, but not really a programmer
    so I really need help from more advanced developers on this one.
    MANY MANY thanks to anyone who knows the issue/solution for this
    one.
    <CFIF Session.MID is 3>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0','widt h','280','height','551','id','palette','align','','src','palette','quality','high','bgcolo r','#FFFFFF','name','palette','pluginspage','http://www.macromedia.com/go/getflashplayer', 'movie','palette'
    ); //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=6,0,0,0"
    WIDTH="280" HEIGHT="551" id="palette" ALIGN="">
    <PARAM NAME=movie VALUE="palette.swf"> <PARAM
    NAME=quality VALUE=high> <PARAM NAME=bgcolor
    VALUE=#FFFFFF> <EMBED src="palette.swf" quality=high
    bgcolor=#FFFFFF WIDTH="280" HEIGHT="551" NAME="palette" ALIGN=""
    TYPE="application/x-shockwave-flash" PLUGINSPAGE="
    http://www.macromedia.com/go/getflashplayer"></EMBED>
    </OBJECT></noscript>
    </CFIF>

    thanks to the IE update, some of us including myself are
    still trying to catch up on this topic and the revisions required
    to make our sites work with flash without the "clicko to activate".
    I find the info out there for this issue with CFM
    sparse...but I have an issue: I used the dreamweaver 8 auto
    correction (adds the javascript + creates the files) on my CFM
    pages and it worked fine until the part where the flash embedding
    code was nested inside of a <CFIF> statement....and nothing
    appears.
    any ideas? I am so-so with code, but not really a programmer
    so I really need help from more advanced developers on this one.
    MANY MANY thanks to anyone who knows the issue/solution for this
    one.
    <CFIF Session.MID is 3>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0','widt h','280','height','551','id','palette','align','','src','palette','quality','high','bgcolo r','#FFFFFF','name','palette','pluginspage','http://www.macromedia.com/go/getflashplayer', 'movie','palette'
    ); //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=6,0,0,0"
    WIDTH="280" HEIGHT="551" id="palette" ALIGN="">
    <PARAM NAME=movie VALUE="palette.swf"> <PARAM
    NAME=quality VALUE=high> <PARAM NAME=bgcolor
    VALUE=#FFFFFF> <EMBED src="palette.swf" quality=high
    bgcolor=#FFFFFF WIDTH="280" HEIGHT="551" NAME="palette" ALIGN=""
    TYPE="application/x-shockwave-flash" PLUGINSPAGE="
    http://www.macromedia.com/go/getflashplayer"></EMBED>
    </OBJECT></noscript>
    </CFIF>

  • Fonts not nested in Flash Menu

    Hi,
    CS3 flash professional 9.0 (...created 18th Dec 2007)
    This is similar to the days of suitcase and Quark, but OSX i
    thought these problems were gone. Im using fontbook and every
    application works fine, all my fonts are nested in their folders in
    the font menu, but in flash they are all loose, and its hard work,
    has anyone got this problem or overcome it?
    ta

    This has come up a lot on here. I thought they might have fixed it in CS4. At least they fixed the problem where fonts would not appear in the list if you activated (using a font management app) while Flash was open. Used to have to restart Flash.
    In any case, Flash does treat fonts differently than other Adobe applications. I'm sure someone will jump on here and defend Flash but the truth is in the pudding. Loaded fonts do not always appear in Flash when they show up fine in the other apps.
    I hope Adobe gets it together in CS5. Still waiting for them to fix the issue with font baselines shifting in FLA's between Mac and PC.
    Best thing you can do is post a request:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=15&6213=9

  • Flash buttons nested in movieclips wont work

    I made some movie clips in flash and inside those movie clips are buttons but I can't get the buttons to work in flex. I can only get the buttons to work in flex if they are on the main timeline in my swc file. Is there a way to get the buttons and other movieclips to respond if they are nested in another movieclip?

    It depends on how you are accessing the MoveClips.  If you embed, scripting will get stripped out.  If you load a SWF with those movieclips, it should still work.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Flash frame in nested sequence won't go away

    When I open up the sequence to play it, it's fine. When the sequence itself is played, It flashes over the first part of her sentence, then cuts in as she's saying a particular word.
    I dont show that there's anything to be rendered. I've done everything i can think of, including exporting and hoping that would fix it, closing out fcp and reloading the project, etc.
    Anyone ever run into this?

    Are you saying that your nested sequence is starting at a later point than the inpoint of the first clip contained within it? A nested sequence can be trimmed just like a regular clip, so you may just need to drag its in-point to the left (or perform a slip-edit).
    If this is not the problem, you could certainly have a phantom render file (this happens most often with nested sequences). You can usually kill it by forcing FCP to re-render that section of the timeline. There are a billion ways to do this–my favorite is selecting a clip (or range of clips) located on the section of your timeline where the phantom is hanging out, then hit Ctrl-B twice to toggle their visibility on and off. A fresh re-render of that timeline section should confirm that your phantom has finally been released to render file heaven.
    Zap
    Dual 2 GHz PowerPC G5 Mac OS X (10.3.6)

  • Flash Buttons and a nested movie clip

    I have made my movie clip and now I want to nest it into a
    button. I am not sure what code I need to use for this and how to
    nest it. I want, when a person rolls over the button for the movie
    clip to run. When they roll off of the button the movie clip stops.
    When they click on the button it takes them to a link. If anyone
    can please help me with this, I would SO greatly apprecaite it.
    Thank You ahead of time.

    Thank You SOOOO Much for replying to this. I can't tell you
    how much I appreciate your help.
    I just assumed that was the only way I could do it, (nest
    it.) So, my MC is called jiggle.
    So everywhere you have the my_mc. Should I replace it with
    jiggle.onRollOver etc....?
    ALso you say to attach the code to the action layer in the
    frame the MC appears, not in the MC itself.
    So, in the timeline that I have my MC , I have an actions
    layer. Do I not want an actions layer there? Should I just save the
    timeline with my MC and then cut and paste it into another timeline
    that has the actions layer?
    I actually have 5 of these MC.that all need to do the same
    thing, they are each for a different button.

  • Problemas com o Adobe Flash Player no Mozilla Firefox

    Olá,eu estou tendo um problema muito irritante com o Adobe Flash Player,mas apenas no Mozilla Firefox,oque acontece? bem vamos por partes para "você" ou "vocês" entenderem:
    Eu tenho um jogo de browser chamado "Dead Frontier" ele é um MMORPG e não precisa ser instalado no computador,apenas requer o Adobe Flash Player e o Unity Web Player...pois bem,jogo esse jogo a anos no Mozilla Firefox,nunca tive nenhum problema como este...que parece ser impossível de se resolver ao meu ver...
    Vamos lá,tenho algumas imagens que podem ajudar a entender o que está havendo:
    Qual o problema?na página inicial deste jogo sempre se executa um vídeo trailer do próprio jogo,mas de uns tempos pra cá(questão de 1 mês ou mais que isso começou)vem aparecendo esta mensagem no lugar do vídeo(sim tive de usar o paint,para facilitar os detalhes):
    http://i.imgur.com/IfmyJdq.jpg
    Enfim,isso veio do nada,assim sem mais nem menos,o que eu fiz?várias coisas,desinstalei o flash player várias vezes e instalei de novo,verifiquei se o Mozilla estava atualizado(e estava e ainda está),FORMATEI o computador para ver se dava um fim nesse maldito problema que já está me deixando maluco,no fim das contas,nada disso resolveu,recorri a vários fóruns,até recorri ao fórum do próprio Adobe,e eles parecem não conseguir resolver isto...
    Vamos aos pequenos detalhes que observei deste problema,sempre que vejo vídeos(do youtube) ou jogo este jogo,percebo alguns ruídos,"som travando" por pequenos períodos,eles não ficam o tempo todo,mas se repetem....e isso irrita,e MUITO....
    Percebi este pequeno símbolo lá em cima,no canto esquerdo da barra de endereço do site,um pequeno aviso triangular cinza,dêem uma olhada(só aparece neste site,este pequeno aviso triangular):
    http://i.imgur.com/CZQ8dw0.jpg
    Seria esse o problema?e se for,como resolver?
    antes de mais nada,vou adicionando mais coisas antes que falem,sim já desativei o adblock pra ver se resolvia,nada,sim tenho o javascript atualizado,Flash player atualizado....pra vocês verem de tudo que eu ja tentei,isso parece ser uma missão impossivel...repito de novo,o computador foi formatado recentemente....
    Já testei isso em outros navegadores,como o IE,chrome...isso não acontece com eles,o video executa normalmente,o som sai limpo,sem nenhum ruido ou qualquer travada...mas sempre tive minha preferência pelo Mozilla Firefox,como já disse,sempre joguei este jogo no Mozilla mesmo,nunca aconteceu isso....nunca mesmo.
    Enfim,relatei meu problema,espero que alguém entenda e consiga me iluminar aqui,por que sinceramente,já estou cansado disso,estou quase desistindo...sério mesmo,já tentei tudo....a solução até pode ser simples,mas a dor de cabeça está insuportável.
    Obrigado pra quem teve a paciência de ler tudo!
    Fireseedz

    Tópico duplicado, continue aqui: [/pt-BR/questions/1052849]

  • Why is my flash content not working on my dreamweaver created html site?

    This is a problem that's happening on my website I'm creating.  I created a quick test website to show you the problem on the fourm.  It's the same problem, and if you can provide the solution to this test website I can apply it to my main website.
    Test website on server:
    test331754952.net23.net
    What I did:
    -launched flash
    -typed "test" and made it spin 360 degrees
    -published swf
    -launched dreamweaver
    -created a site
    -moved swf to site folder
    -saved a html file to the site folder
    -in dreamweaver, went to insert, media, swf, then selected the swf I made
    -it inserted the swf, creating a gray placeholder for it
    -re-saved the html document, at which point dreamweaver created a folder named script and 2 files, an swf, and a javascript file
    Site Directory:
    Scripts Sub-Directory:
    What happens:
    -when I launch the swf on my machine, it plays fine
    -when I open the swf directly on the test website on the server, it plays fine
    -when I open the html with the embended swf on the test website on the server, it shows a gray box, then goes white
    -In dreamweaver, when I go to preview in browser and choose internet explorer, it tells me I don't have new flashplayer(I do: flashplayer 11) 
    Ie also pokes up a box at the bottom that says its not allowing content.  When I click allow content, it creates a gray box
    -In dreamweaver, when I go to preview in borwser and choose google chrome, it tells me flash player has stopped a potentionally unsafe operation.  When I close this dialog box, it gives me a gray box where my swf should be embeded.
    -I've tried changing global flash secuirty setting and it does nothing
    -I've tried visiting the test website on multiple computers in my household to no avail
    -I've tried having friends visit the site on their computer at their house to no avail
    -I did't touch the code on this test website-the code is exactly what dreamweaver generated
    Html Document Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    </head>
    <body>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400" id="FlashID" title="test">
      <param name="movie" value="test.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="opaque" />
      <param name="swfversion" value="15.0.0.0" />
      <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
      <param name="expressinstall" value="Scripts/expressInstall.swf" />
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="test.swf" width="550" height="400">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="opaque" />
        <param name="swfversion" value="15.0.0.0" />
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
        <div>
          <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
          <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
        </div>
        <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
    </script>
    </body>
    </html>
    Javascript file code(the one dreamweaver made when I inserted swf):
    /*! SWFObject v2.0 <http://code.google.com/p/swfobject/>
    Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis
    This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
    var swfobject = function() {
    var UNDEF = "undefined",
      OBJECT = "object",
      SHOCKWAVE_FLASH = "Shockwave Flash",
      SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash",
      FLASH_MIME_TYPE = "application/x-shockwave-flash",
      EXPRESS_INSTALL_ID = "SWFObjectExprInst",
      win = window,
      doc = document,
      nav = navigator,
      domLoadFnArr = [],
      regObjArr = [],
      timer = null,
      storedAltContent = null,
      storedAltContentId = null,
      isDomLoaded = false,
      isExpressInstallActive = false;
    /* Centralized function for browser feature detection
      - Proprietary feature detection (conditional compiling) is used to detect Internet Explorer's features
      - User agent string detection is only used when no alternative is possible
      - Is executed directly for optimal performance
    var ua = function() {
      var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF && typeof doc.appendChild != UNDEF && typeof doc.replaceChild != UNDEF && typeof doc.removeChild != UNDEF && typeof doc.cloneNode != UNDEF,
       playerVersion = [0,0,0],
       d = null;
      if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) {
       d = nav.plugins[SHOCKWAVE_FLASH].description;
       if (d) {
        d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
        playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10);
        playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
        playerVersion[2] = /r/.test(d) ? parseInt(d.replace(/^.*r(.*)$/, "$1"), 10) : 0;
      else if (typeof win.ActiveXObject != UNDEF) {
       var a = null, fp6Crash = false;
       try {
        a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".7");
       catch(e) {
        try {
         a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".6");
         playerVersion = [6,0,21];
         a.AllowScriptAccess = "always";  // Introduced in fp6.0.47
        catch(e) {
         if (playerVersion[0] == 6) {
          fp6Crash = true;
        if (!fp6Crash) {
         try {
          a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
         catch(e) {}
       if (!fp6Crash && a) { // a will return null when ActiveX is disabled
        try {
         d = a.GetVariable("$version");  // Will crash fp6.0.21/23/29
         if (d) {
          d = d.split(" ")[1].split(",");
          playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
        catch(e) {}
      var u = nav.userAgent.toLowerCase(),
       p = nav.platform.toLowerCase(),
       webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit
       ie = false,
       windows = p ? /win/.test(p) : /win/.test(u),
       mac = p ? /mac/.test(p) : /mac/.test(u);
      /*@cc_on
       ie = true;
       @if (@_win32)
        windows = true;
       @elif (@_mac)
        mac = true;
       @end
      return { w3cdom:w3cdom, pv:playerVersion, webkit:webkit, ie:ie, win:windows, mac:mac };
    /* Cross-browser onDomLoad
      - Based on Dean Edwards' solution: http://dean.edwards.name/weblog/2006/06/again/
      - Will fire an event as soon as the DOM of a page is loaded (supported by Gecko based browsers - like Firefox -, IE, Opera9+, Safari)
    var onDomLoad = function() {
      if (!ua.w3cdom) {
       return;
      addDomLoadEvent(main);
      if (ua.ie && ua.win) {
       try {  // Avoid a possible Operation Aborted error
        doc.write("<scr" + "ipt id=__ie_ondomload defer=true src=//:></scr" + "ipt>"); // String is split into pieces to avoid Norton AV to add code that can cause errors
        var s = getElementById("__ie_ondomload");
        if (s) {
         s.onreadystatechange = function() {
          if (this.readyState == "complete") {
           this.parentNode.removeChild(this);
           callDomLoadFunctions();
       catch(e) {}
      if (ua.webkit && typeof doc.readyState != UNDEF) {
       timer = setInterval(function() { if (/loaded|complete/.test(doc.readyState)) { callDomLoadFunctions(); }}, 10);
      if (typeof doc.addEventListener != UNDEF) {
       doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, null);
      addLoadEvent(callDomLoadFunctions);
    function callDomLoadFunctions() {
      if (isDomLoaded) {
       return;
      if (ua.ie && ua.win) { // Test if we can really add elements to the DOM; we don't want to fire it too early
       var s = createElement("span");
       try { // Avoid a possible Operation Aborted error
        var t = doc.getElementsByTagName("body")[0].appendChild(s);
        t.parentNode.removeChild(t);
       catch (e) {
        return;
      isDomLoaded = true;
      if (timer) {
       clearInterval(timer);
       timer = null;
      var dl = domLoadFnArr.length;
      for (var i = 0; i < dl; i++) {
       domLoadFnArr[i]();
    function addDomLoadEvent(fn) {
      if (isDomLoaded) {
       fn();
      else {
       domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+
    /* Cross-browser onload
      - Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/
      - Will fire an event as soon as a web page including all of its assets are loaded
    function addLoadEvent(fn) {
      if (typeof win.addEventListener != UNDEF) {
       win.addEventListener("load", fn, false);
      else if (typeof doc.addEventListener != UNDEF) {
       doc.addEventListener("load", fn, false);
      else if (typeof win.attachEvent != UNDEF) {
       win.attachEvent("onload", fn);
      else if (typeof win.onload == "function") {
       var fnOld = win.onload;
       win.onload = function() {
        fnOld();
        fn();
      else {
       win.onload = fn;
    /* Main function
      - Will preferably execute onDomLoad, otherwise onload (as a fallback)
    function main() { // Static publishing only
      var rl = regObjArr.length;
      for (var i = 0; i < rl; i++) { // For each registered object element
       var id = regObjArr[i].id;
       if (ua.pv[0] > 0) {
        var obj = getElementById(id);
        if (obj) {
         regObjArr[i].width = obj.getAttribute("width") ? obj.getAttribute("width") : "0";
         regObjArr[i].height = obj.getAttribute("height") ? obj.getAttribute("height") : "0";
         if (hasPlayerVersion(regObjArr[i].swfVersion)) { // Flash plug-in version >= Flash content version: Houston, we have a match!
          if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements
           fixParams(obj);
          setVisibility(id, true);
         else if (regObjArr[i].expressInstall && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) { // Show the Adobe Express Install dialog if set by the web page author and if supported (fp6.0.65+ on Win/Mac OS only)
          showExpressInstall(regObjArr[i]);
         else { // Flash plug-in and Flash content version mismatch: display alternative content instead of Flash content
          displayAltContent(obj);
       else {  // If no fp is installed, we let the object element do its job (show alternative content)
        setVisibility(id, true);
    /* Fix nested param elements, which are ignored by older webkit engines
      - This includes Safari up to and including version 1.2.2 on Mac OS 10.3
      - Fall back to the proprietary embed element
    function fixParams(obj) {
      var nestedObj = obj.getElementsByTagName(OBJECT)[0];
      if (nestedObj) {
       var e = createElement("embed"), a = nestedObj.attributes;
       if (a) {
        var al = a.length;
        for (var i = 0; i < al; i++) {
         if (a[i].nodeName.toLowerCase() == "data") {
          e.setAttribute("src", a[i].nodeValue);
         else {
          e.setAttribute(a[i].nodeName, a[i].nodeValue);
       var c = nestedObj.childNodes;
       if (c) {
        var cl = c.length;
        for (var j = 0; j < cl; j++) {
         if (c[j].nodeType == 1 && c[j].nodeName.toLowerCase() == "param") {
          e.setAttribute(c[j].getAttribute("name"), c[j].getAttribute("value"));
       obj.parentNode.replaceChild(e, obj);
    /* Fix hanging audio/video threads and force open sockets and NetConnections to disconnect
      - Occurs when unloading a web page in IE using fp8+ and innerHTML/outerHTML
      - Dynamic publishing only
    function fixObjectLeaks(id) {
      if (ua.ie && ua.win && hasPlayerVersion("8.0.0")) {
       win.attachEvent("onunload", function () {
        var obj = getElementById(id);
        if (obj) {
         for (var i in obj) {
          if (typeof obj[i] == "function") {
           obj[i] = function() {};
         obj.parentNode.removeChild(obj);
    /* Show the Adobe Express Install dialog
      - Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75
    function showExpressInstall(regObj) {
      isExpressInstallActive = true;
      var obj = getElementById(regObj.id);
      if (obj) {
       if (regObj.altContentId) {
        var ac = getElementById(regObj.altContentId);
        if (ac) {
         storedAltContent = ac;
         storedAltContentId = regObj.altContentId;
       else {
        storedAltContent = abstractAltContent(obj);
       if (!(/%$/.test(regObj.width)) && parseInt(regObj.width, 10) < 310) {
        regObj.width = "310";
       if (!(/%$/.test(regObj.height)) && parseInt(regObj.height, 10) < 137) {
        regObj.height = "137";
       doc.title = doc.title.slice(0, 47) + " - Flash Player Installation";
       var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn",
        dt = doc.title,
        fv = "MMredirectURL=" + win.location + "&MMplayerType=" + pt + "&MMdoctitle=" + dt,
        replaceId = regObj.id;
       // For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element
       // In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
       if (ua.ie && ua.win && obj.readyState != 4) {
        var newObj = createElement("div");
        replaceId += "SWFObjectNew";
        newObj.setAttribute("id", replaceId);
        obj.parentNode.insertBefore(newObj, obj); // Insert placeholder div that will be replaced by the object element that loads expressinstall.swf
        obj.style.display = "none";
        win.attachEvent("onload", function() { obj.parentNode.removeChild(obj); });
       createSWF({ data:regObj.expressInstall, id:EXPRESS_INSTALL_ID, width:regObj.width, height:regObj.height }, { flashvars:fv }, replaceId);
    /* Functions to abstract and display alternative content
    function displayAltContent(obj) {
      if (ua.ie && ua.win && obj.readyState != 4) {
       // For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element
       // In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
       var el = createElement("div");
       obj.parentNode.insertBefore(el, obj); // Insert placeholder div that will be replaced by the alternative content
       el.parentNode.replaceChild(abstractAltContent(obj), el);
       obj.style.display = "none";
       win.attachEvent("onload", function() { obj.parentNode.removeChild(obj); });
      else {
       obj.parentNode.replaceChild(abstractAltContent(obj), obj);
    function abstractAltContent(obj) {
      var ac = createElement("div");
      if (ua.win && ua.ie) {
       ac.innerHTML = obj.innerHTML;
      else {
       var nestedObj = obj.getElementsByTagName(OBJECT)[0];
       if (nestedObj) {
        var c = nestedObj.childNodes;
        if (c) {
         var cl = c.length;
         for (var i = 0; i < cl; i++) {
          if (!(c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param") && !(c[i].nodeType == 8)) {
           ac.appendChild(c[i].cloneNode(true));
      return ac;
    /* Cross-browser dynamic SWF creation
    function createSWF(attObj, parObj, id) {
      var r, el = getElementById(id);
      if (typeof attObj.id == UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content
       attObj.id = id;
      if (ua.ie && ua.win) { // IE, the object element and W3C DOM methods do not combine: fall back to outerHTML
       var att = "";
       for (var i in attObj) {
        if (attObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries, like Object.prototype.toJSONString = function() {}
         if (i == "data") {
          parObj.movie = attObj[i];
         else if (i.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
          att += ' class=" + attObj[i] + "';
         else if (i != "classid") {
          att += ' ' + i + '="' + attObj[i] + '"';
       var par = "";
       for (var j in parObj) {
        if (parObj[j] != Object.prototype[j]) { // Filter out prototype additions from other potential libraries
         par += '<param name="' + j + '" value="' + parObj[j] + '" />';
       el.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + att + '>' + par + '</object>';
       fixObjectLeaks(attObj.id); // This bug affects dynamic publishing only
       r = getElementById(attObj.id);
      else if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements: fall back to the proprietary embed element
       var e = createElement("embed");
       e.setAttribute("type", FLASH_MIME_TYPE);
       for (var k in attObj) {
        if (attObj[k] != Object.prototype[k]) { // Filter out prototype additions from other potential libraries
         if (k == "data") {
          e.setAttribute("src", attObj[k]);
         else if (k.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
          e.setAttribute("class", attObj[k]);
         else if (k != "classid") { // Filter out IE specific attribute
          e.setAttribute(k, attObj[k]);
       for (var l in parObj) {
        if (parObj[l] != Object.prototype[l]) { // Filter out prototype additions from other potential libraries
         if (l != "movie") { // Filter out IE specific param element
          e.setAttribute(l, parObj[l]);
       el.parentNode.replaceChild(e, el);
       r = e;
      else { // Well-behaving browsers
       var o = createElement(OBJECT);
       o.setAttribute("type", FLASH_MIME_TYPE);
       for (var m in attObj) {
        if (attObj[m] != Object.prototype[m]) { // Filter out prototype additions from other potential libraries
         if (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
          o.setAttribute("class", attObj[m]);
         else if (m != "classid") { // Filter out IE specific attribute
          o.setAttribute(m, attObj[m]);
       for (var n in parObj) {
        if (parObj[n] != Object.prototype[n] && n != "movie") { // Filter out prototype additions from other potential libraries and IE specific param element
         createObjParam(o, n, parObj[n]);
       el.parentNode.replaceChild(o, el);
       r = o;
      return r;
    function createObjParam(el, pName, pValue) {
      var p = createElement("param");
      p.setAttribute("name", pName);
      p.setAttribute("value", pValue);
      el.appendChild(p);
    function getElementById(id) {
      return doc.getElementById(id);
    function createElement(el) {
      return doc.createElement(el);
    function hasPlayerVersion(rv) {
      var pv = ua.pv, v = rv.split(".");
      v[0] = parseInt(v[0], 10);
      v[1] = parseInt(v[1], 10);
      v[2] = parseInt(v[2], 10);
      return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
    /* Cross-browser dynamic CSS creation
      - Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php
    function createCSS(sel, decl) {
      if (ua.ie && ua.mac) {
       return;
      var h = doc.getElementsByTagName("head")[0], s = createElement("style");
      s.setAttribute("type", "text/css");
      s.setAttribute("media", "screen");
      if (!(ua.ie && ua.win) && typeof doc.createTextNode != UNDEF) {
       s.appendChild(doc.createTextNode(sel + " {" + decl + "}"));
      h.appendChild(s);
      if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) {
       var ls = doc.styleSheets[doc.styleSheets.length - 1];
       if (typeof ls.addRule == OBJECT) {
        ls.addRule(sel, decl);
    function setVisibility(id, isVisible) {
      var v = isVisible ? "inherit" : "hidden";
      if (isDomLoaded) {
       getElementById(id).style.visibility = v;
      else {
       createCSS("#" + id, "visibility:" + v);
    function getTargetVersion(obj) {
         if (!obj)
             return 0;
      var c = obj.childNodes;
      var cl = c.length;
      for (var i = 0; i < cl; i++) {
       if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "object") {
           c = c[i].childNodes;
           cl = c.length;
           i = 0;
       if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param" && c[i].getAttribute("name") == "swfversion") {
          return c[i].getAttribute("value");
      return 0;
    function getExpressInstall(obj) {
         if (!obj)
             return "";
      var c = obj.childNodes;
      var cl = c.length;
      for (var i = 0; i < cl; i++) {
       if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "object") {
           c = c[i].childNodes;
           cl = c.length;
           i = 0;
       if (c[i].nodeType == 1 && c[i].nodeName.toLowerCase() == "param" && c[i].getAttribute("name") == "expressinstall") {
           return c[i].getAttribute("value");
      return "";
    return {
      /* Public API
       - Reference: http://code.google.com/p/swfobject/wiki/SWFObject_2_0_documentation
      registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr) {
       if (!ua.w3cdom || !objectIdStr) {
        return;
       var obj = document.getElementById(objectIdStr);
       var xi = getExpressInstall(obj);
       var regObj = {};
       regObj.id = objectIdStr;
       regObj.swfVersion = swfVersionStr ? swfVersionStr : getTargetVersion(obj);
       regObj.expressInstall = xiSwfUrlStr ? xiSwfUrlStr : ((xi != "") ? xi : false);
       regObjArr[regObjArr.length] = regObj;
       setVisibility(objectIdStr, false);
      getObjectById: function(objectIdStr) {
       var r = null;
       if (ua.w3cdom && isDomLoaded) {
        var o = getElementById(objectIdStr);
        if (o) {
         var n = o.getElementsByTagName(OBJECT)[0];
         if (!n || (n && typeof o.SetVariable != UNDEF)) {
             r = o;
         else if (typeof n.SetVariable != UNDEF) {
          r = n;
       return r;
      embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj) {
       if (!ua.w3cdom || !swfUrlStr || !replaceElemIdStr || !widthStr || !heightStr || !swfVersionStr) {
        return;
       widthStr += ""; // Auto-convert to string to make it idiot proof
       heightStr += "";
       if (hasPlayerVersion(swfVersionStr)) {
        setVisibility(replaceElemIdStr, false);
        var att = (typeof attObj == OBJECT) ? attObj : {};
        att.data = swfUrlStr;
        att.width = widthStr;
        att.height = heightStr;
        var par = (typeof parObj == OBJECT) ? parObj : {};
        if (typeof flashvarsObj == OBJECT) {
         for (var i in flashvarsObj) {
          if (flashvarsObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries
           if (typeof par.flashvars != UNDEF) {
            par.flashvars += "&" + i + "=" + flashvarsObj[i];
           else {
            par.flashvars = i + "=" + flashvarsObj[i];
        addDomLoadEvent(function() {
         createSWF(att, par, replaceElemIdStr);
         if (att.id == replaceElemIdStr) {
          setVisibility(replaceElemIdStr, true);
       else if (xiSwfUrlStr && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) {
        setVisibility(replaceElemIdStr, false);
        addDomLoadEvent(function() {
         var regObj = {};
         regObj.id = regObj.altContentId = replaceElemIdStr;
         regObj.width = widthStr;
         regObj.height = heightStr;
         regObj.expressInstall = xiSwfUrlStr;
         showExpressInstall(regObj);
      getFlashPlayerVersion: function() {
       return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] };
      hasFlashPlayerVersion:hasPlayerVersion,
      createSWF: function(attObj, parObj, replaceElemIdStr) {
       if (ua.w3cdom && isDomLoaded) {
        return createSWF(attObj, parObj, replaceElemIdStr);
       else {
        return undefined;
      createCSS: function(sel, decl) {
       if (ua.w3cdom) {
        createCSS(sel, decl);
      addDomLoadEvent:addDomLoadEvent,
      addLoadEvent:addLoadEvent,
      getQueryParamValue: function(param) {
       var q = doc.location.search || doc.location.hash;
       if (param == null) {
        return q;
        if(q) {
        var pairs = q.substring(1).split("&");
        for (var i = 0; i < pairs.length; i++) {
         if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
          return pairs[i].substring((pairs[i].indexOf("=") + 1));
       return "";
      // For internal usage only
      expressInstallCallback: function() {
       if (isExpressInstallActive && storedAltContent) {
        var obj = getElementById(EXPRESS_INSTALL_ID);
        if (obj) {
         obj.parentNode.replaceChild(storedAltContent, obj);
         if (storedAltContentId) {
          setVisibility(storedAltContentId, true);
          if (ua.ie && ua.win) {
           storedAltContent.style.display = "block";
         storedAltContent = null;
         storedAltContentId = null;
         isExpressInstallActive = false;
    Can someone please help!  I've looked and tried prety much everything.  If you can provide a solution I would GREATLY apreciate it!

    There is no Flash player version 15... as in your code:
    <param name="swfversion" value="15.0.0.0" />
    For some reason Adobe thought it would be a good idea to target a Flash player version (15) as default.....which may be out a couple years in the future. Go figure!!!
    If you don't like player version 9, change to 10 or 11.... just not 15 (yet).
    Best wishes,
    Adninjastrator

Maybe you are looking for

  • Best settings for Sharp Aquos 32" LCD

    Hi all, I have a MBP 1.83 and just hooked it up to my Sharp 32" LCD and I am underwhelmed by the outcome. I am switching back to mac after 15 years and have been using a windows machine attached to this display with better results. Is there a way to

  • How can I get Firefox to show ALL the pictures of people's profiles once I log onto myspace?

    Every time I log onto MySpace, on every profile I go onto to look at, there are at least some if not most of their pictures blank, it won't show me their pictures, even when I look at my profile pictures it won't show most of them, it'll be a blank s

  • Real support people

    Am I missing something, or why is there no support number you can call with Blackberry issues, just like if you bought a computer or any other electronic device and had an issue with it.  There is usually a support hotline you can call.  The only sup

  • PBXX defaults last PO price

    Hi ! I believe that it is standard behavior for SAP to set PBXX as the last PO price (is condition record is missing for PB00). We would like to suppress this behavior i.e. we would like the user to key in the price manually every time they create a

  • I can't open bootcamp assistant

    Hello, When I try to open Boot Camp Assistant a pop-up shows up reading: "Boot Camp Assistant cannot be used" followed by: "You must update your system software before this setup assistant." Here is the confusion: I am running Snow Leopard (10.6.8) a