We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10386
    • 42 Posts
    I must be doing something wrong here; i want to embed my swf in my HTML page, but the bit of code seems to "disappear" when i preview my page

    here is the code in my chunk;
    <object>
      <param name="movie" value="[+SWF1+]" />
      <param name="quality" value="high" />
      <param name="wmode" value="opaque" />
      <param name="swfversion" value="6.0.65.0" />
      <param name="expressinstall" value="http://ventoline.co.uk/works/Scripts/expressInstall.swf" />
      
      <object type="application/x-shockwave-flash" data="[+SWF1+]>
        <param name="quality" value="high" />
        <param name="wmode" value="opaque" />
        <param name="swfversion" value="6.0.65.0" />
        <param name="expressinstall" value="http://ventoline.co.uk/works/Scripts/expressInstall.swf" />
        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
        <div>
        </div>
      </object>
    </object>
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
    </script>
    


    which onlin turns to
    <object>
      <param name="movie" value="assets/files/10044119_250x250.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="opaque" />
      <param name="swfversion" value="6.0.65.0" />
      <param name="expressinstall" value="http://ventoline.co.uk/works/Scripts/expressInstall.swf" />
      <object type="application/x-shockwave-flash" data="assets/files/10044119_250x250.swf>
        <param name="quality" value="high" />
    
        <param name="wmode" value="opaque" />
        <param name="swfversion" value="6.0.65.0" />
        <param name="expressinstall" value="http://ventoline.co.uk/works/Scripts/expressInstall.swf" />
        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
        <div>
        </div>
      </object>
    </object>
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
    </script>
    


    what am i doing wrong? it seemed so simple at first sad

    how can i simply embed the swf i have imported, in the same way i do with pictures? [ed. note: gaelle last edited this post 14 years, 6 months ago.]
      • 32316
      • 387 Posts
      <edit>: while I was writing the reply below the original post was edited - I have not looked to see what was changed so ... ymmv!!!
      </edit>

      Which bit of code disappears? Maybe I have not stared at it long enough!!!
      But...
      I do see some problems with double quotes in the chunk code:
      line 9 - missing a closing "
      lines 6 and 13 - you can't nest double quotes - browser will see
      value="<a href="
      all the stuff after that will confuse it [ed. note: whistlemaker last edited this post 14 years, 6 months ago.]
        • 32316
        • 387 Posts
        Hint - if look at the OP the formatting of the code will give you some clues that something is not right:
        You have:
        <object type="application/x-shockwave-flash" data="[+SWF1+]>

        I think you want (note the blue):
        <object type="application/x-shockwave-flash" data="[+SWF1+]">


        and
        <param name="expressinstall" value="<a href="http://blahblah/expressInstall.swf"" target="_blank" rel="nofollow">http://blahblah/expressInstall.swf"</a> />

        I think you want to use this:
        <param name="expressinstall" value='<a href="http://blahblah/expressInstall.swf" target="_blank" rel="nofollow">http://blahblah/expressInstall.swf"</a>' />
          • 10386
          • 42 Posts
          Ah sorry about this, i have fixed the URL, but still, nothing shows up, and
          here is the code again:

           [+phx:if=`[+SWF1+]`:ne=``:then=`<li> swf coming soon
          <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="120" height="120">
            <param name="movie" value="http://ventoline.co.uk/works/[+SWF1+]" />
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            <param name="expressinstall" value="http://ventoline.co.uk/works/Scripts/expressInstall.swf" />
            <object type="application/x-shockwave-flash" data="http://ventoline.co.uk/works/[+SWF1+]">
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="6.0.65.0" />
              <param name="expressinstall" value="http://ventoline.co.uk/works/Scripts/expressInstall.swf" />
              </object>
          </object> 
          <script type="text/javascript">
          swfobject.registerObject("FlashID");
          </script>
          </li> `+] 
          




          and online:

           
           <li> swf coming soon
          <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="120" height="120">
            <param name="movie" value="http://ventoline.co.uk/works/assets/files/10044119_250x250.swf" />
          
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            <param name="expressinstall" value="http://ventoline.co.uk/works/Scripts/expressInstall.swf" />
            <object type="application/x-shockwave-flash" data="http://ventoline.co.uk/works/assets/files/10044119_250x250.swf">
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="6.0.65.0" />
              <param name="expressinstall" value="http://ventoline.co.uk/works/Scripts/expressInstall.swf" />
          
              </object>
          </object> 
          <script type="text/javascript">
          swfobject.registerObject("FlashID");
          </script>
          </li>  
          
            • 10386
            • 42 Posts
            not sure what was the difference, but the following worked.. now i am looking forward to resctrict the to its designed size, as all elements off stages are showing..

            <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="498" height="380" id="test1">
            <param name="movie" value="[+SWF1+]" /><embed src="[+SWF1+]" width="498" height="380" name="test1" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /></object>