# If/Then Actionscript for Butons - Help!

**URL:** <https://forum.kirupa.com/t/if-then-actionscript-for-butons-help/227764>\
**Category:** flash\
**Created:** [June 1, 2007, 9:55pm UTC](https://forum.kirupa.com/t/if-then-actionscript-for-butons-help/227764 "2007-06-01T21:55:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jluck](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@jluck](https://forum.kirupa.com/u/jluck)\
**Post date:** [June 1, 2007, 9:55pm UTC](https://forum.kirupa.com/t/if-then-actionscript-for-butons-help/227764/1 "2007-06-01T21:55:30Z")

</div>

Hello everyone, I’m fairly new to Actionscript, and I’ve been wracking my brains over this while going through the Actionscript help files.

I would like to make smooth transitions between movie objects using if/then statements attached to my navigation buttons.

The movie clips are not external swf files, but objects within the main swf.

Basically it needs to work like:

If movie object 01 is loaded then on button click goto and play frame 2  
If movie object 02 is loaded then on button click goto and play frame 3  
etc

This would all be attached to the same button so I could have smooth transitions between my animated movie clips.

Also, the buttons are within a movie clip themselves, so it would have to control the main scene, not the movie they are embedded in.

Can anyone offer some advice or help on this? Thanks!

EDIT: To see the actual swf I’m working on, it’s at [http://www.studiophantasm.com/test.html](http://www.studiophantasm.com/test.html)
