[AS 3] A Button from the SimpleButton Class
2 comments so farI just wanted to figure out how buttons could be created in Actionscript 3. Nothing to exciting here, but this may be a bit of useful code in the future.
Here is the document class Button.as:
package {
import flash.display.Sprite;
import flash.display.SimpleButton;
import flash.display.Shape;
public class Buttons extends Sprite
{
public var button:SimpleButton;
public function Buttons()
{
button = new [...]