Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,007
    Thanks
    59
    Thanked 10 Times in 10 Posts

    Question What is the point of all this code to embed a flash file?

    What is the point of all this code to embed a flash file? It looks real redundant by Dreameaver. Things like width and quality are stated again and again?

    Code:
      <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1000','height','197','src','flash/mp3_player/Mp3 Player - JamesK','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','flash/mp3_player/Mp3 Player - JamesK' ); //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,28,0" width="1000" height="197">
            <param name="movie" value="flash/mp3_player/Mp3 Player - JamesK.swf">
            <param name="quality" value="high">
            <embed src="flash/mp3_player/Mp3 Player - JamesK.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="32" height="32"></embed>
          </object>
          </noscript>
    If I want to put in <param name='flashVars' value='play=true'> how do I do it? Do I need to put it in 3 times among this code?


  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    With that code yes. Thats Adobes implementation of putting flash on the page to get around the "Click to Activate" thing in some browsers. Personally I recommend http://blog.deconcept.com/swfobject/

    Version 2.0 is better but harder to use. v1.5 is straightforward.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,007
    Thanks
    59
    Thanked 10 Times in 10 Posts
    Thanks mate, I like that swfobject If its good enough for you its good enough for me!


  • #4
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,007
    Thanks
    59
    Thanked 10 Times in 10 Posts
    Seems as if I should go with v2 because it seems more future proof.



  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •