I still think it's better to use the flashVars; so no need to call from flex to js.
In this case, we'd need 2 functions: handleLink(url) and handleLinkWithQueryStringDecoded(object); on app startup, we call the 2nd function; the 1st function is called via JS or via UI