feedButton.onRelease = function () { if (arr_XMLHash[index] == undefined) return; // we assume that the feed's link will have the format: // http://..../section/url_title/ // extract the last two parts of the current link (section and url_title) var path = arr_XMLHash[index].link.split("/").splice(-2); SWFAddress.setValue(path.join("/")); }