Advertisement Jump to content
Sign in to follow this  

[web] flash listbox problem

This topic is 4866 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to get the selectIndex of the listbox but it always come up undefined. Heres what I have. I have two list boxs on the left, and a button that moves the list box contents to the one on the right. I am trying to get the selected index of the first one because thats the option to move all the items over. Also its not returning the length of the list box. I have a function in the frame declaration that I call when the button is released. By the way I have only used flash for a couple of weeks. Thanks for the help.

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
I have the same problem, but have been using FLash for years, so dont worry!

I am trying to delete items from a listbox component, although my listbox is a special PPC component for exporting flash to PDA's. Here is the code for my delete button

//----delete button
delete_Listener = new Object(); = function ()
delete_item = item_list.selectedIndex
btn_delete.addEventListener("click", delete_Listener);

delete_item is always undefined, so "item_list.selectedIndex" is obviously not doing what it is supposed to.
Can anyone help?

-David Ball

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!