Copy link to clipboard
Copied
hi everybody,
i'm kind of new in ActionScript and i'm wondering if its possible to use the URL of the page my swf in embeded to activate some conditionals.
i was thinking of using some conditionals like:
if (URL ="https://example.com/1"){
gotoAndStop(2)
}
else if (URL ="https://example.com/2"){
gotoAndStop(3)
}
else if (URL ="https://example.com/3"){
gotoAndStop(4)
}
is there a way to archive this?
Copy link to clipboard
Copied
See the following article for some options...
https://circlecube.com/2010/12/access-the-html-page-url-and-swf-path-from-flash-with-as3/
and try searching Google for others using terms like "AS3 get page URL"