Skip to main content
Participant
April 20, 2015
Question

Current browser URL and if conditionals

  • April 20, 2015
  • 1 reply
  • 202 views

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?

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
April 20, 2015

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"