5 Replies Latest reply on Dec 17, 2010 1:55 PM by chriswyl

    spark BitmapImage - update source

    chriswyl

      Hi.

       

      I've problem with update source attribute in <s:BitmapImage />

       

      In my model i use

       

      [Bindable]

      public var  dataModel.sourceBMP:Bitmap;  

       

      my component looks like

      <s:BitmapImage id="img" source={dataModel.sourceBMP}/>


      then next in some controller I rotate -  dataModel.sourceBMP;

      But I don't see result (rotated image).

       

      I try do something like this for testing

      img.source = null;

      img.source = dataModel.sourceBMP

       

      and now I see that dataModel.surceBMP is rotated !!!

       

      When I used mx component  <mx:Image source={dataModel.sourceBMP}/> I had no problem this component source autoupdating self.

       

       

      Maybe there is some property  in spark BitmapImage which i should setup?