# \[mx04\] MC's x/y to control frame play of other MC

**URL:** <https://forum.kirupa.com/t/mx04-mcs-x-y-to-control-frame-play-of-other-mc/127202>\
**Category:** Uncategorized\
**Created:** [October 31, 2004, 8:26pm UTC](https://forum.kirupa.com/t/mx04-mcs-x-y-to-control-frame-play-of-other-mc/127202 "2004-10-31T20:26:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickpickett](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@rickpickett](https://forum.kirupa.com/u/rickpickett)\
**Post date:** [October 31, 2004, 8:26pm UTC](https://forum.kirupa.com/t/mx04-mcs-x-y-to-control-frame-play-of-other-mc/127202/1 "2004-10-31T20:26:23Z")

</div>

Wurd-

I’ve got a link [here](http://www.rickpickett.com/playback.htm) for the flash file I’m working on.

What I’m trying to accomplish is creating faux control ability. It just needs to look like there’s user input.

The specifics:

to the right of the screen is a window with 6 tabs that you can drag. I want the window above the tabs to have green bars that increase vertically as you drag up and decrease as you drag down. I thought I would be able to asign variables of position1, ""2, ""3, etc. Then set up a \<= if then statement to say:

if tab1\_mc is less than 280 px for it’s \_y then tell greenbar1\_mc to gotoAndStop(3);

That didn’t work, so, I figured I could just forget the var’s and set up some AS that can constantly get the value of the tab1\_mc’s \_y and then go through an if then AS that would tell the greenbar1\_mc to gotoAndStop(respective frame);

Any ideas? I was looking in the AS Cookbook and AS for Flash MX books, but no luck.

Thanks

Rick
