The following is broken for my assets, but if I create new ones it's fine.
So I've got a Movieclip and inside it has two frames.
I have code on the timeline as follows:
change.gotoAndStop(2);
The change MC is on stage and it changes to frame 2 because of the code. Great!
However, lets say I didn't want this MC on stage until frame 2.
I put the MC on frame 2 and keep the code on frame 1. I get the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Untitled_1_fla::MainTimeline/frame1()
didn't do this originally, only for the purpose of the explanation
Fair enough, makes sense
So I now put the code and the MC onto frame 2. It doesn't work and I get the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Untitled_1_fla::MainTimeline/frame2()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
So the only way I've found to bypass the error is to include the MC from the very beginning. Something is off, surely? What?
I try it with a different asset, and the issue disappears.
What's up with my asset?