You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/08/23 03:20:37 UTC
[7/8] git commit: [flex-asjs] [refs/heads/feature/amf] - use Basic
components so we can run it on both SWF and JS and get it working for SWF.
Next up: JS
use Basic components so we can run it on both SWF and JS and get it working for SWF. Next up: JS
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d1af7779
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d1af7779
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d1af7779
Branch: refs/heads/feature/amf
Commit: d1af7779f963374602e27743eda871f3c9b5891e
Parents: 3639e23
Author: Alex Harui <ah...@apache.org>
Authored: Tue Aug 22 18:17:02 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Aug 22 18:18:12 2017 -0700
----------------------------------------------------------------------
.../RemoteObjectAMFTest/src/main/flex/App.mxml | 22 +++++++++-----------
1 file changed, 10 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d1af7779/examples/flexjs/RemoteObjectAMFTest/src/main/flex/App.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/RemoteObjectAMFTest/src/main/flex/App.mxml b/examples/flexjs/RemoteObjectAMFTest/src/main/flex/App.mxml
index 4ef6867..2709cff 100644
--- a/examples/flexjs/RemoteObjectAMFTest/src/main/flex/App.mxml
+++ b/examples/flexjs/RemoteObjectAMFTest/src/main/flex/App.mxml
@@ -35,6 +35,7 @@ limitations under the License.
private function onResult(evt:ResultEvent):void
{
trace("Result=" + evt.data);
+ received.text = "Received: " + evt.data;
}
private function onFault(evt:FaultEvent):void
@@ -45,7 +46,8 @@ limitations under the License.
</fx:Script>
<js:beads>
- <js:RemoteObject id="service"
+ <js:ClassAliasBead />
+ <js:RemoteObject id="service" result="onResult(event)" fault="onFault(event)"
endPoint = "http://localhost:8080/messagebroker/websocket-amf"
destination = "exampleService"
source = "exampleService"/>
@@ -53,17 +55,13 @@ limitations under the License.
<js:initialView>
<js:View>
- <mdl:Grid>
- <mdl:TextField id="name_txt">
- <mdl:beads>
- <mdl:TextPrompt prompt="Text to be sent via AMF RemoteObject..."/>
- <mdl:Tooltip text="This sample requires an AMF Backend"/>
- </mdl:beads>
- </mdl:TextField>
-
- <mdl:Button text="Send Name to AMF" raised="true" accent="true"
- click="sendName()"/>
- </mdl:Grid>
+ <js:beads>
+ <js:VerticalLayout />
+ </js:beads>
+ <js:Label text="Text to be sent via AMF RemoteObject..." />
+ <js:TextInput id="name_txt" />
+ <js:TextButton text="Send Name to AMF" click="sendName()"/>
+ <js:Label id="received" width="300"/>
</js:View>
</js:initialView>