# Conditional statement help!

**URL:** <https://forum.kirupa.com/t/conditional-statement-help/210138>\
**Category:** Uncategorized\
**Created:** [December 15, 2006, 9:40am UTC](https://forum.kirupa.com/t/conditional-statement-help/210138 "2006-12-15T09:40:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![juice22](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@juice22](https://forum.kirupa.com/u/juice22)\
**Post date:** [December 15, 2006, 9:40am UTC](https://forum.kirupa.com/t/conditional-statement-help/210138/1 "2006-12-15T09:40:49Z")

</div>

i’m trying to add simple rollover rollout animations to my gallery page but i have a problem

my thumbnails are animated (for example they slide into the page) then on the last frame of that animation is a 2nd movie clip in which the rollover\_rollout animations lay

here is my code:

function over(){  
this.gotoAndPlay(“over”);  
}  
function out(){  
this.gotoAndPlay(“out”);  
}

this.winter\_mc.onRollOver = function(){  
this.gotoAndPlay(“over”);  
}  
this.winter\_mc.onRollOut = function(){  
this.gotoAndPlay(“out”);  
}

However, someone named junkerjorg was kind enough to look at my FLA file and to tell me me that I need a conditional statement to check if my first animation file was done playing bc the AS is on the first frame of my main timeline the rolloverout animations aren’t working

I really need to get this working but I know nothing about conditional statements- if anyone could be so kind enough to help me write one god id be so thankful

The file can be accessed at [www.creclooart.com/justin/gallery.fla](http://www.creclooart.com/justin/gallery.fla)  
u will be saving my life NO joke
