Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2010
    Posts
    32
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How to access url

    Hello,

    I'm using Flex 4, ActionScript 3.

    In my application, I have a Help menu bar item, with Documentation as a sub-item.

    My documentation is an html file, and it is deployed as part of the application, and hence will have a relative path to the application.

    I want to display the content of this html file when you choose Help -> Documentation.

    I tried Googling "flex access url" but the links are about accessing variables in url fragments.

    How can I just access the url itself to display the contents of the file?

    Thanks!
    Bon :-D

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    Code:
    var url:String = ExternalInterface.call("window.location.href.toString");
    Edit: Whoops. I think I misread your request
    Last edited by Inigoesdr; 11-28-2011 at 10:48 PM.

  • #3
    New Coder
    Join Date
    Jul 2010
    Posts
    32
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks, Inisgoesdr, for your quick reply.
    I came across the navigateToURL command, so I'm going to try using that first.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •