as3 scoping is stupid