Sure many times,

There are different ways to implement it, depending on the applicaiton.

State machines can be used to load Objects that load the subroutines [useful for things like changing AI behavior of a sprite], or for simply switching elements on/off, or for triggering an event [wide broadcasting]. You can track states via booleans, and do checks on states via a switch statement, or a boolean check [depending on application]. There is a lot of information also on the net about this [google it], as well as in Oriely's book on AS-design patterns.

My 2 cents,

Good luck!

Seb.

Weyert de Boer wrote:
Hello!

I am curious if anyone on this list has ever tried to leverage state machines to handle user interaction gestures in Flash.
If so, what's your opinion about this? Any tips how to implement this?

Yours,
Weyert
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to