理解 flex actionscript
as 不允许overload...即对于同一个函数名不能有不同的参数列表和返回值
类中的geter 和 setter 与其他的方法一样,除了
1.get函数没有参数,并且必须有返回值,并且必须有get关键字
2.set函数必须有参数并且没有返回值,并且必须有set关键字
Java代码
public function get sampleProperty( ):String {
return _sampleProperty;
}
public function set sampleProperty(value:String):void {
_sampleProperty = value;
}
public function get sampleProperty( ):String {
return _sampleProperty;
}
public function set sampleProperty(value:String):void {
_sampleProperty = value;
}
Array对象可以放入不同类型的实例.
Object class 是动态的,这意味着你可以在Object的实例中添加任意属性(不知道有没有方法).
如果要对类中的方法override,那么函数名,参数列表,返回值,以及访问权限都必须与目标方法相同...
Interface 没有属性,只定义方法原型,并且不需要权限修饰符(默认为publish,呵呵,如果有权限的话,根本就用不了他,还有啥用)
Java代码
package com.example {
public interface IExample {
function a( ):String;
function b(one:String, two:uint):void;
}
}
package com.example {
import com.example.IExample;
public class Example implements IExample {
public function Example( ) {
}
public function a( ):String {
return "a";
}
public function b(one:String, two:uint):v
相关文档:
对FLEX自带的加载效果-小时钟看厌烦了? 那就改的有创意一些吧
SWF Flex 2 Preloader
SWF Flex 2 Preloader View Source
SWF Flex 2 Preloader Source ZIP
GIF Flex 2 Preloader
GIF Flex 2 Preloader View Source
GIF Flex 2 Preloader Source ZIP
PNG Flex 2 Preloader
PNG Flex 2 Preloader View Source
PNG ......
本贴转自:http://wufenggang.spaces.live.com/String/
APIs、Libs、Components
1、as3ebaylib
http://code.google.com/p/as3ebaylib/
2、as3youtubelib
http://code.google.com/p/as3youtubelib/
3、as3flickrlib
http://code.google.com/p/as3flickrlib/
4、Yahoo ASTRA Flash Components
http://developer.yaho ......
A client asked me to do something seemingly simple.
"I want the Alert to have just this one sentence bolded."
Well, it's not exactly simple, so here's how you do it:
there are two solutions as below :
import mx.core.IUITextField;
use namespace mx.core.mx_internal;
message +="Press ......
写flex也写了2年多了,居然还没有用过pureMVC或者Cairngrom这样的MVC框架,个人觉得有点丢人了。大概看了一下,框架的结构和以前自己开发的时候差不多。但是,虽然是一样,也不够专业啊,于是发了把狠,开始决定研究下Cairngorm,不能落后不是^^。先了解下Cairngorm的分层思想:
什么是Cairngorm
cairngorm中文名是&ldquo ......
Flex 4带给我们的,是全新的命名空间。了解这些命名空间必定是一件好事情。Flex 4有三个非常重要的命名空间,分别是:
xmlns:fx=”http://ns.adobe.com/mxml/2009″
xmlns:mx=”library://ns.adobe.com/flex/halo”
xmlns:s=”library://ns.adobe.com/flex/spark&rdq ......