Jump to content

flasyplayer swf object is not working in mozila


suresh1

Recommended Posts

function InsertChart( $flash_file, $library_path, $php_source, $width=400, $height=250, $bg_color="666666", $transparent=false, $license="D1OURHVZC2BA8F76D5J6.FNAH2VORK" ){

 

$php_source=urlencode($php_source);

$library_path=urlencode($library_path);

 

$html="<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' ";

$html.="WIDTH=".$width." HEIGHT=".$height." id='charts' ALIGN=''>";

$u=(strpos ($flash_file,"?")===false)? "?" : ((substr($flash_file, -1)==="&")? "":"&");

$html.="<PARAM NAME=movie VALUE='".$flash_file.$u."library_path=".$library_path."&stage_width=".$width."&stage_height=".$height."&php_source=".$php_source;

if($license!=null){$html.="&license=".$license;}

$html.="'> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#".$bg_color."> ";

if($transparent){$html.="<PARAM NAME=wmode VALUE=transparent> ";}

$html.="<EMBED src='".$flash_file.$u."library_path=".$library_path."&stage_width=".$width."&stage_height=".$height."&php_source=".$php_source;

if($license!=null){$html.="&license=".$license;}

$html.="' quality=high bgcolor=#".$bg_color." WIDTH=".$width." HEIGHT=".$height." NAME='charts' ALIGN='' swLiveConnect='true' ";

if($transparent){$html.="wmode=transparent ";}

$html.="TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>";

return $html;

 

}

 

  above php code is working fine in IE, but it is not working in mozila, give me any suggestions.

 

 

 

thanks in adv.......................

Link to comment
Share on other sites

PLEASE USE CODE TAGS...the code is horrible as it is....eg: no indentation and everythign clustered together, no spaces...

function InsertChart( $flash_file, $library_path, $php_source, $width=400, $height=250, $bg_color="666666", $transparent=false, $license="D1OURHVZC2BA8F76D5J6.FNAH2VORK" ){
   
   $php_source=urlencode($php_source);
   $library_path=urlencode($library_path);

   $html="<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' ";
   $html.="WIDTH=".$width." HEIGHT=".$height." id='charts' ALIGN=''>";
   $u=(strpos ($flash_file,"?")===false)? "?" : ((substr($flash_file, -1)==="&")? "":"&");
   $html.="<PARAM NAME=movie VALUE='".$flash_file.$u."library_path=".$library_path."&stage_width=".$width."&stage_height=".$height."&php_source=".$php_source;
   if($license!=null){$html.="&license=".$license;}
   $html.="'> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#".$bg_color."> ";
   if($transparent){$html.="<PARAM NAME=wmode VALUE=transparent> ";}
   $html.="<EMBED src='".$flash_file.$u."library_path=".$library_path."&stage_width=".$width."&stage_height=".$height."&php_source=".$php_source;
   if($license!=null){$html.="&license=".$license;}
   $html.="' quality=high bgcolor=#".$bg_color." WIDTH=".$width." HEIGHT=".$height." NAME='charts' ALIGN='' swLiveConnect='true' ";
   if($transparent){$html.="wmode=transparent ";}
   $html.="TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>";
   return $html;
   
}

 

what is the actual HTML output..can you post that in code tags for us?!

 

haku, he probably means is "a swf object", not he using "swfObject"

Link to comment
Share on other sites

function InsertChart( $flash_file, $library_path, $php_source, $width=400, $height=250, $bg_color="666666", $transparent=false, $license="D1OURHVZC2BA8F76D5J6.FNAH2VORK" ){

 

$php_source=urlencode($php_source);

$library_path=urlencode($library_path);

 

$html="<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' ";

 

 

 

$html.="WIDTH=".$width." HEIGHT=".$height." id='charts' ALIGN=''>";

$u=(strpos ($flash_file,"?")===false)? "?" : ((substr($flash_file, -1)==="&")? "":"&");

 

 

 

$html.="<PARAM NAME=movie VALUE='".$flash_file.$u."library_path=".$library_path."&stage_width=".$width."&stage_height=".$height."&php_source=".$php_source;

 

 

if($license!=null){$html.="&license=".$license;}

$html.="'> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#".$bg_color."> ";

 

 

 

if($transparent){$html.="<PARAM NAME=wmode VALUE=transparent> ";}

$html.="<EMBED src='".$flash_file.$u."library_path=".$library_path."&stage_width=".$width."&stage_height=".$height."&php_source=".$php_source;

 

 

if($license!=null){$html.="&license=".$license;}

$html.="' quality=high bgcolor=#".$bg_color." WIDTH=".$width." HEIGHT=".$height." NAME='charts' ALIGN='' swLiveConnect='true' ";

 

 

if($transparent){$html.="wmode=transparent ";}

$html.="TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'>

 

</EMBED></OBJECT>";

 

return $html;

 

}

 

 

 

above php code not working in mozila

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.