
ActionScript3/Flex4
文章平均质量分 86
iteye_3662
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Flex Component Life Cycle
The lifecycle of component in flex is certainly somewhat similar to the old V2 framework where you create a component holder, craetechildren, set-sizes and dispatch events. Following four methods play...原创 2010-09-02 22:39:03 · 111 阅读 · 0 评论 -
Flash Socket通信的安全策略问题
今天测试flash socket连接java socket,遇到安全策略问题,折腾了半天才弄好。做下关键点记录: flash发起socket通信的过程: 当封装在页面的flash发起socket通信请求的时候会先寻找服务器端的843端口,获取crossdomain.xml文件,当服务器没有开启843的时候,flashPlayer会检查发起请求的swf文件中中有没有使用S...原创 2011-02-22 16:45:19 · 141 阅读 · 0 评论 -
Flex4中[Bindable]做了什么?
Flex里面[Bindable]相信大家都用过,其实这个是给编译器看的,那编译器到底做了什么呢?今天特地去研究了下:首先在fb的Flex编译器里面加上编译参数-keep-generated-actionscript=true,然后会生成一个generated目录,里面就是从mxml生成的as文件。 比如你在mxml文件里定义了[Bindable]...原创 2011-02-17 22:49:38 · 137 阅读 · 0 评论 -
使用 Flex Ant Tasks 构建 Flex 项目
1. 安装ant,然后复制FLEX_HOME/sdks/4.0.0/ant/lib下面的flexTasks.jar到ANT_HOME/lib 2. build.properties # change this to your Flex SDK directory pathFLEX_HOME=D:/Adobe/Adobe Flash Builder 4 Plug-in/sdks...原创 2011-02-11 18:08:15 · 165 阅读 · 0 评论 -
AlertBox With No Buttons! (HACK)
Browsing around EE today, I found an interesting question. This person wanted an AlertBox that had no buttons at all. The goal was to have the identical functionality / look as an alert, but to only d...原创 2011-01-21 17:06:30 · 89 阅读 · 0 评论 -
HTML Text in a Flex Alert box
A quick and easy way to render HTML text with the body of a Flex Alert box.There is no API to set the htmlText property of the Alert text field, but you can access it using the mx_internal namespace....原创 2011-01-21 14:26:32 · 110 阅读 · 0 评论 -
Flex 国际化参考
做一个记录和mx.utils.StringUtil.substitute()包做个记录: Using this class, the example above would look more like this: receivedMessage=At %time%, you received a message from %userName%.// then i...原创 2010-11-29 16:59:15 · 156 阅读 · 0 评论 -
Learn how to create a simple virtual layout in Flex 4
This post goes over the basics of writing a very simple custom layout that supports virtualization in spark. It assumes that you have already built a custom layout that handles the real (non-virtual) ...原创 2010-11-13 14:30:43 · 109 阅读 · 0 评论 -
深入理解Flash Player重绘
Flash Player 会以SWF内容的帧频速度来刷新需要变化的内容,而这个刷新的过程,我们通常称为“重绘(redraw)”,相信即便是初级的菜鸟也知道,只要使用的是Debug版本的Flash Player, 右键菜单里就会有“Show Redraw Regions (显示重绘区域)” 这个选项,当此选项打开的时候,我们就能清楚地看到此刻场景内被重绘的区域。 那么什么情况...原创 2010-10-12 22:00:49 · 91 阅读 · 0 评论 -
AlivePDF本地生成PDF
直接上例子吧,本来想用html布局生成pdf的,没成功。。。<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="libr原创 2010-09-29 10:07:00 · 236 阅读 · 0 评论 -
Flex 备忘
1. 读取从swf传进来的参数var first_name : String = FlexGlobals.topLevelApplication.parameters.firstname; 2. FXG使用fill对图形本体进行上色,使用stroke对图形边框进行上色,而fill(填充)和stroke(画笔)有三种上色方法: fill — SolidColor(色块)...原创 2010-09-10 11:15:27 · 160 阅读 · 0 评论 -
Understanding Custom Flex Component Development
I’ve been refining my custom Flex component development for a while but I still smile when I come across someone’s definition of the basics that makes what I’ve already learned even more understandabl...原创 2010-09-02 22:57:55 · 502 阅读 · 0 评论 -
Flash应用的本地缓存以及AS3单例模式
package { import flash.net.SharedObject; public class LocalCache { private var cache:SharedObject; private static var _instance:LocalCache; public function LocalCache(singletonEnf...原创 2011-03-01 14:47:23 · 228 阅读 · 0 评论