Groups | Blog | Home
all groups > flash actionscript > december 2004 >

flash actionscript : mc button problem


rollerblast.co.uk
12/22/2004 10:17:52 PM
I am trying to make a movie clip button that lights up when u hover over it and
slowly fades when u hover of it again. I found this can be done by using the
following this. lines, my problem is is when the user clicks the button i want
it to go to another frame in the main timeline the movie clip button is in. i
thought the code below would have done this but it doesnt work!! there must be
away. i no u can use a getURL using the same method below but the on(release)
command wont work!! help!

on(rollOver){
this.gotoAndPlay(2);
}
on(rollOut){
this.gotoAndPlay(10);
}
on(release){
gotoAndPlay(1);10

}

cheers
juankpro
12/22/2004 10:21:50 PM
Try it like this:

on(rollOver){
this.gotoAndPlay(2);
}
on(rollOut){
this.gotoAndPlay(10);
}
on(release){
_parent.gotoAndPlay(1);
}
rollerblast.co.uk
12/22/2004 10:25:07 PM
AddThis Social Bookmark Button