Hi I have error on my Surface extension for HTML5, when the extension load image from file, it call action when the file is loaded:
Code
[COLOR=#000000][FONT=Consolas]caseCRunSurface.ACT_LOAD_IMAGE_FROM_FILE_OVERRIDE_EXTENSION:
var url = [I]act[/I].getParamFilename([I]this[/I].rh, 0);
[I]this[/I].oSurf.fileIOinProgress = true;
[I]this[/I].oSurf.loadFileImage([I]this[/I].oSurf.selectedImage, url, () => {
[I]this[/I].oSurf.fileIOinProgress = false;
[I]this[/I].ho.generateEvent(CRunSurface.CND_ON_LOADING_SUCCEEDED, [I]this[/I].ho.getEventParam());
}, () => {
[I]this[/I].oSurf.fileIOinProgress = false;
[I]this[/I].ho.generateEvent(CRunSurface.CND_ON_LOADING_FAILED, [I]this[/I].ho.getEventParam());
});
break;
[/FONT][/COLOR][COLOR=#F6F6F4][FONT=Consolas]
[/FONT][/COLOR]
Display More
But there are an error with "generateEvent" function:
HTML
Uncaught TypeError: Cannot read property 'evgFlags' of undefined at CEventProgram.computeEventList (Runtime.js:29048) at CEventProgram.handle_Event (Runtime.js:28812) at CExtension.generateEvent (Runtime.js:36640) at oSurf.loadFileImage.oSurf.fileIOinProgress (Runtime.js:53682) at Image.img.onload (Runtime.js:50686)
Do you know this issue ?
Thanks.