1 Reply Latest reply on Jun 20, 2008 2:54 AM by sielco

    Stuck on Invoke

      I am creating an application that launches from the desktop or browser.
      When launched from the I can use NativeApplication.nativeApplication.addEventListener(BrowserInvokeEvent.BROWSER_INVOKE, onBrowserInvoke)
      To get the BrowserInvokeEvent arguments, which is great
      Or when I launch it from the desktop I can use NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke);
      To get it started. However, how can I add a conditional test to see which method has launched the app?

      Thank you,
        • 1. Re: Stuck on Invoke
          sielco Level 1
          I used the following in order which seemed to work:

          NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke); NativeApplication.nativeApplication.addEventListener(BrowserInvokeEvent.BROWSER_INVOKE, onBrowserInvoke);

          However this feels a little prone to error. Am I just being paranoid and this is the way to do it or is there a more robust method?