Flash as a form component

Not sure if anyone has done this, but I was wondering you could have a flash component act as a form component. For example have flash component that would be a text editor and then the data inside it would be submitted when you submit the form I imagine a bit of js would be needed with external interface in order to grab the text on submit, but a rich text editor box seems much better suited to flash that it does js. Also it wouldn’t be hard to strip out stupid work stuff or switch markup engines. Just kind of thinking out loud here and trying to get some feedback.