0

How to declare the buttons in the following AS code What is the library that needs to be included

package
{

    public class caml extends Sprite
    {

       public function buttons()
       {
         saveButton.visible = false;
         discardButton.visible = false;

       }
       private function captureImage(e:MouseEvent):void
       {
         capture.visible = false;
         saveButton.visible = true;
         discardButton.visible = true;
       }

    }   

 }

1 Answer 1

1

If you mean buttons as in the Flash IDE and not the component one, these are SimpleButton

package {
 import flash.display.SimpleButton;
 public class caml extends Sprite {
   public var saveButton:SimpleButton;
   //...
 }
}
Sign up to request clarification or add additional context in comments.

1 Comment

Alert() sounds like a custom class, that depends on where you put the class?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.