In a kiosk application (with NO mouse action) I try to mimic the action of buttons…with movie clips.
I was wondering if that would be possible to create new event handler for MC?
So that, by script, I could tell something like:
my_mc.selected = true
my_mc.focused = true
then have an event handler function like:
my_mc.onSelected = function () {
trace (“button is pressed”);
}
my_mc.onFocused = function () {
trace (“button is on focus”);
}
So:
- a way to give a state to a movieclip (like “focused”, “pressed”…)
- then an event handler…to handle corresponding function
Would you please have an idea on how I could achieve this?
Thanks a lot!