это к вопросу об английском языке...
Цитата:
In the following example, holding the mouse will determine bazooka’s force, and releasing it will make the player fire.
The animation of the bazooka turning red has been made on the timeline, with a 30 frames tween. This means the maximum force should be 30
|

Код AS3:
// If I am charging the bazooka (I am holding the mouse)
if (charging!=0) {
// update the power
power+=charging;
// if the power ran out of range...
// (I assume max power is 30 because there are 30 frames in the bazooka animation
if (power>30||power<1) {
// invert the power
charging*=-1;
// update the power again
power+=charging;
}
// show the correct bazooka frame
bazooka.gotoAndStop(power);