1 Reply Latest reply: Dec 5, 2012 12:38 PM by roymeo_ RSS

    ProductManager Class, question

    FigoX85 Community Member

      Hi,

       

      Im using productManager Class for launch another air aplication, this is my code

       

      var arguments:String = "-launch " + idAir + " " + pubId + " -- -argument1";

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

      mgr.launch(arguments);

       

      Im trying to pass "arguments" to my other app, but it doesnt show anything, this is the way that im capturing the argument

       

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

      <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"  invoke="onInvoke(event)">

       

                <mx:Script>

       

                          <![CDATA[

          

                                         private function onInvoke(event:InvokeEvent):void

                                         {

                                                        Alert.show(event.arguments.toString());             

                                         }

          

                ]]>

                          

                </mx:Script>

      </mx:WindowedApplication>

       

      I've searched a lot, of this kind of launching apps, i know that exist the famous "air.swf" but it doesnt work with the runtime 3.1 (at least to me) so that's why im using ProductManager, but i have this issue and i have to recieve something on my child app..

       

      If someone knows the answer i will be very grateful..

       

      (Sorry for my bad english)

       

      Greets

      Gabriel.