主题:  听说在CF中直接生成flash,谁能说说?

dannyr

职务:普通成员
等级:1
金币:0.0
发贴:39
#12002/3/29 11:10:28
听说在CF中直接生成flash,而不是单独做flash再调用cfm,谁能说说?



5DDC版主

职务:版主
等级:6
金币:10.0
发贴:3820
#22002/3/29 11:58:04
这个是完全可以的!
因为CFML引擎中有一个独立的图像\Flash 引擎!提供一些固定的模板!可以动态声称相关的Flash文件!



jaway

职务:普通成员
等级:1
金币:1.0
发贴:153
#32002/3/29 12:04:19
和flash有关的我都是张白纸



dannyr

职务:普通成员
等级:1
金币:0.0
发贴:39
#42002/3/29 13:46:02
请给一个demo吧!



5DDC版主

职务:版主
等级:6
金币:10.0
发贴:3820
#52002/3/29 16:44:29
你要什么样的DEMO?
效果么?还是源代码?



dannyr

职务:普通成员
等级:1
金币:0.0
发贴:39
#62002/3/29 17:14:41
当然是代码了!



5DDC版主

职务:版主
等级:6
金币:10.0
发贴:3820
#72002/3/31 11:08:29
实例:
其中query = " " 中的数据库源名
valuecolumn="count" 数据库中的计数字段
itemcolumn="title" 数据库中的标题字段
其他为一些标签属性:



CFML Reference

--------------------------------------------------------------------------------
ColdFusion Tags




cfgraph
Description
Displays a graphical representation of data.

Category
Extensibility tags

See also
cfcollection, cfexecute, cfindex, cfobject, cfreport, cfsearch, cfservlet, cfwddx

Usage

The cfgraph tag requires a terminating end tag, even if the tag body is empty.

Only cfgraphdata tags are allowed inside the cfgraph tag body. The cfgraphdata tag lets you graph data that does not come from a query. You can combine data from a query and cfgraphdata tags.

To use the cfgraph tag, you must have Macromedia Generator running on a JRun server. If the JRun server is not listening on the default port on your localhost, you must use ColdFusion Administrator to specify the host address and port. For more information, see Installing and Configuring ColdFusion Server.

cfgraph topics
The following sections describe options to the cfgraph tag:

cfgraph type = "bar" or type = "horizontalBar"
cfgraph type = "line" (includes area graphs)
cfgraph type = "pie"



dannyr

职务:普通成员
等级:1
金币:0.0
发贴:39
#82002/4/1 8:27:01
我还以为是什么动态生成flash呢,原来就只是统计图啊!哈哈,我也来贴一个!



5DDC版主

职务:版主
等级:6
金币:10.0
发贴:3820
#92002/4/1 9:15:56
这个生成引擎是5.0向mx发展的基础!
所以还是学学好!