Category Archives: ActionScript

ActionScript

Flex: 使用URLRequest进行下载, 并监听有关事件

使用URLRequest下载文件. – 无权限认证

// 下载文件
protected function downloadTemplateFile():void {
var fileRef:FileReference = new FileReference();
var u

More…

Posted in ActionScript, Flex | Tagged , , , | Leave a comment

Flex: 设定Chart的顶点样式

代码

lineSeries.setStyle("itemRenderer", new ClassFactory(mx.charts.renderers.CircleItemRenderer));

效果:

image

Posted in ActionScript, Flex | Tagged , , , , | 1 Comment

Flex: 运行Application出现URI is not absolute错误的解决方法

Application已经改动, 但仍使用了运行中的旧有Application, 因此会出现该错误.

解决方法: 点击Application, run(debug) as, 而不是直接点击run 或 debug中的记录.

Posted in ActionScript | Tagged , , | Leave a comment

Flex:使用direction控制TileList的显示方向

TileBase.direction
属性
direction:String  [读写]
此控件布置其子控件的方向。可能的值为 TileBaseDirection.HORIZONTAL 和 TileBaseDirection.VERTICAL。默认值为 TileBaseDirection

More…

Posted in ActionScript | Tagged , , , | 1 Comment

DragDrop时, 使用DragEvent.dragInitiator来获得Drag源头, 而非DragEvent.relatedObject

首发: http://riashanghai.com/node/123
问题描述:
在进行DragDrop时, 我使用了DragDrop.relatedObject来获得Drag触发的UIComponent
如: var dargUI:TileList = e.relatedObject as

More…

Posted in ActionScript | Tagged , , , , | Leave a comment