lundi 28 décembre 2015

How to Add Multiple Images to Clipboard in as3 using Flex

I have this code:

                mSelectedWidget = getWidgetsByID( mSelectedWidXML.children()[i].@id ) as DisplayObject;
                mSelectedWidgetXML = (mSelectedWidget as IWidget).getWidgitPropXML();
                var bmpData:BitmapData = new BitmapData(mSelectedWidget.width, mSelectedWidget.height);
                bmpData.draw(mSelectedWidget);
                Clipboard.generalClipboard.setData(ClipboardFormats.BITMAP_FORMAT, bmpData,false);

My Problem is that When i am copying multiple images, it is only copying last image (i.e which is added at last) to the clipboard.

I don't know how to add more than one images to clipboard at a time.

So I want the solution to add multiple images to clipboard.

Aucun commentaire:

Enregistrer un commentaire