oleControlSite = new OleControlSite(oleFrame, SWT.NONE,
"ShockwaveFlash.ShockwaveFlash");
OleAutomation oleAutomation = new OleAutomation(oleControlSite);
flashObject = new OleObject(oleAutomation);
created = true;
final OleMsgHook hook = new OleMsgHook(this);
oleControlSite.addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent e) {
hook.unInstallHook();
}
});
hook.installHook();
activate();
} catch (SWTException ex) {
if (oleFrame != null && !oleFrame.isDisposed())
oleFrame.dispose();
errorLabel = new CLabel(this, SWT.CENTER);