I have a lot of buttons which uses the code “getURL” how can i shorten it?
i know the best way might be using xml so that later on i could change it more easily, but that would affected other part of my structures for now.
so any1 know how?
_root.themenu.sandwiches.b01.onPress = function() {
getURL("services.html", "goiframe");
};
_root.themenu.sandwiches.b02.onPress = function() {
getURL("services.html", "goiframe");
};
_root.themenu.sandwiches.b03.onPress = function() {
getURL("services.html", "goiframe");
};
_root.themenu.sandwiches.b04.onPress = function() {
getURL("services.html", "goiframe");
};
_root.themenu.sandwiches.b05.onPress = function() {
getURL("services.html", "goiframe");
};