Multiple instances of same function - how to manage it
Posted: Sun Jun 30, 2013 5:50 pm
Greetings everyone.
little by little my app is starting to get shaped and now I'm on my next step.
so, I have a group that contains several controls/graphics inside.
first, I created all the handles to scroll the group using drag & drop.
Now, I'm going to implement the handles to drag & drop the controls within the group.
The first thing I noticed was ... "hmm I'm going to need "another" on MouseUp function...."
so, my question is:
- may I have multiple instances of the same handler in the same script? (I presume not, but just want to make sure...)
- since I have multiple different actions that will use the same handlers (like mouseUp, mouseDown, etc...) what do you think it's the best way to manage this ?
many thanks for any provided help
cheers,
- Miguel
little by little my app is starting to get shaped and now I'm on my next step.
so, I have a group that contains several controls/graphics inside.
first, I created all the handles to scroll the group using drag & drop.
Now, I'm going to implement the handles to drag & drop the controls within the group.
The first thing I noticed was ... "hmm I'm going to need "another" on MouseUp function...."
so, my question is:
- may I have multiple instances of the same handler in the same script? (I presume not, but just want to make sure...)
- since I have multiple different actions that will use the same handlers (like mouseUp, mouseDown, etc...) what do you think it's the best way to manage this ?
many thanks for any provided help
cheers,
- Miguel