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:
AC_FL_RunContent( "src", "<%= srcPath %>", "id", "<%=
(String)request.getAttribute("portlet_name") %>", "name", "<%=
(String)request.getAttribute("portlet_name") %>", "width", "<%=
request.getAttribute("width") %>", "height", "<%=
request.getAttribute("height") %>", "align", "middle", "quality",
"high", "FlashVars", "PORTLET_WS=<%=
request.getAttribute("window_state")%><%= wsrpEncodedChannel %>",
"allowScriptAccess","sameDomain", "type",
"application/x-shockwave-flash", "pluginspage",
"http://www.adobe.com/go/getflashplayer"); function
getFlexApp(appName) { //alert("getFlexApp"); if
(navigator.appName.indexOf("Microsoft") != -1) { return window[appName];
} else { return document[appName]; }
}getFlexApp('IncList').setEntityId('xxx');