I have to get the _y property of a movieclip that is dynamically named. ie.."nav1", "nav2" etc
Within each there is an action that sets a variable navdef in a clip higher up called nav. This works fine. What Im having a problem with is within nav Im trying to get the _y property of the dynamically named mc but the target has to be defined with the variable navdef.
Tested with one of the mcs and it works fine...such as...
Code:
navminiypos = getProperty(navx.nav2, _y);
Tested my variable navdef ...lets say I click on the mc nav5 and navdef becomes nav5. Good so far.
So.. how can I target the mc using the variable navdef?
I tried..
Code:
navmc = navdef;
navminiypos = getProperty(navx.navmc, _y);
or just..
Code:
navminiypos = getProperty(navx.navdef, _y);
I also tried making the var navdef just the number ...so...
Code:
navminiypos = getProperty(navx."nav"+navdef, _y);
Hope Im making some sense trying to explain this.