在AS3类定义之前括号 [英] square bracket before class definition in as3

查看:199
本文介绍了在AS3类定义之前括号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过的类定义之前使用的嵌入标记,但我只看到基思使用这些。

I've seen the embed tag used before the class definition, but I just saw that Keith is using these..

[Event(name="select", type="flash.events.Event")]
[Event(name="close", type="flash.events.Event")]
[Event(name="resize", type="flash.events.Event")]
public class Window extends Component{

有人可以告诉我这是什么呢?

can someone tell me what this does?

推荐答案

大多数importantantly,Flex编译器使用它时,除preting MXML。但实际上它只是元数据,ASDocs和放大器;一些code完成的实现将用它向你展示了可用的事件,但多数民众赞成它。

Most importantantly, the Flex compiler uses it when interpreting MXML. But really its just metadata, ASDocs & some code completion implementations will use it to show you the available events, but thats about it.

它在这里的文档:<一href="http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_3.html">http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_3.html

希望帮助!

(回答编辑,以更准确)

这篇关于在AS3类定义之前括号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆