Hi there,
I figured out the if statement, but what if I want also the reverse effect?
But let me explain a bit more : I have a mc with an 'in' and an 'out' animation. The frames are labeled "in", "out" and "full". "full" is where the mc is supposed to stop, between "in" and "out". And I would like my invisible button, on release, to play my mc's "in" if the current frame is
not "full", and to play my mc's "out" if the current frame
is "full".
here's the bit of code I wrote, seems not to work.
ActionScript Code:
inv1_btn.onRelease = function()
{
if (tiroir1_mc.currentFrame != "full")
{
tiroir1_mc.gotoAndPlay("in");
}
if (tiroir1_mc.currentFrame == "full")
{
tiroir1_mc.gotoAndPlay("out");
}
};
any idea?