[flexcoders] Re: Custom Components - updateDisplay results in ghost children drawn

2008-07-17 Thread polestar11
Well what do u know. I moved my component from my test sandbox to my production environment and the problem went away - no strange graphics lingering behind. Very strange, but at least it works. --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: I don't think

[flexcoders] Re: Custom Components - updateDisplay results in ghost children drawn

2008-07-16 Thread polestar11
Thanks Josh This example was a simple case. What I actually want to is have my component behave like a container where it centres its child items. In retrospect I would have to extend from the Container class. The absoulte size would fix the problem (in that the item re-draws would occur

[flexcoders] Re: Custom Components - updateDisplay results in ghost children drawn

2008-07-16 Thread polestar11
Ok ... so I'm still getting issues with the dynamic height on custom components. I have a background Shape which I construct in the createChildren method and set its graphics. In the updateDisplayList function I clear and redraw the graphics at the new y position. This results in 2 versions of

[flexcoders] Re: Custom Components - updateDisplay results in ghost children drawn

2008-07-16 Thread polestar11
Ok ... so I'm still getting issues with the dynamic height on custom components. I have a background Shape which I construct in the createChildren method and set its graphics. In the updateDisplayList function I clear and redraw the graphics at the new y position. This results in 2 versions of

Re: [flexcoders] Re: Custom Components - updateDisplay results in ghost children drawn

2008-07-16 Thread Josh McDonald
I don't think updateDisplayList is the right place to be doing drawing into graphics, although I may be wrong. I usually do it on the render or updatecomplete event, but that might not be optimal either. Alex would know :) If you want to link to a zip of a test project I might get a chance to poke