Select to view content in your preferred language

Static Image widget

1106
7
Jump to solution
05-09-2012 12:20 PM
EricStarn2
New Contributor
Hello,
I am looking for the best way to just display some text (info), maybe also an image, about some subject matter on my viewer. The information would be an explanation of what the data is presenting. I was thinking of using the static image widget so a user could just click it and see the info but I am not sure how to add text to the widget.

How can I do this or is there a better way to proceed in this?
Any help would be great

Eric
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Frequent Contributor II
Eric,

Don't forget to also mark the post as answered by clicking on the tick

Regards

Anthony

View solution in original post

0 Kudos
7 Replies
AnthonyGiles
Frequent Contributor II
Eric,

Have a look at this post it may be the solution you are after:

http://forums.arcgis.com/threads/56727-Moveable-Static-Image-Widget

Regards

Anthony
0 Kudos
EricStarn2
New Contributor
Thanks but I can use little more help in the install of the widget.

I created a new widget named MoveableImage in the Widget folder and added the .xml and .mxml file and then compiled it to produce the .swf file.
I however am not sure where to use the flash file that was also in the downloaded file. So as you can guess it is not working.

Eric
0 Kudos
AnthonyGiles
Frequent Contributor II
Eric,

I've not actually tried the widget but I guess the .swf file that was in the zip was a complied version of the widget as I cannot see any reference to it in the mxml.

Can you expand on why the widget is not working (i.e. any error messages you are getting)

Regards

Anthony
0 Kudos
EricStarn2
New Contributor
My apologizes Anthony
I actually figured it out.
It was a problem in my config file
Typical user error

The widget looks good but is there a way to invert the order of the widget so it is image then text?

Thanks

Eric
0 Kudos
AnthonyGiles
Frequent Contributor II
Eric,

Sure you can, If you can edit the source code swap the two lines below around from:

<s:Label id="imageText" text="{lbl}"  fontSize="20" />
<mx:Image id="img" source="{imgURL}" scaleX="{sclX}" scaleY="{sclY}"/>

to:

<mx:Image id="img" source="{imgURL}" scaleX="{sclX}" scaleY="{sclY}"/>
<s:Label id="imageText" text="{lbl}"  fontSize="20" />

Please dont forget to mark the post as answered

Regards

Anthony
0 Kudos
EricStarn2
New Contributor
Perfect

Thanks again

Eric
0 Kudos
AnthonyGiles
Frequent Contributor II
Eric,

Don't forget to also mark the post as answered by clicking on the tick

Regards

Anthony
0 Kudos