Is there any way to get a button to perform a named function? ie:
Instead of this
contact_b.onPress = function () {
getURL("javascript:var mypopup = window.open('contact.htm','Contact','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=200,height=290,top='+eval((screen.availHeight - 300) / 3)+',left='+eval((screen.availWidth - 500) / 2));mypopup.focus();");
}
function contact() {
getURL("javascript:var mypopup = window.open('contact.htm','Contact','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=200,height=290,top='+eval((screen.availHeight - 300) / 3)+',left='+eval((screen.availWidth - 500) / 2));mypopup.focus();");
}
could i make something like
contact_b.onPress = function () {
"insert load function:contact thing here"
}
function contact() {
getURL("javascript:var mypopup = window.open('contact.htm','Contact','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=200,height=290,top='+eval((screen.availHeight - 300) / 3)+',left='+eval((screen.availWidth - 500) / 2));mypopup.focus();");
}
I use this function for dynamic text asfunction links in loaded movies and such, and it would be easier, and smaller if i could just get it to load the function…