14 Replies Latest reply on Aug 31, 2007 8:37 AM by dpriskorn

    Templating Flash

    dpriskorn
      I read another post on this problem, looked at the solution and checked my links. As soon as I insert flash into a dynamic template it doesn't work on my site preview. I can play the flash file within dreamweaver but not in a browser. All I get are blank white areas where the flash should be playing. Does anyone have any suggestions?

        • 1. Re: Templating Flash
          Level 7
          Change this -

          Banner','src','../Images/Flash/Top

          to this

          Banner','src','/Images/Flash/Top

          and this -

          'movie','../Images/Flash/Top Banner' ); //end AC code

          to this -

          'movie','/Images/Flash/Top Banner' ); //end AC code

          (you would be well advised NOT to use spaces in your file/pathnames)

          That should get you going.

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.dreamweavermx-templates.com - Template Triage!
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
          ==================


          "dpriskorn" <webforumsuser@macromedia.com> wrote in message
          news:fb6vsp$esa$1@forums.macromedia.com...
          >I read another post on this problem, looked at the solution and checked my
          > links. As soon as I insert flash into a dynamic template it doesn't work
          > on my
          > site preview. I can play the flash file within dreamweaver but not in a
          > browser. All I get are blank white areas where the flash should be
          > playing.
          > Does anyone have any suggestions?
          >
          >
          >
          > <!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" />
          > <!-- TemplateBeginEditable name="doctitle" -->
          > <title>Welcome To Dexter Orthodontics! Dexter, MI</title>
          > <!-- TemplateEndEditable -->
          > <style type="text/css">
          > <!--
          > body {
          > background-color: #1e3657;
          > margin-left: 0px;
          > margin-top: 0px;
          > }
          > #Container {
          > width: 750px;
          > border-top-width: thin;
          > border-right-width: thin;
          > border-bottom-width: thin;
          > border-left-width: thin;
          > border-right-style: solid;
          > border-bottom-style: solid;
          > border-top-color: #999999;
          > border-right-color: #999999;
          > border-bottom-color: #999999;
          > border-left-color: #999999;
          > }
          > #Banner {
          > height: 135px;
          > width: 750px;
          > top: 0px;
          > right: 0px;
          > }
          > #NavBar {
          > float: left;
          > width: 200px;
          > border-top-width: thin;
          > border-right-width: thin;
          > border-bottom-width: thin;
          > border-left-width: thin;
          > border-top-style: solid;
          > border-right-style: solid;
          > border-top-color: #999999;
          > border-right-color: #999999;
          > border-bottom-color: #999999;
          > border-left-color: #999999;
          > }
          > #Content {
          > float: left;
          > width: 525px;
          > height: 500px;
          > padding-right: 10px;
          > padding-left: 10px;
          > padding-top: 0px;
          > padding-bottom: 0px;
          > overflow: visible;
          > vertical-align: top;
          > }
          > a:link {
          > text-decoration: none;
          > }
          > a:visited {
          > text-decoration: none;
          > }
          > a:hover {
          > text-decoration: none;
          > }
          > a:active {
          > text-decoration: none;
          > }
          > -->
          > </style>
          > <script type="text/javascript">
          > <!--
          > function MM_preloadImages() { //v3.0
          > var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
          > var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
          > i<a.length;
          > i++)
          > if (a .indexOf("#")!=0){ d.MM_p[j]=new Image;
          > d.MM_p[j++].src=a
          ;}}
          > }
          > function MM_swapImgRestore() { //v3.0
          > var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a )&&x.oSrc;i++)
          > x.src=x.oSrc;
          > }
          > function MM_findObj(n, d) { //v4.01
          > var p,i,x; if(!d) d=document;
          > if((p=n.indexOf("?"))>0&&parent.frames.length) {
          > d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
          > if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
          > x=d.forms
          [n];
          > for(i=0;!x&&d.layers&&i<d.layers.length;i++)
          > x=MM_findObj(n,d.layers .document);
          > if(!x && d.getElementById) x=d.getElementById(n); return x;
          > }
          >
          > function MM_swapImage() { //v3.0
          > var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
          > for(i=0;i<(a.length-2);i+=3)
          > if ((x=MM_findObj(a
          ))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
          > x.oSrc=x.src; x.src=a[i+2];}
          > }
          > //-->
          > </script>
          > <script src="../Scripts/AC_RunActiveContent.js"
          > type="text/javascript"></script>
          > <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
          > </head>
          >
          > <body onload="MM_preloadImages('../Images/Buttons/Main
          > Nav/Home-02.gif','../Images/Buttons/Main Nav/Meet-02.gif')">
          > <div id="Container">
          > <div id="Banner">
          > <script type="text/javascript">
          > AC_FL_RunContent(
          > 'codebase',' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
          > version=9,0,28,0','width','750','height','135','title','Dexter Ortho Top
          > Banner','src','../Images/Flash/Top
          > Banner','quality','high','pluginspage',' http://www.adobe.com/shockwave/download/
          > download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../Images/Flash/Top
          > Banner' ); //end AC code
          > </script><noscript><object
          > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
          > codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
          > rsion=9,0,28,0" width="750" height="135" title="Dexter Ortho Top Banner">
          > <param name="movie" value="../Images/Flash/Top Banner.swf" />
          > <param name="quality" value="high" />
          > <embed src="../Images/Flash/Top Banner.swf" quality="high"
          > pluginspage=" http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
          > n=ShockwaveFlash" type="application/x-shockwave-flash" width="750"
          > height="135"></embed>
          > </object>
          > </noscript></div>
          > <div id="NavBar">
          > <script type="text/javascript">
          > AC_FL_RunContent(
          > 'codebase',' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
          > version=9,0,28,0','width','200','height','500','title','Navigation
          > Bar','src','../Images/Flash/Navbar','quality','high','pluginspage',' http://www.a
          > dobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie'
          > ,'../Images/Flash/Navbar' ); //end AC code
          > </script><noscript><object
          > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
          > codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
          > rsion=9,0,28,0" width="200" height="500" title="Navigation Bar">
          > <param name="movie" value="../Images/Flash/Navbar.swf" />
          > <param name="quality" value="high" />
          > <embed src="../Images/Flash/Navbar.swf" width="200" height="500"
          > quality="high"
          > pluginspage=" http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
          > n=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
          > </object>
          > </noscript></div>
          > <!-- TemplateBeginEditable name="Content" -->
          > <div id="Content">Content for id "Content" Goes Here</div>
          > <!-- TemplateEndEditable --></div>
          > </body>
          > </html>
          >


          • 2. Re: Templating Flash
            dpriskorn Level 1
            Thanks for the advice on the no spaces. I didn't even think about that, I'm normally a video editor, Not a web guy. However, I removed the two periods and now the file wont play inside of dreamweaver.
            • 3. Re: Templating Flash
              Level 7
              Show me the new code, please.

              --
              Murray --- ICQ 71997575
              Adobe Community Expert
              (If you *MUST* email me, don't LAUGH when you do so!)
              ==================
              http://www.dreamweavermx-templates.com - Template Triage!
              http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
              http://www.dwfaq.com - DW FAQs, Tutorials & Resources
              http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
              ==================


              "dpriskorn" <webforumsuser@macromedia.com> wrote in message
              news:fb71f2$ggf$1@forums.macromedia.com...
              > Thanks for the advice on the no spaces. I didn't even think about that,
              > I'm normally a video editor, Not a web guy. However, I removed the two
              > periods and now the file wont play inside of dreamweaver.


              • 4. Re: Templating Flash
                Level 7
                Also, does it play when you upload it?

                --
                Murray --- ICQ 71997575
                Adobe Community Expert
                (If you *MUST* email me, don't LAUGH when you do so!)
                ==================
                http://www.dreamweavermx-templates.com - Template Triage!
                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                ==================


                "dpriskorn" <webforumsuser@macromedia.com> wrote in message
                news:fb71f2$ggf$1@forums.macromedia.com...
                > Thanks for the advice on the no spaces. I didn't even think about that,
                > I'm normally a video editor, Not a web guy. However, I removed the two
                > periods and now the file wont play inside of dreamweaver.


                • 5. Re: Templating Flash
                  dpriskorn Level 1
                  No it doesn't play when I upload it, it's driving me crazy because I know it's probably something really small and stupid.
                  • 6. Re: Templating Flash
                    dpriskorn Level 1
                    Thanks so much for the help by the way.
                    • 7. Re: Templating Flash
                      Level 7
                      Post a link to the page?

                      Also - did you upload this?

                      <script src="../Scripts/AC_RunActiveContent.js"
                      type="text/javascript"></script>

                      --
                      Murray --- ICQ 71997575
                      Adobe Community Expert
                      (If you *MUST* email me, don't LAUGH when you do so!)
                      ==================
                      http://www.dreamweavermx-templates.com - Template Triage!
                      http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                      http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                      http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                      ==================


                      "dpriskorn" <webforumsuser@macromedia.com> wrote in message
                      news:fb77v8$nh4$1@forums.macromedia.com...
                      > No it doesn't play when I upload it, it's driving me crazy because I know
                      > it's
                      > probably something really small and stupid.
                      >
                      > <!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" />
                      > <!-- TemplateBeginEditable name="doctitle" -->
                      > <title>Welcome To Dexter Orthodontics! Dexter, MI</title>
                      > <!-- TemplateEndEditable -->
                      > <style type="text/css">
                      > <!--
                      > body {
                      > background-color: #1e3657;
                      > margin-left: 0px;
                      > margin-top: 0px;
                      > }
                      > #Container {
                      > width: 750px;
                      > border-top-width: thin;
                      > border-right-width: thin;
                      > border-bottom-width: thin;
                      > border-left-width: thin;
                      > border-right-style: solid;
                      > border-bottom-style: solid;
                      > border-top-color: #999999;
                      > border-right-color: #999999;
                      > border-bottom-color: #999999;
                      > border-left-color: #999999;
                      > }
                      > #Banner {
                      > height: 135px;
                      > width: 750px;
                      > top: 0px;
                      > right: 0px;
                      > }
                      > #NavBar {
                      > float: left;
                      > width: 200px;
                      > border-top-width: thin;
                      > border-right-width: thin;
                      > border-bottom-width: thin;
                      > border-left-width: thin;
                      > border-top-style: solid;
                      > border-right-style: solid;
                      > border-top-color: #999999;
                      > border-right-color: #999999;
                      > border-bottom-color: #999999;
                      > border-left-color: #999999;
                      > }
                      > #Content {
                      > float: left;
                      > width: 525px;
                      > height: 500px;
                      > padding-right: 10px;
                      > padding-left: 10px;
                      > padding-top: 0px;
                      > padding-bottom: 0px;
                      > overflow: visible;
                      > vertical-align: top;
                      > }
                      > a:link {
                      > text-decoration: none;
                      > }
                      > a:visited {
                      > text-decoration: none;
                      > }
                      > a:hover {
                      > text-decoration: none;
                      > }
                      > a:active {
                      > text-decoration: none;
                      > }
                      > -->
                      > </style>
                      > <script type="text/javascript">
                      > <!--
                      > function MM_preloadImages() { //v3.0
                      > var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
                      > var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
                      > i<a.length;
                      > i++)
                      > if (a .indexOf("#")!=0){ d.MM_p[j]=new Image;
                      > d.MM_p[j++].src=a
                      ;}}
                      > }
                      > function MM_swapImgRestore() { //v3.0
                      > var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a )&&x.oSrc;i++)
                      > x.src=x.oSrc;
                      > }
                      > function MM_findObj(n, d) { //v4.01
                      > var p,i,x; if(!d) d=document;
                      > if((p=n.indexOf("?"))>0&&parent.frames.length) {
                      > d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
                      > if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
                      > x=d.forms
                      [n];
                      > for(i=0;!x&&d.layers&&i<d.layers.length;i++)
                      > x=MM_findObj(n,d.layers .document);
                      > if(!x && d.getElementById) x=d.getElementById(n); return x;
                      > }
                      >
                      > function MM_swapImage() { //v3.0
                      > var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
                      > for(i=0;i<(a.length-2);i+=3)
                      > if ((x=MM_findObj(a
                      ))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
                      > x.oSrc=x.src; x.src=a[i+2];}
                      > }
                      > //-->
                      > </script>
                      > <script src="../Scripts/AC_RunActiveContent.js"
                      > type="text/javascript"></script>
                      > <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
                      > </head>
                      >
                      > <body onload="MM_preloadImages('../Images/Buttons/Main
                      > Nav/Home-02.gif','../Images/Buttons/Main Nav/Meet-02.gif')">
                      > <div id="Container">
                      > <div id="Banner">
                      > <script type="text/javascript">
                      > AC_FL_RunContent(
                      > 'codebase',' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
                      > version=9,0,28,0','width','750','height','135','title','Dexter Ortho Top
                      > Banner','src','/Images/Flash/TopBanner','quality','high','pluginspage',' http://w
                      > ww.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','mo
                      > vie','/Images/Flash/TopBanner' ); //end AC code
                      > </script><noscript><object
                      > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                      > codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
                      > rsion=9,0,28,0" width="750" height="135" title="Dexter Ortho Top Banner">
                      > <param name="movie" value="/Images/Flash/TopBanner.swf" />
                      > <param name="quality" value="high" />
                      > <embed src="/Images/Flash/TopBanner.swf" quality="high"
                      > pluginspage=" http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
                      > n=ShockwaveFlash" type="application/x-shockwave-flash" width="750"
                      > height="135"></embed>
                      > </object>
                      > </noscript></div>
                      > <div id="NavBar">
                      > <script type="text/javascript">
                      > AC_FL_RunContent(
                      > 'codebase',' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
                      > version=9,0,28,0','width','200','height','500','title','Navigation
                      > Bar','src','/Images/Flash/Navbar','quality','high','pluginspage',' http://www.ado
                      > be.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','
                      > /Images/Flash/Navbar' ); //end AC code
                      > </script><noscript><object
                      > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                      > codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
                      > rsion=9,0,28,0" width="200" height="500" title="Navigation Bar">
                      > <param name="movie" value="/Images/Flash/Navbar.swf" />
                      > <param name="quality" value="high" />
                      > <embed src="/Images/Flash/Navbar.swf" width="200" height="500"
                      > quality="high"
                      > pluginspage=" http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
                      > n=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
                      > </object>
                      > </noscript></div>
                      > <!-- TemplateBeginEditable name="Content" -->
                      > <div id="Content">Content for id "Content" Goes Here</div>
                      > <!-- TemplateEndEditable --></div>
                      > </body>
                      > </html>
                      >


                      • 8. Re: Templating Flash
                        dpriskorn Level 1
                        I have no link because it's for a business and I can't take down the old one until the new one is tested and working. I'm not sure if that script got uploaded but it should have automatically created in my local files, correct?
                        • 9. Re: Templating Flash
                          Level 7
                          Yes, but you would have to upload it yourself. Try to browse to the
                          location that the page says it's at. If you get a file not found error,
                          it's not there.

                          --
                          Murray --- ICQ 71997575
                          Adobe Community Expert
                          (If you *MUST* email me, don't LAUGH when you do so!)
                          ==================
                          http://www.dreamweavermx-templates.com - Template Triage!
                          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                          http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                          ==================


                          "dpriskorn" <webforumsuser@macromedia.com> wrote in message
                          news:fb92h8$o46$1@forums.macromedia.com...
                          >I have no link because it's for a business and I can't take down the old
                          >one
                          > until the new one is tested and working. I'm not sure if that script got
                          > uploaded but it should have automatically created in my local files,
                          > correct?
                          >


                          • 10. Templating Flash
                            dpriskorn Level 1
                            I can see the file. Would it be at all beneficial ro maybe clear out and rename my directories and start from scratch. As you can tell by the code I'm not too far into the design. Just a little baffled by the problem.
                            • 11. Re: Templating Flash
                              Level 7
                              When you browse to it on the remote site AT THE LOCATION SPECIFIED IN YOUR
                              PAGE, do you get prompted to download it?

                              --
                              Murray --- ICQ 71997575
                              Adobe Community Expert
                              (If you *MUST* email me, don't LAUGH when you do so!)
                              ==================
                              http://www.dreamweavermx-templates.com - Template Triage!
                              http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                              http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                              http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                              ==================


                              "dpriskorn" <webforumsuser@macromedia.com> wrote in message
                              news:fb94nu$qgb$1@forums.macromedia.com...
                              >I can see the file


                              • 12. Re: Templating Flash
                                dpriskorn Level 1
                                No, Do I have to do anything special to try and browse the file other than just open the page? I'm not really familiar with what you're talking about.
                                • 13. Re: Templating Flash
                                  Level 7
                                  Just post a link to the page that is not playing the Flash, please.

                                  --
                                  Murray --- ICQ 71997575
                                  Adobe Community Expert
                                  (If you *MUST* email me, don't LAUGH when you do so!)
                                  ==================
                                  http://www.dreamweavermx-templates.com - Template Triage!
                                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                  http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                                  ==================


                                  "dpriskorn" <webforumsuser@macromedia.com> wrote in message
                                  news:fb97jq$d2$1@forums.macromedia.com...
                                  > No, Do I have to do anything special to try and browse the file other than
                                  > just open the page? I'm not really familiar with what you're talking
                                  > about.


                                  • 14. Re: Templating Flash
                                    dpriskorn Level 1
                                    I'm not quite sure why this worked, but I simply did what I asked and recreated the whole directory and started over. Now it works. Thanks so much for your patience and help, I promise I'm not as stupid as I seem :)