Problem Multiple AS files
I have a main movie that has the code:
import AS.*;
(The name of my ActionScirpt folder is AS.)
The following script does not seem to be working or loading and I am not sure why. Can anyone help me with this? Anyone know why? Thanks.
package AS
{
public class Initialize extends SimpleButton
{
public function buttonInt()
{
//Next Button Code
next_btn.addEventListener(MouseEvent.CLICK, mouseClickHandler);
//Admin Button;
admin_btn.addEventListener(MouseEvent.CLICK, mouseClickHandler);
}
private function mouseClickHandler($e:MouseEvent):void
{
trace("Clicked the button.");
if (green_mc.currentFrame != 1)
{
green_mc.gotoAndStop(1);
}
if (gray_mc.currentFrame != 1)
{
gray_mc.gotoAndStop(1);
}
gotoAndStop(currentFrame+1);
next_btn.visible = 0;
tomatoCount = 0;
}
}
}