Build for Flash error

stderr:
Unhandled Exception: Mono.Linker.ResolutionException: Can not resolve reference: System.Void UnityEngine.Application::ExternalEval(System.String)

this is the error message. Works good on standalone build as well as unity webplayer

Flash does not support this natively, but you can use the UnityEngine.Flash.ActionScript api’s to emit actionscript code and use these api’s; ExternalInterface - Adobe ActionScript® 3 (AS3 ) API Reference