thanks muzak,
selectable was what i was missing. thanks!
i am aware of delegate and scope issues. and i know its bad form but
i got used to it like this and its much faster and handier for me.
but i will do my very best :)
thanks again
eugen
Am 18.05.2006 um 11:47 schrieb Muzak:
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" <[email protected]>
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
------------------------------------------------------------------------
_______________________________________________
[email protected]
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
plugisto
...........................
eugen pflüger
alexanderstr. 109
70180 stuttgart
fon +49.711.6739797
mobil +49.177.6428272
e-mail [EMAIL PROTECTED]
...........................
http://www.plugisto.net
http://itself.pmalc.de
http://www.lifeperformance.net
_______________________________________________
[email protected]
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