Flash: Add support for sandbox detection

Also adds new event: `error[name='flash-sandboxed']`

Ref #511