Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Flash Listbox

  • 21-05-2006 6:03pm
    #1
    Registered Users, Registered Users 2 Posts: 5,517 ✭✭✭


    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