Monday, September 14, 2009

ActionScript 3 - threads and mulithreading

there is no thread support in action script
so....what we gonna do? how to implement event server( reactor) ?
i went over internet....
and... nothing except pseudothreads implementation...
i coul use java threads wrappers .....
anyways,
for now i implemented poseudo threads engine:
Iexecutable interface with 2 methods
execute() and boolean isOver()
i have executable manager that runs timer and defines event handler for on timer tick event, what is actually runs over all registered IExecutables [ it firstly check if isOver first and if no only then continues running....
we will see it works :)

No comments:

Post a Comment