Null is null or not an object with Flash Video

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ann Case
    New Member
    • Mar 2011
    • 1

    Null is null or not an object with Flash Video

    I am very new to jscript especially as it pertains to delivering flash elements... That being said - here is what I am dealing with.

    Plugin for Wordpress embed-video-with-link. The site is completely under SSL. No triggers with Firebug in Firefox but in IE get the dreaded null is null or not an object error.

    This is the piece of code I 'think' is causing the problem

    Code:
    define("FLASHPLAYER_TARGET", "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"".GENERAL_WIDTH."\" height=\"".FLASHPLAYER_HEIGHT."\">
    <param value=\"#FFFFFF\" name=\"bgcolor\" />
    <param name=\"movie\" value=\"".get_option('siteurl')."/wp-content/plugins/embedded-video-with-link/mediaplayer/player.swf\" />
    <param value=\"file=###VID###&amp;showdigits=true&amp;autostart=false&amp;overstretch=false&amp;showfsbutton=false\" name=\"flashvars\" allowScriptAccess=\"always\" />
    <param name=\"wmode\" value=\"transparent\" />
    
    <!--[if !IE]> <-->
    <object data=\"".get_option('siteurl')."/wp-content/plugins/embedded-video-with-link/mediaplayer/player.swf?file=###VID###\" type=\"application/x-shockwave-flash\" height=\"".FLASHPLAYER_HEIGHT."\" width=\"".GENERAL_WIDTH."\">
    <param value=\"#FFFFFF\" name=\"bgcolor\">
    <param value=\"file=###VID###&amp;showdigits=true&amp;autostart=false&amp;overstretch=false&amp;showfsbutton=false\" name=\"flashvars\" allowScriptAccess=\"always\">
    <param name=\"wmode\" value=\"transparent\" />
    </object><!--> 
    <![endif]-->
    </object><br />");
    I've read a bit around and it seems it has something to do with the object not being properly defined? But I am stuck and don't know what direction to go - Any help greatly appreciated.

    Thanks

    **Ann
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Try using SWFObject to embed Flash content.

    Comment

    Working...