# If .swf loaded! else you help me!

**URL:** <https://forum.kirupa.com/t/if-swf-loaded-else-you-help-me/154971>\
**Category:** flash\
**Created:** [July 13, 2005, 10:48pm UTC](https://forum.kirupa.com/t/if-swf-loaded-else-you-help-me/154971 "2005-07-13T22:48:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spiro9210](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@spiro9210](https://forum.kirupa.com/u/spiro9210)\
**Post date:** [July 13, 2005, 10:48pm UTC](https://forum.kirupa.com/t/if-swf-loaded-else-you-help-me/154971/1 "2005-07-13T22:48:06Z")

</div>

I have a problem I am trying to solve. I have several movie clip embedded into each swf file. I did this to reduce the size of the main file, but I am trying to control each movie clip with a play, fast forward, stop and rewind button from the main file. I know the easy way out would be to create these buttons directly in each movie clip, but I thought I might be able to create a set buttons that control all the clips from the main file. Now, can someone please give an example of an “If” code for loaded .swf files. i.e

```auto
 on (release) { 
if (sweet.swf loaded) {
"gotoAndPlay instance on sweet.swf"

```

Thanks for your help
