Answered
Simple Button to Control Movie Clip
Hello,
I was relatively comfortable with AS 2.0, but am having a hard time warming up to 3.0. I feel that this should be something simple to find help online with, yet I'm finding it difficult to get a simple answer.
I have a button that is inside a movie clip within another movie clip:
mainMenu_mc > whoBtn_mc > whoButton
This button appears to work fine controlling a movie clip on the same timeline. This is the code so far (on an Actions frame in WhoBtn_mc):
whoButton.addEventListener(
MouseEvent.CLICK,
function(evt:MouseEvent):void {
whoGlow.gotoAndStop("click");
}
);
I have another movie clip on the main timeline that I would like to control with this button:
blackFadeBottom_mc
What would the code look like for this?
Any help is appreciated - Thank you.
I was relatively comfortable with AS 2.0, but am having a hard time warming up to 3.0. I feel that this should be something simple to find help online with, yet I'm finding it difficult to get a simple answer.
I have a button that is inside a movie clip within another movie clip:
mainMenu_mc > whoBtn_mc > whoButton
This button appears to work fine controlling a movie clip on the same timeline. This is the code so far (on an Actions frame in WhoBtn_mc):
whoButton.addEventListener(
MouseEvent.CLICK,
function(evt:MouseEvent):void {
whoGlow.gotoAndStop("click");
}
);
I have another movie clip on the main timeline that I would like to control with this button:
blackFadeBottom_mc
What would the code look like for this?
Any help is appreciated - Thank you.