a tween can currently only be stopped through a other tween of the same variable
OK... but if my move action is just...
|
Quellcode
|
1
2
3
|
<action name="move">
tween(plugin[button].x,500,distance(500,5),linear);
</action>
|
...then any stop / break used did stop the single tween.
I also just tried the following:
|
Quellcode
|
1
2
|
onover="tween(plugin[thumb].x,500,distance(495,5),linear);"
onout="breakall();"
|
|
Quellcode
|
1
2
3
|
onover="tween(plugin[thumb].x,500,distance(495,5),linear);"
onout="stopall();"
|
... and the single tween stopped.
But, this acted the same...
|
Quellcode
|
1
2
3
4
|
onover="
tween(plugin[thumb].x,500,distance(495,5),linear);
tween(plugin[thumb].y,500,distance(495,5),linear);"
onout="stopall();"
|
Since I currently only really need to stop a single tween activity... I have a method that appears to work.
But, a stoptween() action could be handy for something in the future...
Maybe a stopaction() action that disrupted the action at it's current state... i.e.. set any tween values, zooms, view, etc... at the current state would work. But then someone would want a "onstop" or "onstopaction" event capability that could be defined within an action so that they could properly handle the "what-ifs".
The "onstop" would be similar to "oninterrupt"... but with "oninterrupt" set by a mouse click... and "onstop" set by another action.
It's making my head hurt... I'll trust in you to come up with a fabolous solution.
Graydon