Here are a couple of suggestions:

1.  Try loading the second air app as a NativeProcess.  This way, you can
pass arguments that you can inspect in the invokeEvent of the second air
app.

or

2.  Try using a LocalConnection to communicate between the two AIR apps.

Please let me know if you need more details.

Thanks,
Om

On Mon, Feb 18, 2013 at 12:11 PM, atauri <[email protected]> wrote:

> Hi, can succesfully launch my app, but still I can´t pass any argument to
> it :_(
>
> this my try, It doesnt launch nothing, but it works if the argument is
> empty launchArgs=["-launch", appID, pubID, ""];
>
> import adobe.utils.ProductManager;
>             private var pMan:ProductManager;
>             private var appID:String = "OSTvideo";
>             private var pubID:String = "";
>
>
>             private function lanzarVideo():void{
>                 trace("lanzar")
>
>
>                 pMan = new ProductManager('airappinstaller');
>
>                 var launchArgs:Array;
>                 launchArgs=["-launch", appID, pubID, "argument1"];
>                 pMan.launch(launchArgs.join(" "));
>
>             }
>         ]]>
>
> Please help!
>
>
> 2013/2/17 atauri <[email protected]>
>
> > Nice example about launching air apps from air apps.
> >
> >
> blog.everythingflex.com/2009/06/08/open-an-air-application-from-a-2nd-air-application/
> > not tested with parameters yet
> >
> >
> > 2013/2/17 atauri <[email protected]>
> >
> >> Hi, I am writting a videoplayer (the n-videoplayer) and I want to launch
> >> it from another app or website and pass to it the url of the video.
> >> How can I do that??
> >> I found info about NativeApplocation and Invoque event, but qhere do I
> >> put the parameters, and how to launh the videoplayer from other app?
> >>
> >> Thanks
> >>
> >> --
> >>  ¿ Te gustan las *Abejas* y la *Tecnología* ? Sígueme en Twitter<
> http://twitter.com/apilink><http://twitter.com/apilink>
> >>
> >>   (\__/)
> >>   (='.'=)   This is Bunny. Copy and paste bunny into your
> >>   (")_(")   signature to help him gain world domination.
> >>
> >
> >
> >
> > --
> >  ¿ Te gustan las *Abejas* y la *Tecnología* ? Sígueme en Twitter<
> http://twitter.com/apilink><http://twitter.com/apilink>
> >
> >   (\__/)
> >   (='.'=)   This is Bunny. Copy and paste bunny into your
> >   (")_(")   signature to help him gain world domination.
> >
>
>
>
> --
>  ¿ Te gustan las *Abejas* y la *Tecnología* ? Sígueme en
> Twitter<http://twitter.com/apilink><http://twitter.com/apilink>
>
>   (\__/)
>   (='.'=)   This is Bunny. Copy and paste bunny into your
>   (")_(")   signature to help him gain world domination.
>

Reply via email to