Select to view content in your preferred language

AttributeInspector Skin not found

935
2
01-11-2011 05:10 AM
AdamConner
Deactivated User
I am creating an AttributeInspector, and putting it inside a BorderContainer in actionscript, then setting the infowindow.content to the BorderContainer.  It keeps failing saying the attributeinspector skin is not found.  I have it in my project at com.esri.ags.skins but It keeps failing.  I am not sure what I am doing wrong, but any help is appreciated.

var bc:BorderContainer = new BorderContainer();
var ai:AttributeInspector = new AttributeInspector();    
bc.addElement(ai);
parentApplication.map.infoWindow.content = bc;
Tags (2)
0 Kudos
2 Replies
kishanchintala
Deactivated User
Hi,
I am  also facing same problem, while creating in mxml no problem, but when creating in actionscrip code, then getting errors.
any idea about this problem.

Thanks in advance.
0 Kudos
kishanchintala
Deactivated User
Hi,

I found Some workaround for this problem, you add AttributeInspector in MXML then after add FeatureLayrs  in ActionScript.

<esri:Map id="map1">
<esri:infoWindowContent>
<esri:BorderContainer id="bdr">
<esri:AttributeInspector id="ats">
</esri:AttributeInspector>
</esri:BorderContainer>
</esri:infoWindowContent>
</esri:Map>

below is the actionscript code

map1.infoWindowContent.ats.featureLayers = [myFeatureLayer]

this is what working for me.
0 Kudos