actionscript - Mysterious variable -


I have analyzed all the code in a project, one of which has classes in it, a property (variable) that is a function, This is actually an animation step, and the only way to play the next frame of an Emk is with Goto Endplease, Geto and Astop, Preframe and next frame, but this is just the class ..

 < Code> Public function injury (_damage: number): zero {animation phase: IT; // trace ("injury", health, _damage) health - = _ damage if health (lt; = 0) {kill = true health = 0} animation step = 5 - health trace (animation stop); }   

So what does animation show that there is a way to animate an MV if it is only an integer var?

I am setting this as an answer because it is becoming a discussion.

It seems that changing the variable will decrease the increment (step). Health decreases Only the weird thing is that I see the animation stages every time it resets

Michael Jose: The only way to animate a movie clip is by using the goto endplete, ect รข ???? Michael Jose 4 minutes ago

It's okay, but initially set the variable outside of frame controllers in a global form.

Michael Jose: So why the compiler knows that the variable should be passed as a parameter in the goto endplete, the function?

Not because it makes the function local. If you plan to do this, pass it and use the refund to send new values.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -