A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: detect html window

Hybrid View

  1. #1
    Member
    Join Date
    Sep 2001
    Location
    Málaga, Spain
    Posts
    98

    detect html window

    hi,
    is it possible to have the flash detect the current html window?
    I'm NOT asking for just the domain or the swf file's location (_url property). so:

    WHAT I DON'T WANT IS the domain, i.e.: www.domain.com
    WHAT I DON'T WANT IS the swf file's location, i.e.: www.domain.com/folder/flashfolder/my_swf_file.swf

    WHAT I DO WANT IS to retrieve the URL i'm browsing, i.e.: www.domain.com/folder/webpage.html

    is it possible? please, some advanced user, answer me! i have been looking many places but can't find an answer to my question.

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    Yes.
    You can use a server-side scripting language like PHP to do that, or even javascript.

    Then you send the variables to flash using FLASH VARS.

    Here's an example using FLASH VARS.
    And here is a similar example that pellepiano posted.

    Both this examples send variables in the url to flash, what you want is sending the url itself. It's the same idea, but in this case you want: document.write(document.location):
    Code:
    <script language="javascript">	
    document.write(document.location);
    </script>
    Last edited by nunomira; 06-21-2004 at 11:09 AM.

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