Results 1 to 2 of 2
February 25th, 2005, 12:24 PM #112Registered User
Flash Movie detecting its own web adress...
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>
February 25th, 2005, 01:07 PM #2
This worked for me, assuming that the name of the HTML file is the same as the name of the swf:
var HTML = _root._url.split(".swf").join(".html");Wait, what?
By threeandcats in forum Flash IDEReplies: 1Last Post: November 30th, 2004, 01:08 PM
By janav in forum Flash IDEReplies: 0Last Post: July 20th, 2004, 01:09 AM
By Zer0 in forum Flash IDEReplies: 2Last Post: July 12th, 2004, 07:17 PM
By nycbrian in forum Flash IDEReplies: 1Last Post: June 25th, 2004, 04:41 PM