suresh1 Posted June 8, 2009 Share Posted June 8, 2009 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 Share on other sites More sharing options...
haku Posted June 9, 2009 Share Posted June 9, 2009 Use swfObject - it's a javascript insertion technique. You can get it from google code, and it's documented there. It's crossbrowser compatible, so it will work on all browsers. Link to comment Share on other sites More sharing options...
suresh1 Posted June 10, 2009 Author Share Posted June 10, 2009 i want to its worked in php code, give me any suggestions thanks in adv........ Link to comment Share on other sites More sharing options...
trq Posted June 10, 2009 Share Posted June 10, 2009 PHP is server-side, Flash is client side. Link to comment Share on other sites More sharing options...
suresh1 Posted June 10, 2009 Author Share Posted June 10, 2009 flash is not working in mozila with codebae,classid, give me suggestis how it is working in mozila Link to comment Share on other sites More sharing options...
trq Posted June 10, 2009 Share Posted June 10, 2009 Why don't you take haku's advice? It'll be allot simpler. Link to comment Share on other sites More sharing options...
DarkSuperHero Posted June 10, 2009 Share Posted June 10, 2009 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? Link to comment Share on other sites More sharing options...
suresh1 Posted June 11, 2009 Author Share Posted June 11, 2009 my flash is not loading content in mozila, how to load content in flash player, give me any suggestions Thanks in adv.......... Link to comment Share on other sites More sharing options...
haku Posted June 11, 2009 Share Posted June 11, 2009 You've been told how to do it twice now in this thread. SWFOJBECT Link to comment Share on other sites More sharing options...
DarkSuperHero Posted June 11, 2009 Share Posted June 11, 2009 i say we mark it unsolvable.....hes not being receptive to our suggestion, nor is he providing more detail on how it does not load..... i give this one up... Link to comment Share on other sites More sharing options...
Recommended Posts