Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-30-2012, 10:18 PM   #1
jake247
Registered User
 
Join Date: Jun 2004
Posts: 5
Default Tree children won't animate first time

I have a tree (FB 4.5) which has lots of branches (> 20) with many children (also > 20 per branch). The animation for opening or closing a branch doesn't seem tom occur until the item has been opened at least once. Is there any way to force the animation to occur all the time?
jake247 is offline   Reply With Quote
Old 05-08-2012, 01:23 PM   #2
solisarg
Senior Member
 
solisarg's Avatar
 
Join Date: Mar 2003
Location: Buenos Aires, Argentina
Posts: 496
Default

This is because the children don't render until you actually open it. There's a creationpolicy property you can set in the container that controls this. If you set to all, all the childrens will be created, but the initialization time will be longer

Jorge
solisarg is offline   Reply With Quote
Old 05-08-2012, 06:02 PM   #3
jake247
Registered User
 
Join Date: Jun 2004
Posts: 5
Default

Good thought ... I tried that ... still won't animate. The Tree documentation states that " ... if a branch has over 20 children, it does not animate the first time it opens, for performance reasons."

Trying to figure out a way to override this ... any suggestions?

Thanks!
jake247 is offline   Reply With Quote
Old 05-08-2012, 06:21 PM   #4
solisarg
Senior Member
 
solisarg's Avatar
 
Join Date: Mar 2003
Location: Buenos Aires, Argentina
Posts: 496
Default

Well usually bad designs are overwrited with better designs ... consider not having more than 20 children at the same time

Jorge
solisarg is offline   Reply With Quote
Old 05-09-2012, 03:42 PM   #5
jake247
Registered User
 
Join Date: Jun 2004
Posts: 5
Default

Unfortunately, I'm stuck with the constrains of the current database. I'll post something if I have an epiphany ...
jake247 is offline   Reply With Quote
Old 05-09-2012, 03:45 PM   #6
solisarg
Senior Member
 
solisarg's Avatar
 
Join Date: Mar 2003
Location: Buenos Aires, Argentina
Posts: 496
Default

Short story: I was asked to convert huge datagrids samples to Flex, with thousands of columns. Flex datagrid is poor in performance, and at some point it stuck. I was forced to use a list with a special renderer to show the whole stuff, no workarounds, just datagrid sucks (but probably new Spark doesn't? Didn't try)

Jorge
solisarg is offline   Reply With Quote
Old 05-10-2012, 03:28 PM   #7
jake247
Registered User
 
Join Date: Jun 2004
Posts: 5
Default

I feel for you ... I've had to do the same thing.

Anybody know if there's a spark Tree on the horizon? Or point me to an open source one that addresses my problem ... it's worth a virtual beer (or any virtual beverage of your choice) ...
jake247 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:40 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.