Legends not showing in Internet Explorer 8

2433
12
Jump to solution
04-09-2012 07:06 AM
ionarawilson1
Occasional Contributor III
I have a Flex Application that works great in Internet Explorer 9 and Firefox. However with Internet Explorer it does not show the colors for the legends, just the values. Do you guys could give me any ideas  what I need to change in my code so that IE 8 shows the legend colors? You can see on the image attached that the colors show correctly on the map but the legend does not show the colors for each values.
I am attaching the mxml and the html and the print screen. Many thanks!!![ATTACH=CONFIG]13340[/ATTACH]
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: ionara_wilson

I found a solution! I went to the flash player security settings and added the folder I had the data and the problem was solved. So I think the legend problem appeared just because the website has not been published on the web yet. I hope it helps anybody with the same problem.

View solution in original post

0 Kudos
12 Replies
by Anonymous User
Not applicable
Original User: ionara_wilson

Do you guys have any idea about solutions or reasons causing this problem with Internet Explorer?
0 Kudos
YungKaiChin
Occasional Contributor
(A shot in the dark)

Have you tried enabling compatibility view on IE8?
0 Kudos
by Anonymous User
Not applicable
Original User: ionara_wilson

How do I do that?
0 Kudos
YungKaiChin
Occasional Contributor
There is a button in your browser window next to the address bar.
I don't know if it is going to help or not since I have not had chance playing with the dynamic legend.

Btw, you can read the in-depth info from MS here.
http://blogs.msdn.com/b/ie/archive/2008/08/27/introducing-compatibility-view.aspx
0 Kudos
by Anonymous User
Not applicable
Original User: ionara_wilson

I tried that but it did not work. Now another website I created is also having issues in Internet Explorer and not firing the creationcomplete event. I uninstalled ie 9 and installed ie 8 and I dont see the problem in my computer so I am guessing there might be an issue with the settings in the IE 8 in the other computer. Here is an article that is helping me:

http://support.microsoft.com/kb/308260
0 Kudos
ionarawilson1
Occasional Contributor III
But thank  you YungKai for your interest in helping me. I will keep you posted if I find a solution!
0 Kudos
ionarawilson1
Occasional Contributor III
It seems that the problem is not only in IE 8 but in all browsers that are not on my machine.

When I debug I get a warning:


warning: unable to bind to property 'value' on class 'Object' (class is not an IEventDispatcher)


So I am guessing the problem is that the legend cannot find the binding expressions myURL.selectedItem.value that is inside the dynamic layer's url property, which changes according to the selected item in the combobox called my URL. It seems that the problem might be that I need to bind that variable, however I might have to use an Object Proxy .  I tried to do that but it did not work. Here is my code snippet that is not working:

[Bindable] public var myURLvalue:ObjectProxy = new ObjectProxy(measures);
   [Bindable] public var myURLObject:Object = myURL.selectedItem;
   [Bindable]  public var value:String = myURLObject.value

Any ideas?
0 Kudos
by Anonymous User
Not applicable
Original User: ibespalov

Ionara,

here we talked about  bindable attributes. (with links and samples)
    * About data binding (adobe)

here we discuss about legend (with links and samples)

forum search is here
0 Kudos
ionarawilson1
Occasional Contributor III
Thank you for the links Ivan, but I already tried to bind the myURL.selectedItem.value and it did not work. How can I make the legend to be updated with the changes in the dynamic layer's url?

  <esri:ArcGISDynamicMapServiceLayer id="dynamicLayer" name=" "
                 url = "http://tfs-24279/ArcGIS/rest/services/RADIO_BUTTONS/{myURL.selectedItem.value}/MapServer"
                 alpha="1"
                 load="loadLayerName()"
0 Kudos