Make sure the textfield is selectable when setting type to "input".
You should also consider using the Delegate class to get around the scope problem (no need for 'me'). import mx.utils.Delegate; function onButtonReleaseHandler() { trace("EVENT ::: onButtonReleaseHandler"); this.field.selectable = true; this.field.type = "input"; } function offButtonReleaseHandler() { trace("EVENT ::: offButtonReleaseHandler"); this.field.selectable = false; this.field.type = "dynamic"; } this.on_btn.onRelease = Delegate.create(this, this.onButtonReleaseHandler); this.off_btn.onRelease = Delegate.create(this, this.offButtonReleaseHandler); regards, Muzak ----- Original Message ----- From: "eugen pflüger" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> Sent: Thursday, May 18, 2006 11:00 AM Subject: [Flashcoders] textfield.type no effect?! flash8 bug? 2 hello, someone had this problem before??? ------------------------------------------------------------------------ --------- hello, couldnt find anything in the archives. is this a flash 8 bug? changing "textfield.type" dynamically has just no effect. // code var me = this; this.on_btn.onRelease = function () { me.field.type = "input"; } this.off_btn.onRelease = function () { me.field.type = "dynamic"; } // code end tracing "field.type" outputs a change (from "input" to "dynamic" and back again). but the behaviour just depends on what i was setting in the ide. when i set it to "input" it remains an input textfield. if i set it to "danamic" it always stays a dynamic textfield. isnt it supposed to be changed dynamically? am i missing something? tia eugen ------------------------------------------------------------------------ _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com