# Flash MX Having trouble with getProperty problem!

**URL:** https://forum.kirupa.com/t/flash-mx-having-trouble-with-getproperty-problem/36743
**Category:** Uncategorized
**Created:** [December 1, 2003, 11:55am UTC](https://forum.kirupa.com/t/flash-mx-having-trouble-with-getproperty-problem/36743 "2003-12-01T11:55:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![crapitoutjim](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@crapitoutjim](https://forum.kirupa.com/u/crapitoutjim)
#### Post date: [December 1, 2003, 11:55am UTC](https://forum.kirupa.com/t/flash-mx-having-trouble-with-getproperty-problem/36743/1 "2003-12-01T11:55:37Z")

</div>

Hi There,

I am having problem with a getProperty thing.  
I have built a menu system that I want a bar to move over the button when the user rolls over the button.

I have 3 buttons which have the following code on them:

on (rollOver, dragOver) {  
/:Ymove = -119;  
}  
on (rollOut, dragOut) {  
/:Ymove = /:origYpos;  
}

and then I have an mc called bar which is within an mc called subMenu, which is within an mc called intro, which is on the stage.

I have the following code on the same mc as buttons and bar, on first keyframe:

origYpos = getProperty("\_root.intro.subMenu.bar", \_y);  
Y = “0”;  
Ymove = “0”;  
newY = “0”;  
fscommand(“allowscale”, “false”);

On second key frame:

Y = getProperty("\_root.intro.subMenu.bar", \_y);  
newY = Y+(Ymove-Y)/4;  
setProperty("\_root.intro.subMenu.bar", \_y, newY);  
Y = newY;

and on the last key frame:

gotoAndPlay(2);

Have made it work on the main stage but cant make it work when it is buried within the document.

Any help would be much appreceated as I am pulling my hair out here!!

Crapitoutjim
