Inserting bitmaps into an as3 application

Is it possible to paste (as in copy / paste from the clipboard) a bitmap into a flash application?

I am thinking of a level editor that allows editing images as tiles, but wanted to allow copying or a quick way to sync from an external file without having to load them, etc.

Cheers, Chris

+2


source to share


1 answer


Yes. But only in AIR . This is a big security risk allowing any web flash to access your clipboard. You can have a password there or anywhere, and any banner on any website you visit can get it.



Here is the documentation on how to implement it in actionscript3 in an AIR application. http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/desktop/Clipboard.html

+3


source







All Articles