flash chart
$g = new graph(); 建立一个对象
$g->title( 'Spoon sales '. date("Y"), '{font-size: 26px;}' );
$g->set_data( $data ); 设置每个点的数
$g->line_hollow( 2, 4, '0x80a033', 'Spoon sales', 10 );
其中第一个参数是设置线条的粗线,第一个参数是设置圆点的大小,第三个是参数是颜色值,第四个是参签名称,第五个是字体的大小
$g->set_x_labels( array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec' ) ); 设置X的坐标值
$g->set_y_max( 60 ); 设置Y轴的最大值,
// label every 20 (0,20,40,60)
$g->y_label_steps( 6 );将Y轴安最大值分成多少个步长
<?php
include_once( 'ofc-library/open-flash-chart.php' );
$bar = new bar_sketch( 50, 6, '#99FF00', '#7030A0' ); 画柱状图
$bar->key( '% Complete', 10 );设置标题标签
$data = array();
$labels = array();
$bar->data[] = 50;
$labels[] = 'Mon';
$bar->data[] = 65;
$labels[] = 'Tue';
$bar->data[] = 70;
$labels[] = 'Wed';
$bar->data[] = 75;
$labels[] = 'Thu';
$bar->data[] = 80;
$labels[] = 'Fri';
$bar->data[] = 89;
$labels[] = 'Sat';
$bar->data[] = 100;
$labels[] = 'Sun';
//
// ----
//
$g = new graph();
$g->title( 'Paper Mario, % complete', '{font-size: 18px; color: #A0A0A0;}' );
$g->set_tool_tip( 'Progress, #val#%' );//鼠标点到柱状图上所显示的内容
//
//
// set the X axis labels
$g->set_x_labels( $labels );
//$g->set_data( $data );
//$g->bar_sketch( 50, 6, '#99FF00', '#7030A0', '% Complete', 10 );
//
// add the bar object to the graph
//
$g->data_sets[] = $bar;
$g->set_x_label_style( 10,
相关文档:
Want play some .SWF files, so download "Adobe flash player for IE", then install successfully, but it is a plug, can't open the swf files independently, by the other word, I just can play them in IE, but I don't like so.
At first, I think there is a .exe player can be executing, so locate C:\windo ......
Ubuntu下装完Adobe的Flash插件后,浏览器里可以播放Flash动画了。但是还存在一个问题就是汉字无法正确显示,显示为方格
解决办法:
修改这个配置文件
/etc/fonts/conf.d/49-sansserif.conf
把其中所有的字体名替换为中文字体名即可,我这里用的是“微软雅黑”和“Consolas“。
<?xml version=" ......
as3.0
../drawingapplication.fla
document class设置为ch6.drawingApplication
../ch6/drawingApplication.as
package ch6 {
import flash.display.Sprite;
& ......
之前在Windows下用过Firefox的64位版本-Shiretoko,但是由于64位的flash player plugin一直安装不上,导致很多应用都用不了,据说可以使用NSPlugin Wrapper包和32位的类库来使用32位的flash player,我没有尝试。最近安装了64位的Gentoo,opera和shiretoko还是无法自动安装64位的flash player plugin。 ......
ScrollPane加载图片:http://flash.9ria.com/viewthread.php?tid=37296&highlight=ScrollPane
SoundChannel控制声音:http://flash.9ria.com/viewthread.php?tid=25745&highlight=Sound
捕获窗体变化事件:http://flash.9ria.com/viewthread.php?tid=7203&highlight=%E6%9C%80%E5%A4%A7%E5%8C%96
加载和卸载 ......