I have a 5 instances of a particular movie clip on a stage. They are the homework boxes along the bottom of this page: http://www.infodirect.us/template/lessonplan/lessonplan4.swf
each one contains two buttons and two textareas (on two different frames). The buttons basically flip between the frames to show different text. I’d like to be able to detect when the button has been clicked from actionscript on the root timeline. Let’s say that the instance of the movie clip for monday’s homework is named mcHomeworkMon.
This does not seem to be working:
mcHomeworkMon.btnTwo.onPress = function () {
trace ("test");
}
nor does this:
var btnTwoListener = new Object();
btnTwoListener.press = function(eventObj){
trace("test");
}
mcHomeworkMon.btnTwo.addEventListener("press", btnTwoListener);
any other ideas on how to get that event to fire on the root level?