This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new c49537d  fix warning in remoteobject example
c49537d is described below

commit c49537d0f44139b5720e93d53ec97f662ac4ca56
Author: Carlos Rovira <carlosrov...@apache.org>
AuthorDate: Tue May 15 17:10:55 2018 +0200

    fix warning in remoteobject example
---
 examples/royale/RemoteObjectAMFTest/src/main/royale/App.mxml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/examples/royale/RemoteObjectAMFTest/src/main/royale/App.mxml 
b/examples/royale/RemoteObjectAMFTest/src/main/royale/App.mxml
index dec2abd..1a97d8d 100644
--- a/examples/royale/RemoteObjectAMFTest/src/main/royale/App.mxml
+++ b/examples/royale/RemoteObjectAMFTest/src/main/royale/App.mxml
@@ -46,11 +46,14 @@ limitations under the License.
                        private function onResult(evt:ResultEvent):void
                        {
                                trace("Result=" + evt.data);
+
+                var zone:Zone;
+
                                if (evt.data is String)
                                        received.text = "Received: " + evt.data;
                 else if (evt.data is Zone)
                 {
-                    var zone:Zone = evt.data as Zone;
+                    zone = evt.data as Zone;
                     received3.text = "Received: zone " + zone.id + " is '" + 
zone.name + "'";
                 }
                                else if (evt.data is Product)
@@ -61,7 +64,7 @@ limitations under the License.
                     var len:int = product.zones.length;
                     for(var index:int = 0; index < len; index++)
                     {
-                        var zone:Zone = product.zones[index];
+                        zone = product.zones[index];
                         received3.text += "[" + zone.id + ", " + zone.name + 
"], ";
                     }
                 } else

-- 
To stop receiving notification emails like this one, please contact
carlosrov...@apache.org.

Reply via email to