Skip navigation
FigoX85
Currently Being Moderated

ProductManager Class, question

Feb 3, 2012 11:59 AM

Tags: #air #app #launcher #productmanager #invokeevent

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.

 
Replies
  • Currently Being Moderated
    Dec 5, 2012 12:38 PM   in reply to FigoX85

    You say there's a 'famous' example that isn't working for you?  Maybe solving that would be a more direct path?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points