DISQUS

Domi-No-Yes-Maybe: FLEX - Getting the URL when you are in a flex App

  • Mark Myers · 2 months ago
    nice one, i had been using computed text in the underlying form and passing it to 'flashvars' but i like your way better
  • Steve McDonagh · 2 months ago
    Indeed Mark, I had looked at that but I really needed to resolve the
    address at app init so that i could bind the HTTPServer object to a
    variable URL so that there wasn't a requirement for "Settings" in the
    Flex App that required the user to enter URLs they may not be familiar
    with, that and i was not embedding the SWF in a form, it was in a page.
    I plan to publish my "how to logon to Domino thru flex" article tomorrow
    ;-) so watch this space.. LOL
  • IanM · 2 months ago
    Or, perhaps even easier, just Application.application.url to get at that URL (and then use the URLUtil class to extract the various parts of the URL).
  • Steve McDonagh · 2 months ago
    Ian

    Indeed.. however i came across issues with parameters in the
    Application.Application.url .. it comes down URLencoded
    which is no real problem... whereas the other way comes down
    nicely unencoded.. LOL saved me 2 lines of code ;-)
  • markbarton · 1 month ago
    Steve,

    Couple of gotchas worth noting - the Browser Manager Object needs the history javascript library to be included. The history javascript library causes all sort of problems if your using IE6 (yeah I know) and SSL.

    In short it wasn't worth the pain and I went for a Flashvars approach.