Flex Custom Component LifeCycle
05月 6th, 2009 Posted in ActionScript3, Component, Flex3, LifeCycle, Tips Tricks
谈到Flex学习,大家都知道,其实Flex入门挺容易的,尤其是对其它面向对象语言像Java或C#比较熟悉的开发人员,直接阅读Flex的代码通常也没什么问题,但从另外一方面来说,要想深入学习Flex并灵活运用的话,其实并不那么容易,其中,对组件的生命周期(LifeCycle)的理解则是非常重要的一关,个人感觉的话,若充分理解并掌握了组件的生命周期才算真正Flex入门了:)
前段时间,与公司同事分享了一下自己对LifeCycle的经验,当时为了有助于宏观上理解整个Flex应用程序及组件的LifeCycle,自己画了两幅图,分享给大家,希望对大家有用~~~
点击小图可看完整的大图:)
【注】若大家要引用或转载的话,请注明出处,先谢谢了
12月 30th, 2009 at 10:44 pm
Dear Jex Chen, I’ve read your presentation “Flex Custom Component LifeCycle Practice” at SlideShare! It’s absolutely fantastic!
I’d like to ask you a question and I would appreciate if you could help me.
I’ve just started to read about Flash and Flex Application and I’m trying to understand the Life Cycle used by
Flex Application (driven on by curiosity).
I’ve done a little research on this argument; the two key concepts used into the FlashPlayer are
- SWF Frame: it’s the logical unit which contains bytecode (but also assets)
- Flash Player Frame: it’s the time interval (between two enterFrame events) used by Flash runtime to update the screen and defined by frameRate property.
If so, could you explain me the relationship bewteen these two concepts and how they fit toghether into Flex Applications?
In particular, are they paired togheter or not? Can Flash Player Frames took place many times per SWF Frame?
Thank you for your time. Best regards, Lol.