FORUMS: list search recent posts

Movie Clip Rollover

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Aaron Dillon
Movie Clip Rollover
on Mar 30, 2010 at 9:21:26 pm

Hello,
I am new to Flash and actionscript. I am trying to make a rollover from a movie clip. Everything works fine on the rollover until I move the mouse over the graphic that appaears during the rollover, then I I get a flickering of the graphic. Can you take a look at the file on the link and let me know what I have done wrong? Thanks so much.
http://www.southpawgraphicdesign.com/Hole_ButtonRollover2.fla

Aaron


Return to posts index

Zack Yoshyaro
Re: Movie Clip Rollover
on Mar 31, 2010 at 5:08:14 pm

I tried downloading your file but It gives me an "unspecified file format" error. Can you post your code?


Return to posts index

Aaron Dillon
Re: Movie Clip Rollover
on Mar 31, 2010 at 5:19:41 pm

Hi Zack, Thanks for trying to help me out. Here's the code I have...

function rover (e:Event) {
hole2_rollover.gotoAndPlay("in");
}

hole2_rollover.addEventListener(MouseEvent.MOUSE_OVER, rover);

function rout (e:Event) {
hole2_rollover.gotoAndPlay("out");
}

hole2_rollover.addEventListener(MouseEvent.MOUSE_OUT, rout);


Here's a link to the movie that you might be able to look at:
http://www.southpawgraphicdesign.com/Hole_ButtonRollover2.swf
It works until you move the mouse over the area that is part of the rollover, the it flickers.


Return to posts index


demetri tashie
Re: Movie Clip Rollover
on Apr 1, 2010 at 4:33:10 pm

of course it is hard to say exactly without seeing more info or your file, but
the flickering is probaly because of a looping timeline - even if the timeline is just 2 frames, which i presume this one is. you probably want to use gotoAndStop rather than gotoAndPlay .

that might make the difference for you. if they truly were meant to play a timeframe based animation, then you also need to account somehow for the animation to stop.

other than that- you should really be type casting the event type of your function. yours are driven as MouseEvents, so it is better to write your function as (e:MouseEvent) and not just (e:Event).


Return to posts index

demetri tashie
Re: Movie Clip Rollover
on Apr 1, 2010 at 5:07:17 pm

another thing to check for is that your rollover/out listeners are conflicting with each other. - especially because of your 'hit' area of the movieclip.

if the rollover function removes the rollover listener and adds the rollout listener, and the rollout function likewise removes the rollout listener and adds the rollover function listener, you might resolve the conflict. but once again, without seeing how you actually have it set up, these are just stabs in the dark.


Return to posts index

Aaron Dillon
Re: Movie Clip Rollover
on Apr 1, 2010 at 5:23:01 pm

Hi Demetrie,
Are you able to download the Flash file from this link?
http://www.southpawgraphicdesign.com/Hole_ButtonRollover2.fla



Return to posts index


demetri tashie
Re: Movie Clip Rollover
on Apr 1, 2010 at 5:57:04 pm

is this what you are trying to do with it ( ignore the pink background...)

673_holebuttonrollover2.swf.zip


Return to posts index

Aaron Dillon
Re: Movie Clip Rollover
on Apr 1, 2010 at 8:33:23 pm

YES! That looks exactly like what I was trying to do!


Return to posts index

demetri tashie
Re: Movie Clip Rollover
on Apr 1, 2010 at 10:07:30 pm

ok, then here is your file back, which will work as demonstrated.
674_holebuttonrollover2.fla.zip
there was a lot wrong - you had multiple copies of these movieclips and buttons with clips -all very confusiong and obviously caausing conflicts

this is the simplest i could pare it down to using your sytem and logic. so there are just 2 symbols on the stage - the graphic of the course which i gave an instance name of 'hole_mc' to, and a copy of the animation, which has the instance name "hole2_rollover".

so now this code has hole_mc listening for a mouseover/mouseout and telling the hole2_rollover to play..

once again, not sure why you had somany copies of the animation....

hole_mc.buttonMode=true;


function rover(e:MouseEvent) {
hole2_rollover.gotoAndPlay("in");

}

hole_mc.addEventListener(MouseEvent.MOUSE_OVER, rover);

function rout(e:MouseEvent) {
hole2_rollover.gotoAndPlay("out");
}

hole_mc.addEventListener(MouseEvent.MOUSE_OUT, rout);


Return to posts index


Aaron Dillon
Re: Movie Clip Rollover
on Apr 5, 2010 at 2:49:03 am

Thanks so much for your help Demetri, I think it is quite obvious I wouldn't have figured it out on my own for a long time. I was thoroughly confused. Thanks again. Hope you can help me the next time I have myself in a jam.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]