<HTML>
<BODY bgcolor="#FFFFFF"><?php
$library = "openflash";
$library_charts = $library . "/";
$dim = array("w" => 640, "h" => 480);
// includes
include_once("../QSWFObject.fluent.interface.php");
// config
$config = array(
"width"=>$dim["w"],
"height"=>$dim["h"],
"path"=>"./",
"url" => "{path-to-php-script-which-renders-open-flash-data}",
);
// objects
$swfObject = new QSWFObject();
$swfObject->addConfig($config)
->setParam(
array
(
"name"=>"movie",
"value"=> $config["path"].'/open-flash-chart.swf?width='. $config["width"] .'&height='. $config["height"] . '&data='. $config["url"]
)
)
->setParam(array("name"=>"quality", "value"=>"high"))
->setParam(array("name"=>"bgcolor", "value"=>"#ffffff"))
->setEmbed(
array
(
"src"=> $config["path"].'/open-flash-chart.swf?width='. $config["width"] .'&height='. $config["height"] . '&data='. $config["url"],
"quality" => "high",
"bgcolor" => "#ffffff",
"width"=>$dim["h"],
"height"=>$dim["h"],
"name" => "charts",
"id" => "charts",
"swLiveConnect" => "true",
"type" => "application/x-shockwave-flash",
"pluginspage" => "http://www.macromedia.com/go/getflashplayer"
)
)
->render();
?></BODY>
</HTML>
|