Below is what I've tried. Also, not sure if it matters that the Flex app is embedded in a WLP portlet.In my mxml file I added: ExternalInterface.addCallback("setEntityId", setEntityId);In my wrapper jsp I added:<script language="JavaScript" type="text/javascript"> AC_FL_RunContent( ...