So here’s my situation…
I have a MC called “Questions” that’s on the stage.
Inside that Movie clip, there are 10 frames and four layers.
The 1st layer spans all 10 frames and has a MC called “logoMC”
The 2nd layer has a MC called “contentMc1, 2, 3, etc…” and a button called “nextBtn1, 2, 3, etc…”
The 3rd layer has frame labels for each frame: “Q1, Q2, Q3, etc…”
The 4th layer has actions that are similar for each frame:
nextBtn1.addEventListener(MouseEvent.CLICK, Q1btn);
function Q1btn(e:Event)
{
gotoAndStop("Q2");
stage.focus = this.Questions.logoMC;
}
So what should hypothetically happen in when you click on the button, it advances to the next frame in that movie clip, and focus is set to the logo. The problem is, it isn’t.
I get the “TypeError: Error #1010: A term is undefined and has no properties.” That is pointing to the “stage.focus = this.Questions.logoMC;” portion of code.
Any ideas?
Thanks,
Joe
PS- I know it’s bad form to use the timeline with AS3, but there’s a method to my madness…