asianking Expert Cheater
Reputation: 0
Joined: 25 Jun 2008 Posts: 109
|
Posted: Sat Jul 26, 2008 12:44 pm Post subject: ListBox issue |
|
|
Can someone tell me why this isn't working:
Listbox 1 contain:
Sword 1
Sword 2
Code:
Private Sub Listbox1_click()
if listbox1.selecteditem = "Sword 1" Then
Call flash.setvariable = ("player.weapon", 5)
elseif listbox2.selecteditem = "Sword 2" Then
Call flash.setvariable = ("player.weapon", 6)
I created listbox and what i really want is... if someone click on Sword 1 on listbox 1, then the player gets that weapon. I see Sword 1 and Sword 2 on listbox, but when I click, nothing happen. I test the variable with a button and it work, but I want to do it with the listbox. I'm using Visual basic 2005. Help will be appreciate..
|
|