[Flashcoders] Question about MouseEvent.ROLL_OVER and ROLL_OUT
I have an AS3 fla file with a mc and stop() on frame 1 and different content on additional frames. When the swf is launched, I would like to have a MouseEvent.ROLL_OVER with a function to gotoAnd Play frame 2. Also I would like to have a MouseEvent.ROLL_OUT with a function to gotoAndSop on frame 1. I have added a mc the size of my file and used it as a button. I can get the ROLL_OVER to work, but not the ROLL_OUT. I hope this is not to vague. Can anyone help. Don Talcott 316 Greenwood Ave Decatur, GA 30030 404 538-1642 dtalc...@mindspring.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Question about MouseEvent.ROLL_OVER and ROLL_OUT
Please post your code if you can. It may be a problem with the way you have written it. Karl On May 5, 2010, at 4:35 PM, Donald Talcott wrote: I have an AS3 fla file with a mc and stop() on frame 1 and different content on additional frames. When the swf is launched, I would like to have a MouseEvent.ROLL_OVER with a function to gotoAnd Play frame 2. Also I would like to have a MouseEvent.ROLL_OUT with a function to gotoAndSop on frame 1. I have added a mc the size of my file and used it as a button. I can get the ROLL_OVER to work, but not the ROLL_OUT. I hope this is not to vague. Can anyone help. Don Talcott 316 Greenwood Ave Decatur, GA 30030 404 538-1642 dtalc...@mindspring.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Question about MouseEvent.ROLL_OVER and ROLL_OUT
Instead of using a MC the size of the stage, you may want to try listening like - this.root.addEventListener(MouseEvent.ROLL_OVER, overHandler) and this.stage.addEventListener(Event.MOUSE_LEAVE, offHandler); _ _ _ Erik Mattheis Senior Web Developer Minneapolis T 952 346 6610 C 612 377 2272 Weber Shandwick Advocacy starts here. PRWeek Global Agency Report Card 2009 - Gold Medal Winner The Holmes Report Global Agency of the Year PR News Agency of the Year -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Donald Talcott Sent: Wednesday, May 05, 2010 4:36 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Question about MouseEvent.ROLL_OVER and ROLL_OUT I have an AS3 fla file with a mc and stop() on frame 1 and different content on additional frames. When the swf is launched, I would like to have a MouseEvent.ROLL_OVER with a function to gotoAnd Play frame 2. Also I would like to have a MouseEvent.ROLL_OUT with a function to gotoAndSop on frame 1. I have added a mc the size of my file and used it as a button. I can get the ROLL_OVER to work, but not the ROLL_OUT. I hope this is not to vague. Can anyone help. Don Talcott 316 Greenwood Ave Decatur, GA 30030 404 538-1642 dtalc...@mindspring.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Question about MouseEvent.ROLL_OVER and ROLL_OUT
My file has two scenes. See code below. Originally the Mouse Events were MouseEvent.CLICK and they worked fine. Scene 1 Frame 1 stop(); playScene2_btn.addEventListener(MouseEvent.MOUSE_OVER, playScene2); function playScene2(evt:Event) { gotoAndPlay(1, Scene 2); } Scene 2 Frame 1 gotoScene1_btn.addEventListener(MouseEvent.CLICK, gotoScene1); function gotoScene1(evt:Event) { gotoAndStop(1, Scene 1); } On May 5, 2010, at 5:44 PM, Karl DeSaulniers wrote: Please post your code if you can. It may be a problem with the way you have written it. Karl On May 5, 2010, at 4:35 PM, Donald Talcott wrote: I have an AS3 fla file with a mc and stop() on frame 1 and different content on additional frames. When the swf is launched, I would like to have a MouseEvent.ROLL_OVER with a function to gotoAnd Play frame 2. Also I would like to have a MouseEvent.ROLL_OUT with a function to gotoAndSop on frame 1. I have added a mc the size of my file and used it as a button. I can get the ROLL_OVER to work, but not the ROLL_OUT. I hope this is not to vague. Can anyone help. Don Talcott 316 Greenwood Ave Decatur, GA 30030 404 538-1642 dtalc...@mindspring.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders