-
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.
-
Registered User
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|