1 Reply Latest reply on Jul 16, 2007 12:43 AM by Greg Dove

    getting the current url

    PixelPaul Level 1
      was wondering if someone can help me... is it possible to get some text out of the current url...

      the user is say at his url...


      i want to get the name of the directory1.
        • 1. Re: getting the current url
          Greg Dove Level 4
          You can get the url of the swf (and extract parts of it using String methods) but not of the html page within which its embedded (unless you pass it to flash as a flash var - e.g. in the static html... or more likely, from a server side script that generates the page content).

          The url is accessible via the ._url property of the MovieClip class, you can use
          to access the url of the swf on the main timeline (as2 code)