View Full Version : getting the component that called the event handler
pickels5980
01-30-2003, 10:39 PM
I attach comboboxes using a loop. I name the comboboxes: "combo"+x. I then add changeHandlers to each of the comboboxes. I need to determine which combobox triggered the call to the changeHandler.
Any ideas how I can achieve that?
binkyboo
01-31-2003, 01:52 AM
What does your code look like. I'm guessing you can use the trace feature to gather the information you need.
JabbyPanda
01-31-2003, 09:04 AM
Do you use Macromedia UI Combobox component or your own?
In Macromedia UI Combobox simply in the handler function specify the parameter name.
it will refer to the the object which invoked an event
example:
function Clicked(par) {
Trace(par)
}
Result
_level0.combo1
---
movieclip is on the top level and its name: combo1
Change Handler parametr sets to "Chicked"
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.