I am starting with AS3 programming icm with Flash Builder 4.
I have created a "Main" class which is the initial stage.
On this stage there is a movieclip called mcMain.
In this mcMain is 4 other movieclips: mcStats1 mcStats2 mcStats3 mcStats4
How can I access these mcStats1-4 from the code to make them go to another frame?
I tried:
var t:MovieClip = MovieClip(getChildByName("mcMain"));
t.getChildByName("mcStats1").gotoAndPlay(3);
But that just keeps giving me null reference errors: TypeError: Error #1009: Cannot access a property or method of a null object reference.
So how should I solve this?