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

recommendation about 'strict mode'

Contributor ,
Jul 28, 2014 Jul 28, 2014

Hi All,

The line:

newChildObject = myMC;

produces an error ("Access of undefined property newChildObject") when my I have 'strict mode' checked in my Advanced Actionscript 3.0 Settings window but not when I have that unchecked.

(I'm assuming that I'll need a 'var' in front of that variable to keep it from throwing an error in 'strict mode.' )

Should I keep my 'strict mode' checked? Will it help prevent some problems down the road (like in SWF versions)?

Thanks

TOPICS
ActionScript
434
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

LEGEND , Jul 28, 2014 Jul 28, 2014

Yes, learning and coding in strict mode will save you headaches... and not necessarily that far down the road.

Translate
LEGEND ,
Jul 28, 2014 Jul 28, 2014

Yes, learning and coding in strict mode will save you headaches... and not necessarily that far down the road.

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
Contributor ,
Jul 28, 2014 Jul 28, 2014

Thanks Ned.

I'll use it going forward.

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 ,
Jul 28, 2014 Jul 28, 2014
LATEST

You're welcome. 

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