http://www.youtube.com/watch?v=KTmwXr52cwM&hd=1

A special new language is available in the Realaxy Editor (RASE) since a new 
Beta — the Events Flow language. It is designed to create finite-state 
machines. You can use it to describe a "pathway" for your application. When you 
create a special method with a flow annotation, you make your application 
"stop" until some event(s) have been completed.

This screencast demonstrates an event subscription with a "catch" expression in 
an infinite loop. The second sample describes a composite event (when a 
keyboard and mouse buttons are pressed together) defined with "and" and "not" 
statements.

The language also has a functionality to declare a special "state" labels and 
conditional jumps ("jump"). There is also a tool for binding few different flow 
methods in a "chain" (i.e. waiting for another flow method result).

All the subscriptions are automatically removed when the state is entered. This 
feature is a headache relieve for the developers and also a good antidote for 
memory leaks. From the Events Flow code RASE generates a pure ActionScript3 
with a set of anonymous functions, the usual event handlers and transitions 
made between them via functions calls.

You can use multiple flows at one time - an execution conflict is not going to 
happen.

The language will be useful for the event maps creation in games and 
interfaces. What is used to be described with a lot of unrelated event 
handlers, can be now put in a single concise method.

Eugene Potapenko
@potapenko_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to