Hello,
I’d like to create a SWF file that will be able to play different frames when different links are clicked.
However, I need the SWF file to be independent of the links. That means that the links are sitting on a HTML page. This also means that I need to be able to retrieve the current browser URL. And then depending on the links clicked (URL retrieved), it will gotoAndPlay a different frame when different links are clicked.
I tried movieclip._url but it returns the URL where the SWF is loaded, thus it is of no use (see script below). What is the function I should use?
Please help.
onClipEvent(enterFrame) {
var location = this._url;
if (location == “www.kirupa.com”) {
_root.mc.gotoAndPlay(5);
Thanks
Glads