A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Trouble getting a value from a Listbox

  1. #1

    Trouble getting a value from a Listbox

    I am declaring the following function on the first frame of my movie and calling it from a button (on release) in the middle of the movie. The button also takes you to another frame where the Listbox (S2_listbox) doesn't exist. Everytime I do this the value is "undefined". How can this be if I am clearly defining the variable in the function?
    Any help would be appreciated.

    function Q2Listbox1() {
    Listbox1 = S2_listbox.getSelectedItem().data;

  2. #2
    iguanagirl32 mraspiller's Avatar
    Join Date
    Jul 2002
    try changing this:

    function Q2Listbox1() {

    to this:

    Q2Listbox1 = function() {

  3. #3
    thanks for the suggestion, but it still comes up "undefined"

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