the keylistener object listens for when a key is pressed, any key, but we check if CTRL is being pressed, and then if 3 is being pressed down in Key Code (CLICK HERE FOR LIST OF ALL KEY CODES, the digits on the RIGHT-side), and then execute the desired codes
Hope this helps
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
Oh dear!
I hate to be a pain... but every time I hit cmd + 3
the swf does not only execute the text "sarah sais"
but it also deletes all the other text below it and returns to line 1, the top of the page.
I'm making this template for a live translation of a chat.. so I'm back at square 1 for now... I'll keep googling for Godot, but if you have the time, energy and feel like helping me...
The sender02.swf sends text to the reciever.swf
the the swf, I wanted to assign shortcuts in is sender02.swf
It's a Dialogue between Sarah and her client , so as the person is typing the conversation, they need to have shortcuts like "Sarah said:"... then type the text below and "Client said:" then type the text below... however, every time I assign the short cut it all dissapears ans goes to line 1
it was because we were replacing the whole textfield's content with just that one sentence. Just add a + before =, like this:
Code:
myMessage.text += "Sarah says:";
and it should work, but if you want the caret (text selection cursor/pointer) to be aligned AFTER the inserted text, use this after the above code in the keyListener: