Confused about published code

  • CStrauss
  • Graduate
  • Graduate
  • User avatar
  • Posts: 122
  • Loc: St. Louis MO. USA

Post 3+ Months Ago

I created a simple animation to put in a small div box on one my pages. I'm positive the problem is with all the automatic code but the movie does not play when I open the web page.

I uploaded the AC_RunActiveContent.js file and I uploaded the swf file and copied the code related to that and pasted it in the div box on the page i want to show. Below is all the code that was generated by flash that I copied out of the publish filed and transfered over.

Code: [ Select ]
    <div class="port_item">
        <script language="javascript">AC_FL_RunContent = 0;</script>
        <script src="AC_RunActiveContent.js" language="javascript"></script>
        
        <!-- saved from url=(0013)about&#058;internet -->
<script language="javascript">
    if (AC_FL_RunContent == 0) {
        alert("This page requires AC_RunActiveContent.js.");
    } else {
        AC_FL_RunContent(
            'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
            'width', '200',
            'height', '200',
            'src', 'flash-port',
            'quality', 'high',
            'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
            'align', 'middle',
            'play', 'true',
            'loop', 'true',
            'scale', 'showall',
            'wmode', 'window',
            'devicefont', 'false',
            'id', 'flash-port',
            'bgcolor', '#750306',
            'name', 'flash-port',
            'menu', 'true',
            'allowFullScreen', 'false',
            'allowScriptAccess','sameDomain',
            'movie', 'flash-port',
            'salign', ''
            ); //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,0,0" width="200" height="200" id="flash-port" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="flash-port.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#750306" /> <embed src="flash-port.swf" quality="high" bgcolor="#750306" width="200" height="200" name="flash-port" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
</noscript>
        Flash
        
    </div>
  1.     <div class="port_item">
  2.         <script language="javascript">AC_FL_RunContent = 0;</script>
  3.         <script src="AC_RunActiveContent.js" language="javascript"></script>
  4.         
  5.         <!-- saved from url=(0013)about&#058;internet -->
  6. <script language="javascript">
  7.     if (AC_FL_RunContent == 0) {
  8.         alert("This page requires AC_RunActiveContent.js.");
  9.     } else {
  10.         AC_FL_RunContent(
  11.             'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
  12.             'width', '200',
  13.             'height', '200',
  14.             'src', 'flash-port',
  15.             'quality', 'high',
  16.             'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
  17.             'align', 'middle',
  18.             'play', 'true',
  19.             'loop', 'true',
  20.             'scale', 'showall',
  21.             'wmode', 'window',
  22.             'devicefont', 'false',
  23.             'id', 'flash-port',
  24.             'bgcolor', '#750306',
  25.             'name', 'flash-port',
  26.             'menu', 'true',
  27.             'allowFullScreen', 'false',
  28.             'allowScriptAccess','sameDomain',
  29.             'movie', 'flash-port',
  30.             'salign', ''
  31.             ); //end AC code
  32.     }
  33. </script>
  34. <noscript>
  35.     <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="200" height="200" id="flash-port" align="middle">
  36.     <param name="allowScriptAccess" value="sameDomain" />
  37.     <param name="allowFullScreen" value="false" />
  38.     <param name="movie" value="flash-port.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#750306" /> <embed src="flash-port.swf" quality="high" bgcolor="#750306" width="200" height="200" name="flash-port" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
  39.     </object>
  40. </noscript>
  41.         Flash
  42.         
  43.     </div>


First by doing it this way did I do something wrong? Second is there a better way to do what I'm doing? I do know I need to change some paths to the folder I uploaded to, I thought I did that but still nothing plays when I load the page. Any help would be great.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • CStrauss
  • Graduate
  • Graduate
  • User avatar
  • Posts: 122
  • Loc: St. Louis MO. USA

Post 3+ Months Ago

LOL okay fixed it myself not sure if this is the best thing to do but I took a lucky guess and just pasted this code:

Code: [ Select ]
<embed src="flash-port.swf" quality="high" bgcolor="#750306" width="200" height="200" name="flash-port" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />


Is this good practice to do this way? Isn't it important to have all the object tags as well as the AC_RunActiveContent.js to work properly. As well doesn't this not check to see what version of flash player they are using?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 9 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.