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

sym.setVariable Not working (HTML5)

Guest
Nov 14, 2016 Nov 14, 2016

I am trying to set a global variable for a loop and the code 'sym.setVariable' isn't working. The browser error is 'sym' is not defined.

I tried this.setVariable also but the error is setVariable is not a function.

Is that still the way to do it in the lastest version?

I'm setting it in the first frame of the project.

261
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

correct answers 1 Correct answer

Deleted User
Nov 14, 2016 Nov 14, 2016

Nevermind, this works for and I can still access the var on another frame. I guess I was resetting the var on each loop.

if (!this.looped) this.looped = 0;

if (this.looped++ > 3) this.stop();

Translate
Guest
Nov 14, 2016 Nov 14, 2016
LATEST

Nevermind, this works for and I can still access the var on another frame. I guess I was resetting the var on each loop.

if (!this.looped) this.looped = 0;

if (this.looped++ > 3) this.stop();

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