|
I assume you are requesting the MXML with
?accessible=true or you’ve enabled accessibility in flex-config? I haven’t
played with accessibility at all, not really sure what else would be wrong. Matt From: Doodi, Hari -
BLS CTR [mailto:[EMAIL PROTECTED] Thanks, code compiles successfully but
execution is wrong. Did any one try this code from actionscript language
reference - key board access to flex controls? When I run mxml, I got alert from
myOnKeyDown( ) eventhough no key is pressed (except F12). When I press Ctrl+7
nothing happened. It suppose to give alert from myOnPress( ). //*** .as file ***// // ActionScript Document function initApp() {
var tempButton = my_btn;
tempButton._accProps ="Ctrl+7";
Accessibility.updateProperties();
var myListener:Object = new Object();
Key.addListener(myListener);
myListener.>
tempButton.>
} function myOnKeyDown() {
// 55 is key code for 7
mx.controls.Alert.show(String(Key.getCode()),"myOnKeyDown");
if(Key.isDown(Key.CONTROL) && Key.getCode() == 55)
{
Selection.setFocus(my_btn);
my_btn.onPress();
//myOnPress()
} } function myOnPress() {
mx.controls.Alert.show("hello","myOnPress"); } Thanks! -----Original Message----- Hmm, I think that must be
a bug that we have the compiler error. The way you would work around it
is to declare a local variable untyped and assign it to your button, then put
the _accProps on there. var tempButton = my_btn; tempButton._accProps =
... You should maybe file a
but at http://www.macromedia.com/go/wish
and maybe make a comment on the livedocs in the accessibility section about
this. Matt From:Doodi,
Hari - BLS CTR [mailto:[EMAIL PROTECTED] Hi all, I am trying to allow my users to access screen
UI component thru
|

