It is possible but only through flash. Use the ExternalInterface class. The call method will trigger javascript functions and the addCallback method will allow javascript to trigger actionscript...