Hi,

Sorry for starting a new thread on this but it seems important.

Rich Internet Application development review
1) Get information for the punters
2) Do something sexy with it in Flash

It's not all pushing buttons and typing. There's the clipboard... If your
not building something to get data from the users clipboard now your next
project might, and the bad news appears to be that Firefox is not coming
to the party.

I've noticed that Ctrl-v, pasting from the clipboard to flash, doesn't
work in all versions of Firefox. In fact nothing related to the clipboard
does.

A similar thread from 2001:
http://chattyfig.figleaf.com/pipermail/flashcoders/2001-November/016166.html
...didn't post an answer.

Please visit this URL:
http://dozo.jp/paste_test.php

Then try to paste something in on Firefox and and register how it went.

The test results are available at:
http://dozo.jp/paste_test.php?result=true

I've managed to figure out that pressing Ctrl and V _really_ fast
sometimes works. In that case I get the following output:

UP ->   Code: 17        Key:
UP ->   Code: 86        Key: v
DOWN -> Code: 86        Key: v
DOWN -> Code: 17        Key:

As opposed to:

UP ->   Code: 86        Key: v
UP ->   Code: 17        Key:
DOWN -> Code: 86        Key: v
DOWN -> Code: 17        Key:

Which is the key sequence flash reads when the operation fails.

IE reads the keys in this order:

DOWN -> Code: 17        Key:
UP ->   Code: 86        Key: v
UP ->   Code: 17        Key:

Hacking something to get the info from Javascript doesn't seem like a
practical option, Firefox won't read the clipboard by default:
http://www.mozilla.org/editor/midasdemo/securityprefs.html

Any input appreciated.

Thanks for reading this far!

Tony


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to