PHP Classes

File: sample_swfobject.php

Recommend this page to a friend!
  Classes of Tom Schaefer  >  QOpenFlash  >  sample_swfobject.php  >  Download  
File: sample_swfobject.php
Role: Example script
Content type: text/plain
Description: Showing how to use OFC in combination with QSWFObject.
Class: QOpenFlash
Display charts using Open Flash
Author: By
Last change: elim. error
Date: 14 years ago
Size: 1,541 bytes


Class file image Download
<BODY bgcolor="#FFFFFF"><?php
= array("w" => 400, "h" => 300);
$library_charts = $library . "/charts_library";
* This sample does only work in combination with QOpenFlash
* You have to provide the path to QOpenFlash class too.
* Look at the include and config section

// includes

// config
$config = array(
"bgcolor" => "#ffffff"

// swf object
$swfObject = new SWFObject();
$swfObject->setParam(array("name"=>"movie", "value"=> $config["path"].'/open-flash-chart.swf?width='. $config["width"] .'&height='. $config["height"] . '&data='. $config["url"]));
$swfObject->setParam(array("name"=>"quality", "value"=>"high"));
$swfObject->setParam(array("name"=>"bgcolor", "value"=>$config["bgcolor"]));
"src"=> $config["path"].'/open-flash-chart.swf?width='. $config["width"] .'&height='. $config["height"] . '&data='. $config["url"],
"quality" => "high",
"bgcolor" => "#".$config["bgcolor"],
"name" => "charts",
"id" => "charts",
"swLiveConnect" => "true",
"type" => "application/x-shockwave-flash",
"pluginspage" => ""

For more information send a message to info at phpclasses dot org.