2008-03-13

理解 flex actionscript

关键字: flex actionscript
as 不允许overload...即对于同一个函数名不能有不同的参数列表和返回值 类中的geter 和 setter 与其他的方法一样,除了 1.get函数没有参数,并且必须有返回值,并且必须有get关键字 2.set函数必须有参数并且没有返回值,并且必须有set关键字 public function get sampleProperty( ):String { return _sampleProperty; } public function set sampleProperty(value:String):void { _sampleProperty = value; ...
2008-03-13

理解 flex component

关键字: flex component
component就是一个AS class 或者是MXML component文件在manifest文件中映射的标签.分可视和不可视 可视化component包括Containers 和 UI controls Containers(Appliction, Panel...) UI controls(Button, Label) 可以通过3种方式设置component的属性 1.tag attributers <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> </mx:Ap ...
2008-03-12

Flex 的 namespace

关键字: flex 命名空间 namespace
理解namespace <Application xmlns="http://www.adobe.com/2006/mxml"> http://www.adobe.com/2006/mxml为 URI,在编译时期加入的。这样的话,我们就可以用http://www.adobe.com/2006/mxml中定义的class和component了。比如说 <Button /> 一般来讲,我们都会给namespace一个名字,你比如说mx-- xmlns:mx="http://www.adobe.com/2006/mxml,这样类似于上面的调用button就应该改为 ...
yimogod
搜索本博客
最近加入圈子
存档
最新评论