1 Reply Latest reply on Jan 13, 2009 8:47 AM by matthew horn

    dispatching paste event

      Hi everybody.
      I need to paste text into different fields including htmlloader. How can i define when paste event occurred successfully?
      I tried this.addEventListener(Event.PASTE, pasteEvent);
        • 1. Re: dispatching paste event
          matthew horn Level 3
          I'm not sure there's enough info here to answer your question, but maybe I can help.

          When you say you need to paste text, you mean your _users_ need to paste text? Or do you mean you are doing it programmatically?

          If you are copying/binding/pasting the text programmatically, then you can manually dispatch the paste event if you need to when you do the actual operation. There's info about dispatching events manually in the docs.

          As for using this.addEventListener, I am not sure you want to use "this" -- in most contexts, that refers to the application itself and not a specific component such as the HTMLLoader. Just mentioning this in case its what's causing your problem.

          matt horn
          flex docs