-
Senior Member
PeopleList: how can I get the clicked item out?
Greetings. I guess it is a easy question. This is what I want to achieve:
When you click a name on the PeopleList, I want to execute another movieclip that looks up some information about that person from a Database. The question is how to get the item clicked? Im not sure Im being clear, my english is not very good.
Thanks ahead for any help!
-
You need to set the change handler in your peoplelist.
people_lb.setChangeHandler("doThis");
function doThis(){
getUrl("users/" + people_lb.getSelectedItem().label + ".html";
//or
//gotoAndStop(5) //where you can load an external text file..
}
EX: 'people_lb.getSelectedItem().label' Is the username
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|