i have this on my buttons (movieclips):
on (rollOver) {
name=this._name;
path=this._target;
_root.push (name, path);
}
on the timeline i have the function:
_root.push = function (name, path){
trace(name);
name.gotoAndPlay(“over”);
}
on rollOver i want to dynamically pass a movieclips name to a function which controls that the movieclip should goto its frame named “over”, but i cant get the adressing to work.
if i trace the variable “name” in the example it gives me the moviename correctly. so i guess my syntax is wrong.
the function doesnt work with the path variable either.
i know this might be a stupid question. dont mind me, i’m a noob…
thanks for your help,
dual