PDA

View Full Version : Movie Clip Buttons in CS3 / AS3


parasir
06-13-2007, 06:14 PM
Hi, I hope the solution to this is quick and simple...
I am building a website in Flash CS3 using AS3.0. I am using movie clip buttons to make drop down menus, but I can't seem to get the movie clip buttons to be able to control the main timeline. In AS2.0 you would use the _root syntax, but that no longer exists in AS3. I am thinking this must have to do with the new "event flow" thing, but I guess I just don't understand it yet. I've also tried naming scenes in the stage timeline and referencing those, but that also does not seem to work.
Here is the basics of the code:
(inside the MC movie):

home.addEventListener(MouseEvent.CLICK,homelistene r);

function homelistener(event:MouseEvent):void {
gotoAndStop(1);
}

Thank you so much to anybody who can give me a hint as to how to fix this!!!