Expand my Community achievements bar.

SharedWhiteBoard and real time updates

Avatar

Level 1

Is there any possible way to dispatch real time notification to other participant while updating whiteboard?

For example, when I draw with a highlighter pen, the event is fired after mouse up. The other user receive changes after whole action instead of receiving realtime changes.

Is there any workaround or catch to achieve it?

2 Replies

Avatar

Employee

Hi,

One hack is, you could do is,to listen to this event WBToolBarEvent.TOOL_BAR_CLICK . Hope the code below is self-explanatory.

_sharedWhiteBoard=new SharedWhiteBoard();
_sharedWhiteBoardShapesBar=_sharedWhiteBoard.shapesToolBar;
_sharedWhiteBoardShapesBar.addEventListener(WBToolBarEvent.TOOL_BAR_CLICK, onWBToolBarClick);

protected function onWBToolBarClick(p_evt:WBToolBarEvent):void
{
    //Create your own custom notification
    //Notify using a sharedModel such as SharedProperty
}

Thanks

Arun

Avatar

Former Community Member

Hi There,

You'd have to write your own tool. We chose to have the pen tool (and all

others) update after on mouseUp to reduce network chattiness. So, there's no

easy way to turn this on - try digging through the existing code and making

changes.

nigel