Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-27-2004, 06:33 PM   #1
ninjapheret
Registered User
 
Join Date: Aug 2004
Posts: 21
Default ComboBox Change Handler Code??

Hi. I've got a flash prog i'm working on rite now, which allows a user to find their name from a dropdown list. When they find their name, the data from that value should be displayed in a small text window to the lower left of the dropdown.

I've been all over these forums, and sadly have been unable to fix the problem.

Heres the fla:

http://www.petrafineart.com/presentation/donors.fla

If ANYone here is able to help me get this a little further, I would be immensely grateful. Any ideas why this isn't working?

Thanks a lot in advance,

Charlie
ninjapheret is offline   Reply With Quote
Old 08-27-2004, 08:07 PM   #2
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
Default

well, your code has a couple of major problems....
with combo boxs, you want to use the setChangeHandler() method, or just type the function name into the changeHandler property in the property panel.

so here is what you do:
1. delete the code out of the changeHandler box in the property panel.... leave it blank.
2. all the code on the first frame of your main timeline with this code:
Code:
change=function(myObj){
	// trace(myObj.getSelectedItem().data);
	 inscription.inscription.htmlText=myObj.getSelectedItem().data;
 };
 nameBox.setChangeHandler("change");
3. you had a problem with the path to your text box. the text box was inside of a movieclip, so your path name needs to be: mc_name.textField_name.text (or htmlText) in this case.

4. don't know what the textformat object is set up for, your not using it anywhere.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 08-27-2004, 09:17 PM   #3
ninjapheret
Registered User
 
Join Date: Aug 2004
Posts: 21
Default

Tg,

I am crying with tears of joy.

What can I do for you? I'm a graphic designer, if you need anything.
ninjapheret is offline   Reply With Quote
Old 08-30-2004, 03:32 PM   #4
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
Default

Quote:
Originally Posted by ninjapheret
I'm a graphic designer, if you need anything.

well, i'm sure not. so maybe i'll be in touch with you some day.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:29 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.