This method is used to connect an object function to active X events. Note you
MUST call disconnectObject to make sure you do not have any memory leaks.
See the box::disconnectObject documentation for
more information.
function onPresented()
{
// Get the object box proxy that holds the ActiveX control.
var box = scene.getBoxById("myObjectBox");
var otherBox = scene.getBoxById("otherBox");
if (box && otherBox)
{
// NOTE: If you call connectObject, you MUST call disconnectObject
// to make sure you do not have any memory leaks.
// I have imported some JavaScript with the id "js_test".
otherBox.connectObject(box.control, "myFunc_", "js_test");
}
}
//*********************************************************
// The ActiveX control in the object box has an event called "Click"
function myFunc_Click()
{
}