Workaround (not the prettiest, but it does the trick):
1. Add this in the FlexHTMLLoader constructor:
addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
2. Add this function to the FlexHTMLLoader class:
private function onRemovedFromStage(event:Event):void
{
stage.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_UP, true, true));
}
On 22 January 2015 at 12:55, Mihai Chira <[email protected]> wrote:
> This is just an FYI. If you ever got this fatal error:
>
> Error #1009: Cannot access a property or method of a null object reference.
> at flash.html::HTMLLoader/onLeftMouseUp()
>
> ...then it might be useful to know that I just logged this AIR bug[1] about
> it.
>
> Of course, any suggestions on how to better describe it are welcome.
> I will also post a reply when I implement a workaround in FlexHTMLLoader.
>
>
> Thanks.
>
>
> [1] https://bugbase.adobe.com/index.cfm?event=bug&id=3925672