My current client’s project is pretty much Flash only. As such I have been working on some Flash-based component development. My expertise lies in Flex-based components so this is an exploration of some sorts.
[Notes to Self]
Flash <=> Flex comparison:
- configUI() = createChildren()
- invalidate() = invalidateProperties(), invalidateSize(), invalidateDisplayList():The Flash UIComponent basically lumps all of the Flex invalidation methods into one
- draw():This takes place at the beginning of the validation process. It takes care of applying styles and drawing the focus rectangle. I would most likely perform both the commitProperties() and measure() method logic here. NOTE: I say validation process not validate() which takes place later.
- validate():This is called after the draw() method during the validation phase. It looks to be intended for usage much like the updateDisplayList() method.
Please feel free to correct my observations since I am rather new to Flash component development.