Forum Moderators: open
So, here's the problem...
________________________________
CODE:
this.FHQ.onRollOver = function ()
{FHQ.gotoAndPlay("_over");
}
this.FHQ.onRollOut = function ()
{FHQ.gotoAndPlay("_out");
}
this.FHQ.onPress = function ()
{gotoAndPlay("_press");
}
________________________________
As you can see, I'm trying to create some sort
of a movieclip button, like the one I saw in that
lenghty learnflash's vid tut...
first two scripts work fine...
but this one:
******
}
this.FHQ.onPress = function ()
{gotoAndPlay("_press");
}
******
Is KILLING me...
dunno how to describe it...
It just doesn't react when I click on the
object...
well...it does skip back to the first frame though...
-.-
here's the screenshot...
[i3.photobucket.com...]
Thx in advance. :P
[i3.photobucket.com...]
As you can see, after "release" and, ofcourse, rollout, it does the "onrollout" action...
which I don't want to activate after "release".
Any ideas?
CODE:
========================
this.FHQ.onRollOver = function ()
{FHQ.gotoAndPlay("_over");
}
this.FHQ.onRelease = function ()
{FHQ.gotoAndPlay("_press");
}
this.FHQ.onRollOut = function ()
{FHQ.gotoAndPlay("_out");
}
========================
It looks like your overstates section, (called "_over"), includes both the doors opening and closing. Either that or you didn't put a stop(); action at the end of the "_over" section. If that is the case, the playhead will continue to play until it sees a stop(); action or gotoAndPlay gotoAndStop, etc... So my first advice would be to make sure you have the stop actions placed in the appropriate frames. Then make sure your over state does not also include frames of the doors closing. Hope that helps...