Skip to main content
paul_james123
Inspiring
July 28, 2014
Answered

recommendation about 'strict mode'

  • July 28, 2014
  • 1 reply
  • 465 views

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

This topic has been closed for replies.
Correct answer Ned Murphy

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

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
July 28, 2014

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

paul_james123
Inspiring
July 28, 2014

Thanks Ned.

I'll use it going forward.

Ned Murphy
Legend
July 29, 2014

You're welcome.