Dynamic geturl();

it is possible of use string on the geturl(); command?

like this:

on (release) {
getURL(main.main2.toString(), _self);
_root.text = search;
}

is there any workaround so that the url will become dynamic? The links is stored in xml file.
ex of the links are :

this.html?gotoframe=#thisframe
that.html?gotoframe=#frame2

Basically the this and that html files contains swf that have alot of frames

thanks