Select to view content in your preferred language

Can you embed a SWF into a Graphic?

339
0
04-10-2012 03:54 PM
RebeccaDanczyk
New Contributor
I am trying to display a SWF in a graphic tooltip, but can't figure out how to get the SWF to work. I'd like to figure out how to stick it into attributes, if possible. I've tried picturemarkersymbol and a few other things, but to no avail.

<esri:Map width="460" height="460" x="10" openHandCursorVisible="false">
 <esri:extent>
  <esri:Extent xmin="-9987272" ymin="5594099" xmax="-9972214" ymax="5599469">
   <esri:SpatialReference wkid="102100"/>
  </esri:Extent> 
 </esri:extent>
 <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
  <esri:Graphic toolTip="Field 2">
   <esri:geometry>
    <esri:Polygon spatialReference="{new SpatialReference(102100)}">
     <fx:Array>
      <fx:Array>
       <esri:MapPoint x="-9974236" y="5603595"/>
       <esri:MapPoint x="-9975316" y="5603595"/>
       <esri:MapPoint x="-9975316" y="5603189"/>
       <esri:MapPoint x="-9974236" y="5603189"/>
      </fx:Array>
     </fx:Array>
    </esri:Polygon>
   </esri:geometry>
   <esri:symbol>
    <esri:SimpleFillSymbol alpha="0.7" color="0x009933"/>
   </esri:symbol>
  </esri:Graphic>
 </esri:GraphicsLayer>
 <esri:GraphicsLayer symbol="{infoSymbol1}">
  <esri:Graphic>
   <esri:geometry>
    <esri:MapPoint x="-9975316" y="5603595"/>
   </esri:geometry>
   <esri:attributes>
    <fx:Object>
     <fx:myImageURL>sample.jpg</fx:myImageURL>
     <fx:myTitle>Field 2</fx:myTitle>
    </fx:Object>
   </esri:attributes>
  </esri:Graphic>
 </esri:GraphicsLayer>
</esri:Map>
<s:SWFLoader source="content/WausauWeather.swf" x="160" y="400"/>


EDIT: Just figured it out. I had forgotten to declare it in my DataRenderer.
Tags (2)
0 Kudos
0 Replies