# If statements involving speed + coordinates?

**URL:** <https://forum.kirupa.com/t/if-statements-involving-speed-coordinates/188610>\
**Category:** flash\
**Created:** [May 9, 2006, 12:58pm UTC](https://forum.kirupa.com/t/if-statements-involving-speed-coordinates/188610 "2006-05-09T12:58:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![janw](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@janw](https://forum.kirupa.com/u/janw)\
**Post date:** [May 9, 2006, 12:58pm UTC](https://forum.kirupa.com/t/if-statements-involving-speed-coordinates/188610/1 "2006-05-09T12:58:07Z")

</div>

Hey Everyone!  
So i’m fairly new at Flash and am having trouble writing a certain if statement. Kirupa has this cool sliding menu thats all in one document, with all the different backgrounds on a single timeline. What I want to do is when one of those menu’s appears in the center of the screen completely still to load an external .swf. The only idea I had is to write an if statement stating:

If the background\_mc is == to a speed of zero + coordinates of x = 0, y = 0 then perform this action. Anyone know how to write that? And also if there’s a better way to do this let me know 😛 thanks!
