You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/10/10 19:34:28 UTC
[royale-asjs] 16/16: Bindings to Operations will need coercions so
the compiler can know when to stop using Proxy access. RemoteObject is a
Proxy
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit c4aa73d08e5037cd0873f3d29934398e502f210a
Author: Alex Harui <ah...@apache.org>
AuthorDate: Wed Oct 10 12:16:45 2018 -0700
Bindings to Operations will need coercions so the compiler can know when to stop using Proxy access. RemoteObject is a Proxy
---
examples/mxroyale/RemoteObjectAMFTest/src/main/royale/App.mxml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/examples/mxroyale/RemoteObjectAMFTest/src/main/royale/App.mxml b/examples/mxroyale/RemoteObjectAMFTest/src/main/royale/App.mxml
index b058718..9cc002c 100644
--- a/examples/mxroyale/RemoteObjectAMFTest/src/main/royale/App.mxml
+++ b/examples/mxroyale/RemoteObjectAMFTest/src/main/royale/App.mxml
@@ -30,6 +30,7 @@ limitations under the License.
import valueObjects.Product;
import valueObjects.Zone;
import mx.rpc.events.FaultEvent;
+ import mx.rpc.remoting.Operation;
private function onFault(evt:FaultEvent):void
{
@@ -74,16 +75,16 @@ limitations under the License.
</mx:VBox>
<mx:Button label="Send to Name" click="service.echo.send()"/>
</mx:HBox>
- <mx:Label text="{service.echo.lastResult}"/>
+ <mx:Label text="{(service.echo as Operation).lastResult}"/>
</mx:VBox>
<mx:VBox width="400">
<mx:Button label="Get Array Of Objects" click="service.getObjectArray1.send()"/>
<mx:List id="list" labelField="id" width="100%" height="200"
- dataProvider="{service.getObjectArray1.lastResult}" />
+ dataProvider="{(service.getObjectArray1 as Operation).lastResult}" />
<mx:Label text="{list.selectedItem}"/>
</mx:VBox>
<mx:VBox width="400">
<mx:Button label="Get Some Product" click="service.getSomeProduct.send()"/>
- <mx:Label text="{service.getSomeProduct.lastResult.name}"/>
+ <mx:Label text="{((service.getSomeProduct as Operation).lastResult as Product).name}"/>
</mx:VBox>
</mx:Application>