UIComponent的创建过程

请求component的构造器-->设置component的属性-->调用父容器的addChild方法,这包括:
   a) Flex设置component的parent属性并引用其父容器。
   b) 设置component样式
   c) component发送add事件(其实是flex发送,component是源)
   d) 父容器发送addChild事件
   e) Flex发送component的preinitialize时间
   f) Flex创建并初始化component的子UI—如button组件显示“确定”文本的text label
   g) Flex发送Initialize时间

  -->接下来,为了显示component,一个render事件被触发
   a) Flex完成显示component的所有必需过程,包括layout component
   b) Flex设置component的visible属性为true
   c) Flex发送creationComplete事件
   d) Flex发送组件的updateComplete事件
http://yimogod.iteye.com/blog/197200

你可能感兴趣的:(C++,c,UI,C#,Flex)