A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: PeopleList: how can I get the clicked item out?

  1. #1
    Senior Member martin47's Avatar
    Join Date
    Dec 2000
    Posts
    413

    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!
    http://www.drakon.com.ar

  2. #2
    Junior Member
    Join Date
    Sep 2004
    Location
    United States
    Posts
    12
    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

    Development = The Future - avFlashcom - eWeb7 - CamzX

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center