Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 09-14-2005, 11:14 PM   #1
Registered User
Join Date: Aug 2004
Posts: 2
Default Selecting item in a List or Tree component- without clicking

I have a tree component called my_tree. I have a handler for reacting to the user clicking an item in the Tree that looks like this:

ActionScript Code:
listenerObject = new Object(); listenerObject.change = function(eventObject){    selectItem( my_tree.selectedIndices[0] ); } my_tree.addEventListener("change", listenerObject)

Then selectIem() deals with whatever item the user has selected. But now what I'm trying to do is exactly the opposite-- I want to make an actionscript call that will select an item in the tree as though the user had selected it with the mouse.

I was barking up a tree that looked like this:

ActionScript Code:

though that obvoiusly that isn't right. Any advice?
timtoady is offline   Reply With Quote

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 Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:30 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.