Generates a Flash movie from a chart and returns the HTML tag as a string.
string object->GetHTMLTag( )
The format of the generated file (i.e. Flash movie, JPEG image or PNG image) is defined by the method SetOutputFormat.
<OBJECT width=300 height=210 classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"> <param name=movie value="/charts_cache/9A7DE3D6-CE1E412B.swf"> <param name=quality value=high> <EMBED src="/charts_cache/9A7DE3D6-CE1E412B.swf" width=300 height=210 quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"> </EMBED> </OBJECT>
This Flash object will need the Flash 4 Player on the client browser. If Flash compression is enabled, the Flash object will automatically requires the Flash 6 Player.
<IMG src="/charts_cache/9A7DE3D6-CE1E412B.jpg" width=300 height=200">
The following PHP code illustrates use of the GetHTMLTag method.
// Create the chart series $chart->SetDataFromQuery(); $chart->LoadStyle("C:\\myStyle.scs"); // We can now generate the movie and print the HTML tag referencing it echo $chart->GetHTMLTag();
SetOutputFormat Method | GetOutputLocation Method | SetCacheName Method | SetPrivateCacheDir Method | SetMaxCacheSize Method | ClearCache Method | UseCache Method
Applies To: Chart Object