Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Allow Ctrl|V within an input text field

New Here ,
May 09, 2014 May 09, 2014

Hello,

I've run across another problem that I cannot solve. This is the problem.

I have a text field called myText_txt and it is formatted as an Input field. I want the user to be able to copy information from a web page (it will go to the clipboard) and then paste the information copied into the input text field, which is in a .swf file that is not contained in a browser, it is open using javascript to remove the browser and have it in a certain window size, etc.

Any help would be greatly appreciated.

TOPICS
ActionScript
235
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 09, 2014 May 09, 2014

what's the problem?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 12, 2014 May 12, 2014

the problem is that nothing happens - when the user clicks in the field and performs the Ctrl|V, nothing pastes in the text field.

stage.addEventListener(KeyboardEvent.KEY_UP, pasteText);

function pasteText(e.KeyboardEvent):void

}

if((e.ctrlKey && (e.keyCode == Keyboard.C)) { 
        gotoAndPlay("26")
; 
}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 12, 2014 May 12, 2014
LATEST

that code has 4 errors in 7 lines.  don't you see error messages?

or copy and paste your code.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines