Languages‎ > ‎Flash‎ > ‎

Javascript and SWFObject to stop leeching flash videos

http://code.google.com/p/swfobject/


Sample code:

      <script type="text/javascript">
          // <![CDATA[         
         var fo = new SWFObject( "Module-2.3_controller.swf", "csSwf", "1024", "786", "8", "#FFFFFF" );
         fo.addVariable( "csConfigFile", "Module-2.3_config.xml"  );
         fo.addVariable( "csColor"     , "FFFFFF"           );
        
         if( args.movie )
         {
            fo.addVariable( "csFilesetBookmark", args.movie );
         }
         fo.write("flashcontent");                
         // ]]>

       </script> 
Comments