0 Replies Latest reply on Jul 18, 2013 11:25 PM by new flex guy

    how to send  arguments from 1 air app to another

    new flex guy Level 1

      hi frnds,

      i'm launching air app from flex 4.0 but getting issue to send and recieve argmts.

      my code is

      app1:

      private var appID:String = "test";

      private var pubID:String = "";

       

      var arg:Array = new Array();

                                              arg.push('hi');

                                              var mgr:ProductManager = new ProductManager("airappinstaller");

                                              mgr.launch("-launch "+appID+' '+pubID +' '+'-- -'+ arg);

       

       

      and another app2:

      <?xml version="1.0" encoding="utf-8"?>

      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"

                                                           xmlns:s="library://ns.adobe.com/flex/spark"

                                                           xmlns:mx="library://ns.adobe.com/flex/mx" 

                                                             invoke="windowedapplication1_invokeHandler(event)">

       

                <fx:Script>

                          <![CDATA[

                                    import mx.controls.Alert;

                                    protected function windowedapplication1_invokeHandler(event:InvokeEvent):void

                                    {

                                              Alert.show(''+event.arguments);

                                              Alert.show(''+event.arguments.length);  

                                    }

                          ]]>

                </fx:Script>

       

      </s:WindowedApplication>

       

       

      Issue is not getting array in another app, is any thing missing in my code?