Jump to content
  • Advertisement
Sign in to follow this  
cptrnet

[web] flash listbox problem

This topic is 4804 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
Advertisement
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();
delete_Listener.click = function ()
{
delete_item = item_list.selectedIndex
trace(delete_item)
item_list.removeItemAt(delete_item);
}
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
davidball@Silktide.com

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!