pravim igricu, i hocu da uradim customiseable controls i treba mi sledecea stvar; da kad se klikne na input text field koji predstavlja taster na tastaturi koji trba pritisnuti da bi se izvrsila odredjena komanda (npr. pucanje) da input text field prikaze pritisnuti taster...
sad to je lako za slova i brojeve ali kako da prikaze da je pritisnuto CTRL, SPACE, SHIFT ... ja sam butao nesto sa .get Ascii() ali ne znam kako to posle da pretvorim u A, B, V,..SHIFT, CTRL, SPACE itd ...a da ne moram da koristim
if ... za CTRL, SPACE ...
+
takodjer mi komandica Selection.getFocus() ne radi sta treba...(tj. ne znam da je koristim)
u helpu pise da treba da vrati ime promenljive koja je povezana sa odgovarajucim txt field-om a ona mi vraca ime txt field-a (ako ima ime a ako nema onda npr.
myMC.instance171
"Method; returns the variable name of the text field that has focus. If no text field has focus, the method returns null. If the current focus is a button, and the button is an instance of the Button object, getFocus returns the target path as a string. If the current focus is a text field, and the text field is an instance of the TextField object, getFocus returns the target path as a string.
If a button movie clip is the currently focused button, Selection.getFocus returns the target path of the button movie clip. If a Text Field with an instance name is currently focused, Selection.getFocus returns the target path of the TextField object. Otherwise, it returns the Text Field's variable name."
nadam se da sam bio razumljiv...