View Full Version : listbox...not getting value

04-20-2003, 05:24 PM
i have this function as the handler

function Select() {
var temp;
temp = list.getValue();
if(temp != undefined){
select = temp;
select = "undefine";

// 'select' is an input textfield on the stage
// when an item is clicked on the listbox, the value/data is
// suppose to appear in 'select'

// The problem is...when I populated the list box
// I click on any item and the value correctly appears on 'select'

// But when I click on something else, it doesn't change.
// The previous value is still in 'select'

Anyone knows what I am doing wrong?

04-20-2003, 05:58 PM
Okay...for some reason it is only calling the Handler one time when an item is clicked for the first time.

When I click again...it doesn't call the handler. Y?

Anyone out there? :(

04-20-2003, 07:11 PM
it's because you named your funtion and textfield as the same name...

here is the zip... ;)

04-20-2003, 08:17 PM
thanx again. ;)

04-20-2003, 08:32 PM
Yeah as I told u in aim, error are always stupid and a new eye can solve it... ;)

04-20-2003, 11:11 PM
Yo... boyzdynasty...

Does xxlm's solution working or not??? You gotta let me know... ;)

04-20-2003, 11:38 PM
yea. it does. i just change the name.
*stupid mistake on my part*

Thanx for taking alook!!

04-21-2003, 04:21 AM
Hey cyan, why did U ask...?
The solution I give ALWAYS WORK... (hmmm I think lol)... ;)

04-21-2003, 08:10 AM
Why??? Um... Why??? Why did I do that boyzdynasty???

Oh... I remember... I just wanted to up one more post with another meaningless reply... :D

Nah... I know yours always works... ;) boyzdynasty called me up and told me to check out his thread... So, I went ther eand found out that you have answered the thread already which looked fine, so I have asked boyzdynasty to see if that worked to him as well... ;)

04-21-2003, 08:18 AM
Better... :D

04-21-2003, 08:20 AM
Yup... A couple more of another meaningless replies adds up right here... :D

I thought that you were supposed to be at NC and had no time to get onlie... Wasn't it??? Well... Anyways... Hope everythings turn out to be the best solution...

Gotta go get some sleep... I AM sleepy... :D

04-21-2003, 03:38 PM
cyanblue doubt you FLASH skillz *hehe*

He said he was leaving on Tuesday. *whaaa* :(

I guess that leaves only CyanBlue and Freddycodes to bugg. ;)

04-21-2003, 04:27 PM
Yeah I said that I WILL leave on tuesday...