清空Flash com白板记录的代码

感谢Brajeshwar提供.

//put this in your whiteboard main client side
//if it is already not there
//delete all SOs prototype
FCWhiteBoardClass.prototype.eraseBoard = function() {
for (var i in this.so.data) {
delete (this.so.data[ I ]);
}
this.so.flush();
};//end function

//now for the delete button
myButton.onRelease = function() {
theWhiteBoardInstance.eraseBoard();
};