|
I’m not sure you need to call
invalidate because probably calling createChild or destroyChild will cause
invalidation. From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of superabe superabe Thanks Matt, Will try that out. So if I read you correctly I should prolly have a : # a default value for rating # a drawRatings() method that is called from
createChildren() and/or rating setter. Now if I do call the drawRatings() method from the rating
setter, would I need to call invalidate from the drawRatings method ? - superabe
On 1/13/06, Matt
Chotin <[EMAIL PROTECTED]>
wrote: I think the problem here is that rating is Rather than doing your work in createChildren maybe you
should have a separate method that holds onto the child objects and call it
from createchildren or the setter for your rating property. In that
function it should see how many rating Images have been created, if the number
is different from what you want you would destroy or create the appropriate
number of children. You may then need to call invalidate() after that
(though createchild probably is good enough to do that). HTH, Matt From: [email protected]
[mailto:[email protected]]
On Behalf Of superabe superabe Hi there, I have a
custom AS component that seems to generate a script time-out error when I
use databinding to set one of its params. It works
fine if I hard code the param value. Any ideas
as to why this may be happening ? TIA -
superabe Component
code(RatingCell.as) ======================= class
RatingCell extends HBox{ public
function RatingCell(){ Usage
(Main.mxml) <mx:Script> <renderer:RatingCell
rating="5" horizontalGap="1"/> // this works fine <renderer:RatingCell
rating="{tempRating}" horizontalGap="1"/> // this
prompts script timeout error
YAHOO!
GROUPS LINKS
|

