hey does anyone know how to write an “if” statement for a button to trigger a movie clip to go from frame 1 (which has a stop action) to frame 2 (which will play through to frame 10)???
:!: need help:!:
yourbutton.onRelease = function(){
movie.gotoAndPlay(2);
}
?
oops, sorry i forgot, the whole reason i need an if statement is because i need to make it so when you click the button the movieclip plays so that a bar animates forward, and then when clicked again it will animate backwards to the starting position. i already have the movieclip totally set up with stops and everything. i just dont really know how to write if statements.
Is the backwards animation also tweened or does it only have the forward animation which you want to be reversed through AS ?
Maybe it’s easier to give me your file.
okay here is the file
Here you go
thanks a lot, that’s exactly what i wanted! you rule dude:beam:
You’re welcome
better titles for your posts please. edited
sorry