jtribby
asked on
Location of HTML, not SWF
Hi,
Is there a Flash variable that contains the URL of the HTML document that is embedding the Flash movie? _root._url shows the path to the movie itself, not the document that contains the movie... For example, if the movie is located at flash.com/images/menu.swf, but the HTML document that holds menu.swf is located at flash.com/site/index.html, I want a variable that contains the latter. I've heard someone recommend trying to get the variable from JavaScript's loaction.href, but I wouldn't know how to go about doing that, or know how efficient that is. Thanks.
Is there a Flash variable that contains the URL of the HTML document that is embedding the Flash movie? _root._url shows the path to the movie itself, not the document that contains the movie... For example, if the movie is located at flash.com/images/menu.swf,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
//frame x
getURL("javascript:getMyUR
//frame x+1
can use htmlURL to do what u want there