According to the livedocs, it should.
According to my quick test, it does.
Code:
package
{
import flash.display.Sprite;
import flash.events.Event;
public class Main extends Sprite
{
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
var something:Object = new Object();
something.afunction = function():* {
trace(this.myVar);
}
something.myVar = 4;
something.afunction();
}
}
}
traces "4".
Forgive the boilerplate code, it's generated for me.