For organizational purposes only!
I'm trying to organize some code in my file and was wonder how this would be done. Instead of assigning some actions in the button's UI and some with Actionscript, I wanted to put all of the code in one place.
I want to perform a javascript window pop up for a form on my site and this is what I did, but I'm sure the syntax is off.
How would I assign a javascript command to this button with AS instead of using the button's UI?
Here is the sample code for two of the buttons from the menu.
code:
/*
###################
MENU BUTTON OPERATIONS
###################
*/
// CONTACT US BUTTON
// Open pop up form for contacting the website personnel.
contactusbtn.onRelease = function () {
// Release Button perform
javascript:winpopup ('file.html');
}
// HOME BUTTON
// Show the home page contentpane and hide irrelevant content.
homebtn.onRelease = function (){
// Hide newspage contentpane.
newspage._visible = false;
}





Reply With Quote