A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Get url from calling address

  1. #1
    Junior Member
    Join Date
    Dec 2006
    Posts
    28

    Get url from calling address

    Hi people, been struggling on what is probably a small thing, hope you guys can lead me into the right direction.

    OK so i'm just in need of an on release method that gets the url from the flash's calling address. What i've got at the moment is

    on(release) {
    getURL("http://www.google.com, "_blank");
    }

    but as you will know this is incorrect, sorry i'm a bit of a newbie.

    Cheers guys for any help,

    Taylor

  2. #2
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    Are you wanting the domain from which the movie was downloaded?
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  3. #3
    Junior Member
    Join Date
    Dec 2006
    Posts
    28
    exactly it my friend

  4. #4
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    I assume you are the author of the SWF in question (i.e., you can add code to it and compile it).
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  5. #5
    Junior Member
    Join Date
    Dec 2006
    Posts
    28
    Yeh of course

  6. #6
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    Well then, I would create a local connection object and then call the domain method. See:
    http://livedocs.adobe.com/flash/mx20...=00001421.html
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center