2009. február 17., kedd

Actionscript 3.0 - ButtonApp class

ButtonApp.as
--------------


package
{
import flash.display.MovieClip;
import GreenButton;

public class ButtonApp extends MovieClip
{
public function ButtonApp()
{
var green_mc:GreenButton = new GreenButton();
green_mc.x = 200;
green_mc.y = 50;
this.addChild(green_mc);

var blue_mc:BlueButton = new BlueButton();
blue_mc.x = 200;
blue_mc.y = 150;
this.addChild(blue_mc);

var red_mc:RedButton = new RedButton();
red_mc.x = 200;
red_mc.y = 250;
this.addChild(red_mc);
}
}
}

Nincsenek megjegyzések: