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

Current browser URL and if conditionals

New Here ,
Apr 20, 2015 Apr 20, 2015

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?

TOPICS
ActionScript

Views

171

Translate

Translate

Report

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

Copy link to clipboard

Copied

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"

Votes

Translate

Translate

Report

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