Action Script3: How to get current URL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • creative1
    Contributor
    • Sep 2007
    • 274

    Action Script3: How to get current URL

    hi everyone,
    I have setup pages to send and displayed several videos on it. there video are played using media player and one can send link of that video to his friend by using buttons on that media player. I am using php to end email, if i use php to get current link, it gets link of current page. is there a way to get current url using action script. or ay other alternate?
  • bnashenas1984
    Contributor
    • Sep 2007
    • 257

    #2
    Hi
    I'm not sure if I understand your question correctly.
    When you load an external file in your flash file using AS3 you can get the url using this command

    Code:
    MovieClipName.loaderInfo.url
    This is what I use to get url of images loaded in flash files

    Hope it helps

    Comment

    Working...