Thanks for the tip Deepa,
The reason I needed to move the scrollbar is because I was trying to
get around a bug in the Tree Control.
Situation:
I wanted to add a closeTopNode(tree.getNodeDisplayedAt(0)) function
that closes the root node.
public function closeTopNode(node:Object)
{
tree.vPosition = 0; // added this to fix bug
tree.setIsOpen(node,false);
}
The problem I had was when I scrolled down the tree; to where the
first node was out of site, the browser would lock up in an infinite loop.
So now using the vPosition = 0, the tree is effectively positioned at
its root node before closing the node. This worked perfectly.
Cheers,
Tim
--- In [email protected], "Deepa Subramaniam" <[EMAIL PROTECTED]>
wrote:
>
> You should be able to use the vPosition and hPosition properties on
Tree to move its vertical or horizontal scrollbar. To get the
scrollbar to scroll to the selectedItem you can set
vPosition/hPosition to the selectedIndex.
>
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of sufibaba
> Sent: Tuesday, February 21, 2006 11:47 AM
> To: [email protected]
> Subject: [flexcoders] Programatically move Tree Component Scrollbar
>
> Hi all,
>
> Just wondering if anyone knows how to use actionscript to scroll the
> tree control.
>
> Cheers,
>
> Tim
>
>
>
>
>
> --
> 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
> Web site design development
> Computer software development
> Software design and development
> Macromedia flex
> Software development best practice
>
>
>
> YAHOO! GROUPS LINKS
>
> * Visit your group "flexcoders" on the web.
>
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/