Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Current browser URL and if conditionals

New Here ,
Apr 20, 2015 Apr 20, 2015

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?

TOPICS
ActionScript
188
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 20, 2015 Apr 20, 2015
LATEST

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"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines