I’ve got a basic class working which is communicating via telnet. I basically use the command jim.send(“message”) to send a message.
When a response is recieved a event is raised and the data sent through to whatever function I have defined.
But what I want to do is stepping though, if it was another language I’d do this…
jim.send(“message”)
loop until response or timeout
look at response, if bad exit
jim.send(“next message”)
loop until response or timeout
look at response, if bad exit
jim.send(“next message”)
loop until response or timeout
look at response, if bad exit
etc…
How best to do this sort of thing in Flash, seeing as it doesn’t like to sit around and wait in a loop, yet keep it as simple as above if possible?