var base:LoadVars = new LoadVars (); base.load (url_of_base); base.onLoad = function () { my_txt.text = this.type; };