[SIZE=2]
i have a problem adressing or targetting a attached mc
when i target de mc directly it works fine but when i try it trough a variable it doesnt recognise its path anymore???
hopefully a part of the code is gonna explain the situation a litle better…
this piece works fine:
decrement and increment are two functions
[COLOR=DarkSlateGray]/////////////////////////////////////////////////////////////////////////[/COLOR]
[COLOR=Navy]ThisItemNumber.onRollOver = function() {
this.but1_1.Decrement(50, 2);
};
ThisItemNumber.onRollOut = function() {
this.but1_1.Increment(100, 2);
};[/COLOR]
[COLOR=DarkSlateGray]//////////////////////////////////////////////////////////////////////[/COLOR]
[COLOR=Black]this doesnt work[/COLOR]
[COLOR=DarkSlateGray]//////////////////////////////////////////////////////////////////////[/COLOR]
[COLOR=Navy]ThisItemNumber.onRollOver = function() {
var WichButOver = [“but1_”+this.numbr];
this.WichButOver.Decrement(50, 2);
trace(WichButOver);
[/COLOR]
[COLOR=DarkSlateGray]//trace = but1_1 if you rollover but 1
//trace = but1_2 if you rollover but 2[/COLOR]
[COLOR=Navy]};
ThisItemNumber.onRollOut = function() {
var WichButOver = root["but1"+this.numbr];
this.WichButOver.Increment(100, 2);
trace(WichButOver); [/COLOR]
[COLOR=DarkSlateGray]//trace = but1_1 if you rollover but 1
//trace = but1_2 if you rollover but 2[/COLOR]
[COLOR=Navy]};[/COLOR][/SIZE]
hopefully yall know what i’m talking about…
tnx in advance…
desperado redg