Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » Scroll Pane and Expanding Tree


Scroll Pane and Expanding Tree

Reply
  #1 (permalink)  
Old 12-08-06, 07:12 AM
omniman's Avatar
omniman omniman is offline
Coding Addict
 
Join Date: Aug 2006
Location: Baltimore, MD
Posts: 342
Thanks: 0
Thanked 1 Time in 1 Post
Scroll Pane and Expanding Tree

I have an expanding tree menu inside a scroll pane. When the tree expands to be larger than the scroll pane, the scroll doesn't add bars (ie. scroll). I think somehow I need to refresh the pane when the tree expands, but I am at a lost as to how/where to put the code.

If anyone is familiar it, is Sephiroth's Nested XML Tree Menu.

Thank you.
Reply With Quote
  #2 (permalink)  
Old 12-09-06, 05:53 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
what do you mean by "larger". Horizontal or vertical?
these properties should do the trick:
Code:
myScrollPane.hScrollPolicy = "auto";
myScrollPane.vScrollPolicy = "auto";
But if you check livedocs, you will see that these are the default values. SO if this was causing the problem, you will have to find something similar to these lines, and replace it.

If this is not the problem, would it be possible to show an example, or upload a zip with all the fla files. i'll take a look

UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 12-09-06, 07:28 AM
omniman's Avatar
omniman omniman is offline
Coding Addict
 
Join Date: Aug 2006
Location: Baltimore, MD
Posts: 342
Thanks: 0
Thanked 1 Time in 1 Post
The file was over 100K so I couldn't attach it; you can download here:

www.omniman.us/dev/example.zip

Thanks for checking it out.
Reply With Quote
  #4 (permalink)  
Old 12-09-06, 09:27 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
I don't have time this weekend, but i'll tend to it monday. Is that allright for you?
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #5 (permalink)  
Old 12-09-06, 06:34 PM
omniman's Avatar
omniman omniman is offline
Coding Addict
 
Join Date: Aug 2006
Location: Baltimore, MD
Posts: 342
Thanks: 0
Thanked 1 Time in 1 Post
That's fine, thank you. I found a temporary work around for now - put an invisible "box" behind the tree menu.

Whenever you get a chance would be great.

Thanks again.
__________________
"Political Correctness is a doctrine, fostered by a delusionary, illogical, liberal minority and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end."
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 06:30 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.