Results 1 to 2 of 2
  1. #1

    Flash Movie detecting its own web adress...

    Hi,


    I was just wondering if it was possible for a flash movie to detect the webpage it is being displayed on without any server side help?

    For example, if I had a movie on the page:

    "www.kirupa.com/a/mymovie.html" (imaginary link; does not work)

    How would I be able to get the link adress,"www.kirupa.com/a/mymovie.html" detected inside the flash movie while its running?

    For anyone who knows PHP, it would be similiar to "$PHP_SELF" function

    Is this possible?


    Many thanks in advance! =-]

    - PlyWooD
    <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
    HTML Code:
    
    
    <o:p></o:p>

  2. #2
    This worked for me, assuming that the name of the HTML file is the same as the name of the swf:
    Code:
    var HTML = _root._url.split(".swf").join(".html");
    Of course, if you have access to PHP, a better choice would be to pass the value of $PHP_SELF along to the Flash movie with FlashVars.
    Wait, what?

Similar Threads

  1. Replies: 1
    Last Post: November 30th, 2004, 01:08 PM
  2. Replies: 0
    Last Post: July 20th, 2004, 01:09 AM
  3. Using Flash movie to control another flash
    By Zer0 in forum Flash IDE
    Replies: 2
    Last Post: July 12th, 2004, 07:17 PM
  4. Problem Publishing a Flash Movie
    By nycbrian in forum Flash IDE
    Replies: 1
    Last Post: June 25th, 2004, 04:41 PM

Bookmarks

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012