We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27449
    • 211 Posts
    Hello,
    I have a flash menu for add o my website...
    I see that the modx have a snipped that embed flash on the websites, the SwfFix snippet.
    I instaled the snippet on the modx and I insert in the templates:

    <head>
    [[swfFix?&embedType=`standard`&id=`menu`&height=`250`&width=`250`&swfUrl=`assets/snippets/swfFix/expressInstall.swf` &version=`9.0.0`&expressInstall=`true`]]
    </head>

    Inside of the tag <body> I insert this code:

    <div id="menu">
    <object id="menu" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="250">
    <param name="movie" value="assets/templates/oprc/menu_accordion/main.swf" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="assets/templates/oprc/menu_accordion/main.swf" width="200" height="250">
    <!--<![endif]-->
    <p>Alternative content</p>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </div>


    Please you could tell me what is wrong?

      • 27449
      • 211 Posts
      I need your help, urgently
        • 7231
        • 4,205 Posts
        I have never used that fix. Try the SWFObject snippet and where you want the flash to show just add a div with the id that you defined in the snippet call.
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don&#39;t know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 27449
          • 211 Posts
          I followed your advice, I instlled the swfobject snippet and call it in mt template

          [!SWFObject? &objAttr=`class:first second, name:myname` &flashParam=`quality:high, expressinstall:assets/snippets/swfobject/expressInstall.swf, wmode:opaque, swfversion:7.0.0` &mode=`static` &flashVersion=`7.0.0` &objId=`myFlashContent` &objWidth=`200` &objHeight=`250` &swfFile=`assets/templates/oprc/menu_accordion/main.swf`!]

          but just show a blank image... Please you could tell me what is happen
            • 24735
            • 33 Posts
            <p>
            <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="490" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
            <param name="wmode" value="transparent" />
            <param name="flashvars" value="8" />
            <param name="id" value="d27cdb6e-ae6d-11cf-96b8-444553540000" />
            <param name="name" value="banner" />
            <param name="src" value="banner.swf" /><embed id="d27cdb6e-ae6d-11cf-96b8-444553540000" type="application/x-shockwave-flash" width="490" height="300" src="banner.swf" name="banner" flashvars="8" wmode="transparent"></embed>
            </object>
            </p>

            This is what I have for one of my flash embedded files. I was having the same problem where it just showed up blank or it would just play like 1 frame of the animation. I fixed it by just plugging in 8 for the flash version. That seemed to work for me. Perhaps that might be of some help. I used the flash embed button in modx.
              • 7231
              • 4,205 Posts
              I always use &mode=`dynamic`, never used static mode. Do you have a div with the id of "myFlashContent"? You need a div with the same ID as you set in &objId=`myFlashContent`:

              <div id="myFlashContent"></div>
              The flash content should display in the same location that you have the div placed. You can then place a message or an image in the div that will display if Flash is not available.
                [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                Something is happening here, but you don&#39;t know what it is.
                Do you, Mr. Jones? - [bob dylan]
                • 27449
                • 211 Posts
                I put the &mode=`dynamic`, but continue not work.... just show the blank image huh

                <div id="menu">
                [!SWFObject? &flashParam=`quality:high, wmode:transparent` &mode=`dynamic` &flashVersion=`7.0.0` &objId=`menu` &objWidth=`200` &objHeight=`250` &swfFile=`assets/templates/oprc/menu_accordion/main.swf`!]
                </div>


                I don’t know why is not working, but I tested in the static html and work very well
                Attached you can see the generated code to put the flash to work.
                  • 7231
                  • 4,205 Posts
                  Not sure if this would make a difference, but I have "" around the parameters in &flashParam
                  &flashParam=`wmode:"transparent"`
                    [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                    Something is happening here, but you don&#39;t know what it is.
                    Do you, Mr. Jones? - [bob dylan]
                    • 27449
                    • 211 Posts
                    I delete the content of the flashvars and it stayed the same...
                    I don’t know what do more.... Will be a problem with the compatible...
                    I think that the code it is correct, I call the file swfobject between the tag <head>
                    and inside of the tag <body>, I call the SWFObject snipped

                      • 7231
                      • 4,205 Posts
                      You only need to call the snippet, it will add the code in the <head> section automatically.
                        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                        Something is happening here, but you don&#39;t know what it is.
                        Do you, Mr. Jones? - [bob dylan]