<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http:
backgroundColor="#FFFFFF"
backgroundAlpha="0"
initialize="addControls()">
<mx:Script>
<![CDATA[
import mx.controls.Image;
import mx.controls.Label;
private function addControls():void {
createImage();
createPhotographer();
}
private function createImage():void {
var photo:Image = new Image();
photo.source = "assets/animals03.jpg";
this.addChild(photo);
}
private function createPhotographer():void {
var photographer:Label = new Label();
photographer.text = "Photographed by Elsie Weil";
this.addChild(photographer);
}
]]>
</mx:Script>
</mx:Application>
In the functions createImage() and createPhotographer()
what does the term "this" refer to?
Is it the application instance, or <mx:Script> create an instance of some class that "this" refers to?