Hyperlink

Ok, I am trying to perform a simple animation for a hyperlink. What I am doing is when you rollover my hyperlink which is a MC called “home”, it duplicates another MC called “home2”. After that, it sets the home2 _x + 20, and the home2 _y -20. For some reason, none of this happens with the coding I am using.

here is my code…

on(rollOver){
_root.home.duplicateMovieClip(“home2”, 1);
_root.home2._x+=20;
_root.home2._y-+20;
}
on (rollOut){
_root.home2._x-=20;
_root.home2._y+=20;
}

It worked overhere:

home.onRollOver = function() {
	_root.home.duplicateMovieClip("home2", 1);
	_root.home2._x += 20;
	_root.home2._y -= 20;
};
home.onRollOut = function() {
	_root.home2._x -= 20;
	_root.home2._y += 20;
	_root.home2._visible = false;
};

I cant copy and paste that in Flash MX, it gives me problems. What do I need to change?
Thanks for the feedback

just paste this script in ur _root timline, not ur button!

Thank you very much

no problem!