Link to home
Start Free TrialLog in
Avatar of jtribby
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.
ASKER CERTIFIED SOLUTION
Avatar of henryww
henryww

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of henryww
henryww

oh ... for the flash to call the function

//frame x
getURL("javascript:getMyURL();");

//frame x+1
can use htmlURL to do what u want there