Hey all,
I am having an issue with an mc controlling another mc via a function on my main timeline.
Here is the function on my main timeline:
[COLOR=Blue]homeComp = function(mc, mcX, mcY) {
this.mc._x = mcX;
this.mc._y = mcY;
};
homeComp(this.techA_mc, 873, 517);
[COLOR=Black]I now call the function from inside of another mc via on(press) event as follows:[/COLOR] _parent.homeComp();
[/COLOR][COLOR=Black]So what I am trying to do is:
[/COLOR][COLOR=Black]I’ve created an mc that acts as a button. It calls the AS[/COLOR][COLOR=Blue] _parent.homeComp(); [COLOR=Black]function. You can see what the homeComp() function does from above.
What the AS is supposed to do:
When the button mc is pressed, it will tell techA_mc to go to the position of 873, 517.
…but nothing happens.
Any help would be greatly appreciated!
[/COLOR][/COLOR][COLOR=Blue]
[/COLOR]