Results 1 to 2 of 2
-
February 25th, 2005, 12:24 PM #112Registered User
postsFlash 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>
<o:p></o:p>HTML Code:
-
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:
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.Code:var HTML = _root._url.split(".swf").join(".html");Wait, what?
Similar Threads
-
100% Flash movie in a floated div in Firefox/Mozilla--Dutchy? Anyone?
By threeandcats in forum Flash IDEReplies: 1Last Post: November 30th, 2004, 01:08 PM -
Copy Frames from one movie to another (Flash MX 2004 Pro)
By janav in forum Flash IDEReplies: 0Last Post: July 20th, 2004, 01:09 AM -
Using Flash movie to control another flash
By Zer0 in forum Flash IDEReplies: 2Last Post: July 12th, 2004, 07:17 PM -
Problem Publishing a Flash Movie
By nycbrian in forum Flash IDEReplies: 1Last Post: June 25th, 2004, 04:41 PM

Reply With Quote
Bookmarks