PDA

View Full Version : listbox...not getting value


boyzdynasty
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;
}else{
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?

boyzdynasty
04-20-2003, 05:58 PM
*sigh*
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? :(

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

here is the zip... ;)

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

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

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

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

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

Thanx for taking alook!!

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

CyanBlue
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... ;)

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

CyanBlue
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

boyzdynasty
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. ;)

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