This is because of the way the depthColors
are drawn. They are only drawn in drawRowBackgrounds() which gets called in
updateDisplayList() so the row background colors are not tweened during the
animation. I’ve added an enhancement request to allow for tweening of
background row colors during the animation. Possible workarounds include overriding
onTweenUpdate() and manually tweening the backgroundColor of each row yourself.
You might be able to get away with writing your own TreeItemRenderer where each
UITextField was encompassed in an HBox with backgroundColor set. However I
think since renderers are re-used, you’d have to write some code to make
sure that as each renderer is re-used its backgroundColor is changed to
maintain the color ordering prescribed by that row’s depth. If you find the shifting of colors too
ugly, you can change your openDuration to 0 so that there is no animation and
the items just open with the correct background row color. HTH, -deepa From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mick Robin Hi, I got a problem with the Tree Component. I have set the following
properties for theTree componenet in my application: labelField="@label" width="100%" Now when I am trying to call Tree.expandItem(event.currentTarget.selectedItem,true,true) method.It
opens the child items .Only thing the animation for the parent node does
not work.Only the labels get animated but the color behind the label doesnot
animate it suddely changes it position.I want the label and color to move at
the same time.Any help?? Thanks in advance Mick Do you Yahoo!? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- RE: [flexcoders] Tree Component expandItem Animation tru... Deepa Subramaniam