function a() { var p2 = this._name; b(p1, p2); } function b(o, o2){ trace(o); trace(o2); } p1 = 'Hello'; mc.onPress = a;