1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| package vues
{
import mx.containers.HBox;
import mx.containers.VBox;
public class gridColonne extends VBox
{
protected override function createChildren():void
{
super.createChildren();
var boxHaut:HBox = new HBox();
var boxMilieu:HBox = new HBox();
var boxBas:HBox = new HBox();
boxHaut.height = 20;
boxHaut.percentWidth = 100;
boxHaut.setStyle("backgroundColor", 0xFF0000);
boxHaut.setStyle("color", 0xFF0000);
this.addChild(boxHaut);
boxMilieu.height = 20;
boxMilieu.percentWidth = 100;
boxMilieu.setStyle("backgroundColor", 0x00FF00);
boxMilieu.setStyle("color", 0x00FF00);
this.addChild(boxMilieu);
boxBas.height = 20;
boxBas.percentWidth = 100;
boxBas.setStyle("backgroundColor", 0x0000FF);
boxBas.setStyle("color", 0x0000FF);
this.addChild(boxBas);
}
}
} |
Partager