Select to view content in your preferred language

Screen Shot Widget for the Flexviewer

2491
14
01-17-2011 03:50 AM
andrewj_ca
Frequent Contributor
A very simple widget that captures a screen shot of the current map window.  I use this in one form or another in many of our flex applications.  Though simple, I've been asked for this functionality many times so I thought I would share it.  I've included the source code as well as a compiled version.

http://www.arcgis.com/home/item.html?id=c3a2b6da36264b5f864993a8d8a5d082
Tags (2)
0 Kudos
14 Replies
DominiqueBerger
Emerging Contributor
Hi Andrew

Firstly - great widget idea, simple but very useful 🙂

I am using Flex 2.5 and have been trying to get it to work without much success - I just wanted to confirm that the widget worked at 2.5?

Thanks again,

Dominique
0 Kudos
AnthonyGiles
Honored Contributor
Dominique

I use this snapshot tool with 2.5 with no problems:

http://www.arcgis.com/home/item.html?id=3803b1ec34b446b684b80a067e4d133c

Regards

Anthony
0 Kudos
DominiqueBerger
Emerging Contributor
Hi Anthony

Thanks for the tip, however I tried that widget (the 2.2 version) and it doesnt seem to work. Did you have an updated version or are you using the 2.2 Widget with a 2.5 Flex viewer?

Thanks very much

Dominique
0 Kudos
AnthonyGiles
Honored Contributor
Dominique

Attached is what I am using in 2.5 with no problems

Regards

Anthony
0 Kudos
GeorgeHaskett
Deactivated User
Hello,

I just downloaded the screen shot widget, however there doesn't seem to be a xml file associated with it.

Isn't one required?

I'm using Viewer for Flex 3.1.

Thanks,

Haskett
0 Kudos
MichaelVolz
Esteemed Contributor
Is the screenshot widget capable of capturing other widgets that are enabled, such as pop-up windows, in the jpg image?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   This widget is configurable to capture ALL open widgets in the export:

http://www.arcgis.com/home/item.html?id=12430e982e534fdabe15635828405e45

PopUps are an issue because if they have a image inside them then you can not export them as this would be considered modifying the external image and will cause a Flash Player Security Sandbox error.
0 Kudos
MichaelVolz
Esteemed Contributor
Thank you very much Robert.  This should fulfill a business need for my org.

Will pop-ups without images display on the exported jpg image?  Or do pop-ups just not get exported in general?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   Currently popups are not exported at all. I have not taken time to see if I can determine is there is an image in it or not.
0 Kudos