Drawing application and shared object
Hey,
I'm trying out this tutorial (my first steps with Flash and ActionScript): http://www.adobe.com/devnet/flashcom/articles/whiteboard.html
I added clear button, which clears all lines from user's whiteboard, but every other user who is connected to whiteboard, still sees lines. But when other users refresh the page, lines are gone too. That means I'm able to delete data from shared object, but I don't know how to update other users' whiteboard.
Here's the code I use to clear whiteboard:
function initClearButton() {
button_clear.onRelease = function() {
do_clear = true;
for (i in drawing_so.data) {
drawing_so.data = null;
}
init();
}
}
Basically, that's all I have added to tutorial code. What do I need to do to get other users' whiteboard updated/cleared?
