Wednesday, December 10, 2008

MovieClipUIComponentMaterial


One of stuffs that I needed and missed in papervison2.0 was lack of material that supports UIComponents. Basically I don't want to use mambo-jumbo tricks in Flash as possible. I've found the Jonh Garden blog about using UIComponents on material and problems. Problems wasn't just that UIComponents are changing size after init but constant render which affect then material bitmap. I didn' like hiding component movie in x=y=1000 and wiring evets and waiting for every tcomponet to be added on Stage. About component movie the first idea was to make upadate by using of native render() method but I've ended with set alpha=1 on the RenderTick and then alpha=0. To force to draw components I've used the well known parent-child tactics on making components UIComponent(child).drawNow(); To make ComboBox, ColorPicker and other to work on this material you need a little hack ;D. Bla bla....The source source

No comments:

Post a Comment