Chris_Seahorn
01-08-2006, 04:35 PM
I got a few questions about button actions and Koolmoves, like flash, has a bunch of ways to set actions to them.
The main problem seems to be users see actionscript that uses something like:
on(press){
_root.txt1.text="something";
}
and place it in the Click Handler inside the Koolmoves GUI for the buttons. This will not work and would simply be:
_root.txt1.text="something";
To show 3 different ways to set actions I made a simple koolmoves file.
It shows a:
1. GUI button with actions (an actual button instance, actions in GUI)
2. A button with scripted actions (an actual button instance, actions in script panel)
3. A shape converted to a button (actions entered in GUI when highlighting the newly converted button and showing properties)
The third way is how you would also script button actions to a movie clip.
The rule of thumb is...if you need multiple actions for anything used as a button ( on press, on release, on rollover, on rollout, etc)....you should avoid the "On Click" in the GUI as it lets you define only one handler (press) .
Hope this helps clear up some confusion. :)
The main problem seems to be users see actionscript that uses something like:
on(press){
_root.txt1.text="something";
}
and place it in the Click Handler inside the Koolmoves GUI for the buttons. This will not work and would simply be:
_root.txt1.text="something";
To show 3 different ways to set actions I made a simple koolmoves file.
It shows a:
1. GUI button with actions (an actual button instance, actions in GUI)
2. A button with scripted actions (an actual button instance, actions in script panel)
3. A shape converted to a button (actions entered in GUI when highlighting the newly converted button and showing properties)
The third way is how you would also script button actions to a movie clip.
The rule of thumb is...if you need multiple actions for anything used as a button ( on press, on release, on rollover, on rollout, etc)....you should avoid the "On Click" in the GUI as it lets you define only one handler (press) .
Hope this helps clear up some confusion. :)