Jump to content

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 code is working fine in IE,but not working in mozila any suggestions

 

thanks in adv........

Link to comment
https://forums.phpfreaks.com/topic/161357-flashplayer-not-working-in-mozila/
Share on other sites

Suggestion:

 

SWFObject - http://code.google.com/p/swfobject/  (Thanks to haku suggestion)

 

Help:

What about your flash doesnt work ?

Does it not show? does not load? does not embed object properly? are the paths correct? how big is the swf file?

 

Guest
This topic is now closed to further replies.
×
×
  • 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.