Hi,
I think there is no copy image in flex and paste in word or outlook
you need to capture the image by ImageSnapshot
public function takeSnapshot(comp:DisplayObject):void {
var ohSnap:ImageSnapshot =
ImageSnapshot.captureImage(comp);
var str:String =
ImageSnapshot.encodeImageAsBase64(ohSnap);
ExternalInterface.call("takeSnapshot", str, comp.width
+ 10,
comp.height + 10);
}
and paste the below code in your html
function takeSnapshot(imgString, width, height) {
window.open ("data:image/png;base64," + imgString, "",
"width=" + width + ",height=" + height + ",resizable=1");
}
it will open a window from there u can save the image and copy the
image.
hope this might help full
Regards
Santosh Kumar
[email protected]
On Nov 12, 3:14 pm, Anuradha Ojas <[email protected]> wrote:
> Please help me with my question :
>
> Requirement :
>
> Copy image from Flex ie., swf file and need to be Pasted in Ms Word or
> Outlook.
>
> I tried through javascript and in flex itself using setClipboard...
> but nothing clicked... thats y need ur help..
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.