2006/10/5, Michael Stuhr <[EMAIL PROTECTED]>:
how do i set global textinput styles for the v2 components if i want a
different focusIn and
focusOut style ?
micha
hmm, i'm currently trying to use focusManger (i know, i know !) - the
docs say that it inherits the Events from UIComponent, but it seems it
does not:
here's what i have tried:
function onComponentFocusIn (evt:Object)
{
var c = evt.target;
trace (c[i].className); // doesn't fire ?
if (c[i].className == "TextInput" || c.className == "TextArea" ) {
// setting style here
}
}
function onComponentFocusOut (evt:Object)
{
var c = evt.target;
if (c[i].className == "TextInput" || c.className == "TextArea" ) {
//setting style here
}
}
focusManager.addEventListener ('focusIn', onComponentFocusIn);
focusManager.addEventListener ('focusIn', onComponentFocusOut);
maybe there's another focusManager flying around which i can use.
if anyone has an idea ...
micha
_______________________________________________
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