? swfobject.js
Index: emfield.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/emfield/emfield.module,v
retrieving revision 1.12.4.24
diff -u -p -r1.12.4.24 emfield.module
--- emfield.module	4 Jan 2009 18:17:24 -0000	1.12.4.24
+++ emfield.module	8 Feb 2009 04:51:05 -0000
@@ -122,8 +122,9 @@ function emfield_implement_types($cached
         foreach ($type['fields'] as $field_type => $field) {
 
           // If this field type is defined by this module, then include it here.
-          if ($module = $modules[$field_types[$field['type']]['module']]) {
+          if (!empty($modules[$field_types[$field['type']]['module']])) {
             // Settings per content type per module.
+            $module = $modules[$field_types[$field['type']]['module']];
             $types[$module][$content_type][$field_type] = $field;
           }
         }
Index: contrib/emvideo/providers/yahoomusic.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/emfield/contrib/emvideo/providers/Attic/yahoomusic.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 yahoomusic.inc
--- contrib/emvideo/providers/yahoomusic.inc	22 Dec 2008 18:34:56 -0000	1.1.2.1
+++ contrib/emvideo/providers/yahoomusic.inc	8 Feb 2009 04:51:07 -0000
@@ -347,22 +347,19 @@ function theme_emvideo_yahoomusic_flash(
       }
       else {
         drupal_add_js(variable_get('emfield_swfobject_location', ''));
+        $flashvars = array();
+        foreach ($variables as $name => $value) {
+          $flashvars[] = "$name: '$value'";
+        }
+        $flashvars = implode(',', $flashvars);
         $output .= <<<FLASH
           <div id="$div_id">
             Sorry, you need to install flash to see this content.
-          </div>        
+          </div>
           <script type="text/javascript">
-            var so = new SWFObject('$url', '$id', '$width', '$height', '9', '#ffffff');
-            
-FLASH;
-            foreach ($variables as $name => $value) {
-              $output .= "so.addVariable($name, '$value');\n";
-            }           
-            $output .= <<<FLASH
-            so.addParam("allowFullScreen", "$fullscreen_value");
-            so.addParam("bgcolor", "$bgcolor");
-            so.addParam("allowScriptAccess", "always");  // for scripting access
-            so.write("$div_id");
+            var params = { allowFullScreen: "$fullscreen_value", bgcolor: "$bgcolor", allowScriptAccess: "always" };
+            var flashvars = { $flashvars };
+            swfobject.embedSWF("$url", "$div_id", "$width", "$height", "9.0.0", false, flashvars, params);
           </script>
 FLASH;
       }
Index: contrib/emvideo/providers/youtube.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/emfield/contrib/emvideo/providers/Attic/youtube.inc,v
retrieving revision 1.1.2.15
diff -u -p -r1.1.2.15 youtube.inc
--- contrib/emvideo/providers/youtube.inc	4 Jan 2009 18:17:24 -0000	1.1.2.15
+++ contrib/emvideo/providers/youtube.inc	8 Feb 2009 04:51:07 -0000
@@ -290,8 +290,7 @@ function theme_emvideo_youtube_flash($em
             Sorry, you need to install flash to see this content.
           </div>
           <script language="JavaScript" type="text/javascript">
-            var so = new SWFObject("$url", "$id", "$width", "$height", "7");
-            so.write("$div_id");
+            swfobject.embedSWF("$url", "$div_id", "$width", "$height", "8");
           </script>
 FLASH;
       }
