Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Flash Listbox

  • 21-05-2006 07:03PM
    #1
    Registered Users, Registered Users 2 Posts: 5,518 ✭✭✭


    Hi,

    I have been messing with actionscript for a day now but I'm coming across a problem (probably simple).

    I have a list box with "Test1" and "Test2" as labels and "0.267830957594223, -0.138074667791165, 23.2568039361378" and "0.557830957594223, -0.178074667791165, 42.2568039361378" as their respective data - all added at design time.

    Now I want to pull out that information and store it in a string. So I create an action script as follows:
    on(change) {
    Var FullLocation = _root.LocationList.getSelectedItem().data;
    trace (_root.LocationList.getSelectedItem().data);
    }
    
    LocationList is the Listbox name. I am getting an error for the
    Var FullLocation = _root.LocationList.getSelectedItem().data;
    
    part of the script. The trace function gives out the correct information. What am I doing wrong?

    Thanks for any help/advice,
    Noel.


Advertisement