The code you show is AS3. Your problem is most likely that you have not assigned that as the instance name (in the properties panel) for that movieclip, or that code and that movieclip don't exist together in time.
1 person found this helpful
your as2 is as3. if that were as2, you would use _visible, not visible.
layers could never be hidden using actionscript. they can be hidden in authoring environment in cs3 and cs4.
an object with pointer stratBox1e doesn't exist when your code executes.
create an object (like a movieclip) and give it that instance name. retest.
(i should have known better than typing such a lengthy first response.)
That's usually my problem!