"_level0.swfname.swf"?

apparently, when a button is controlled by a function like so:

 button.onRelease = function() {
 pages = button;
 trans.gotoAndPlay(2);
} 

that variable “pages” is given a “_level0.” before the variable info. How can I eliminate that from happening? Is there a way to delete the first 8 charaters of a variable when assigning it?

the problem with this is if I want to call a loadMovie like so:

 loadMovie(_root.pages+".swf", "_root.target"); 

pages turns up as “_level0.button.swf”

help? :mountie: