on Rollover Breaks GotoandPlay
Hey all,
I posted earlier with taking a horizontal gesture driven scroll bar and making it so that onRollover the image enlarges and shrinks back down to it's orginal size onRollout.
I finally got it! I was just missing one thing. However... now there is another problem. When I implement the script onto the Movie Clip, it breaks it so that I cannot click the image to bring the page it corresponds to up.
The only thing I am doing differently to the script is adding this:
Quote:
on (rollOver) {
this.onEnterFrame = function() {
this._xscale = this._yscale += 10;
if (this._xscale>215) {
delete this.onEnterFrame;
}
}
}
on (rollOut) {
this.onEnterFrame = function() {
this._xscale = this._yscale -= 5;
if (this._xscale<190.71) {
delete this.onEnterFrame;
}
}
}
The script without it looks like:
Quote:
onClipEvent(load) {
var myPictureNum = 1;
_parent.selected = this;
}
So the final script looks like:
Quote:
onClipEvent(load) {
var myPictureNum = 1;
_parent.selected = this;
}
on (rollOver) {
this.onEnterFrame = function() {
this._xscale = this._yscale += 10;
if (this._xscale>215) {
delete this.onEnterFrame;
}
}
}
on (rollOut) {
this.onEnterFrame = function() {
this._xscale = this._yscale -= 5;
if (this._xscale<190.71) {
delete this.onEnterFrame;
}
}
}
Inside the movie clip in question there is more script, but I do not want to litter this post with that unless it's asked for so there is no confusion.
Can anyone help me see what I am doing wrong?
Thanks in advance to any and all who post!