|
|
@ -17,16 +17,17 @@
|
|
|
|
private function createImage():void {
|
|
|
|
private function createImage():void {
|
|
|
|
var photo:Image = new Image();
|
|
|
|
var photo:Image = new Image();
|
|
|
|
photo.source = "assets/animals03.jpg";
|
|
|
|
photo.source = "assets/animals03.jpg";
|
|
|
|
this.addChild(photo);
|
|
|
|
boxetyBox.addChild(photo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private function createPhotographer():void {
|
|
|
|
private function createPhotographer():void {
|
|
|
|
var photographer:Label = new Label();
|
|
|
|
var photographer:Label = new Label();
|
|
|
|
photographer.text = "Photographed by Elsie Weil";
|
|
|
|
photographer.text = "Photographed by Elsie Weil";
|
|
|
|
this.addChild(photographer);
|
|
|
|
boxetyBox.addChild(photographer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
]]>
|
|
|
|
]]>
|
|
|
|
</mx:Script>
|
|
|
|
</mx:Script>
|
|
|
|
|
|
|
|
<mx:Box id="boxetyBox"/>
|
|
|
|
|
|
|
|
|
|
|
|
</mx:Application>
|
|
|
|
</mx:Application>
|
|
|
|