Hi,

Often when you have a set of buttons you want to make one be the default.

Say for instance you had:
<js:HContainer>
    <js:TextButton text="One"  />
    <js:TextButton text="Two"  />
    <js:TextButton id="important" text=“Important" />
</js:HContainer>

and want to make the important button the default one / give it focus.

Currently I think  you need to do something like this:

COMPILE::JS {
    important.element.focus();
}
COMPILE::SWF {
    // TODO not 100% sure what's needed here
}

Is there a better cross platform way of doing this? Should the framework have 
an API for setting button focus?

Thanks,
Justin

Reply via email to