I'm using the current code in the Flex app (the section that matter anyway):
<?xml version="1.0" encoding="utf-8"?>
http://www.adobe.com/2006/mxml" layout="absolute"
initialize="initApp()" width="530" height="211" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FFFFFF, #F8F8F8]">
<mx:Script>
<![CDATA[
import mx.rpc.events.AbstractEvent;
import mx.core.Container;
import mx.events.FlexEvent;
import mx.controls.Button;
import mx.rpc.soap.SOAPFault;
import sap.FlashIsland;
import mx.collections.ArrayCollection;
import mx.graphics.IFill;
import mx.graphics.SolidColor;
import flash.display.Shape;
private var but:Button;
private var selBut:Button;
private var cont:Container = new Container();
private var _selected:String;
public function get selected():String {
return _selected;}
public function set selected(value:String):void {
_selected = value;
this.setSelected(value);
}
I've got this public property "selected" and inside I call this.setSelected(value) which updates the island.
In the webdynpro side, I've got the property element of the flash island assigned to "selected" and bound to a context element that is bound to dropdown box in the related view.
When I change the dropdown box, it triggers an empty event, that I thought would trigger the "set" function in the island but nothing is happening. Am I doing any thing wrong as far as any of you can see?
The eventing on the other way is working fine, I can pass values from the Flash Island to the Web dynpro, no problem.