Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-20-2003, 12:10 AM   #1
holtzy
Are we there yet...
 
holtzy's Avatar
 
Join Date: Jan 2003
Location: USA
Posts: 201
Talking setChangeHandler

I can't get this to work and it's driving me crazy. I simply need to know when the value of the combobox changes. It is an editable combobox. Here is the code I've been trying
ActionScript Code:
mcForm.cmbMake.setChangeHandler("MakesChange2"); MakesChange = function(){     trace("it changed"); }
__________________
God is Good.
holtzy is offline   Reply With Quote
Old 02-20-2003, 12:28 AM   #2
freddycodes
Master of Nothing
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
Default

Well one thing is that you used MakesChange2 but your function name is MakesChange.

ActionScript Code:
mcForm.cmbMake.setChangeHandler("MakesChange2"); MakesChange = function(){         trace("it changed"); }


Also try putting the function in the root and use
ActionScript Code:
mcForm.cmbMake.setChangeHandler("MakesChange", _root); MakesChange = function(){         trace("it changed"); }
freddycodes is offline   Reply With Quote
Old 02-20-2003, 02:05 AM   #3
holtzy
Are we there yet...
 
holtzy's Avatar
 
Join Date: Jan 2003
Location: USA
Posts: 201
Talking

Ok, really I'm not an idiot. I had them the same then got the idea that maybe I had a duplicate function and changed it to "2" at the end of the function, then when I switched it back I forgot to take off the "2" on the one...anyway I don't even drink beer, honest. The _root was the problem. Thanks for the help!
__________________
God is Good.
holtzy 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 04:51 AM.

///
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.