goofing around with programmatic DOM construction
This commit is contained in:
parent
a28d77bfd7
commit
d71e38e21f
@ -17,16 +17,17 @@
|
||||
private function createImage():void {
|
||||
var photo:Image = new Image();
|
||||
photo.source = "assets/animals03.jpg";
|
||||
this.addChild(photo);
|
||||
boxetyBox.addChild(photo);
|
||||
}
|
||||
|
||||
private function createPhotographer():void {
|
||||
var photographer:Label = new Label();
|
||||
photographer.text = "Photographed by Elsie Weil";
|
||||
this.addChild(photographer);
|
||||
boxetyBox.addChild(photographer);
|
||||
}
|
||||
|
||||
]]>
|
||||
</mx:Script>
|
||||
<mx:Box id="boxetyBox"/>
|
||||
|
||||
</mx:Application>
|
||||
|
Loading…
Reference in New Issue
Block a user