I just looked at a Lynda.com tutorial on setting up a class for a button and you have to do about four things, just to get access to the script from a button. Plus you have to get all your import statements correct in the .as files. This might take a while.