Sections
You are here: Home Forum Flash eventlistener question

eventlistener question

Up to Flash

eventlistener question

Posted by Calvin Zirk at November 25. 2007
Would it be advantageous to write a subsystem to return digitalin values back as a packed bit array so there's only one message being sent back to flash instead of 8 messages? Also, I don't know the eventListener method well enough, I suppose the onMessageIn function can be executed multiple times per frame? If so then I suppose the only advantage to returning values as a 8 bit value would be in reducing the amount of communication? (otherwise it would also be a way of returning multiple values per frame). Calvin.

eventlistener question

Posted by Liam Staskawicz at November 25. 2007
If you request them via the digitalin/*/value message, all those messages are packed up into one packet and sent atomically. So it's not too much extra work. And yeah, my understanding is that the idea with the eventListener methods is that they're asynchronous so, at least in theory, they're called whenever data is available regardless of the frame count.
Powered by Ploneboard
Document Actions