0 Replies Latest reply on Mar 24, 2010 8:14 PM by jerryhamby

    FM-300 still alive

    jerryhamby

      FM-300 is not fixed. Even though the refactored names have changed,

      the results are even worse than it was before.

      Tested on Sprint 10, Flash Builder 4.

       

      IMAGE1: w=300  h=240

      IMAGE2: w=671  h=335

      IMAGE3: w=269  h=376

       

      The element:

      pSerialElement=new SerialElement;

      pSerialElement.addChild(new DurationElement(3, new ImageElement(new URLResource(IMAGE1), new ImageLoader() )));

      pSerialElement.addChild(new DurationElement(3, new ImageElement(new URLResource(IMAGE2), new ImageLoader() )));

      pSerialElement.addChild(new DurationElement(3, new ImageElement(new URLResource(IMAGE3), new ImageLoader() )));

      pPlayer.addEventListener(DisplayObjectEvent.MEDIA_SIZE_CHANGE, mMediaSizeChange2);

       

      My trace results:

      =======  ??? =============

      mMediaSizeChange2 evt.currentTarget.state =playing

      mMediaSizeChange2 evt.currentTarget.media = [object SerialElement]

      mMediaSizeChange2 evt.currentTarget.mediaWidth= NaN

      mMediaSizeChange2 evt.currentTarget.mediaHeight= NaN

       

      ====== Image 1 =========

      mMediaSizeChange2 evt.currentTarget.state =playing

      mMediaSizeChange2 evt.currentTarget.media = [object SerialElement]

      mMediaSizeChange2 evt.currentTarget.mediaWidth= 300

      mMediaSizeChange2 evt.currentTarget.mediaHeight= 240

      System.totalMemory = 49704

      mMediaSizeChange2 evt.currentTarget.state =playing

      mMediaSizeChange2 evt.currentTarget.media = [object SerialElement]

      mMediaSizeChange2 evt.currentTarget.mediaWidth= 300

      mMediaSizeChange2 evt.currentTarget.mediaHeight= 240

      System.totalMemory = 50760

       

       

      ====== Image 2 =========

      mMediaSizeChange2 evt.currentTarget.state =playing

      mMediaSizeChange2 evt.currentTarget.media = [object SerialElement]

      mMediaSizeChange2 evt.currentTarget.mediaWidth= 671

      mMediaSizeChange2 evt.currentTarget.mediaHeight= 335

      System.totalMemory = 50760

      mMediaSizeChange2 evt.currentTarget.state =playing

      mMediaSizeChange2 evt.currentTarget.media = [object SerialElement]

      mMediaSizeChange2 evt.currentTarget.mediaWidth= 671

      mMediaSizeChange2 evt.currentTarget.mediaHeight= 335

      System.totalMemory = 51928

       

      ====== Image 3 =========

      mMediaSizeChange2 evt.currentTarget.state =playing

      mMediaSizeChange2 evt.currentTarget.media = [object SerialElement]

      mMediaSizeChange2 evt.currentTarget.mediaWidth= 269

      mMediaSizeChange2 evt.currentTarget.mediaHeight= 376

      System.totalMemory = 52400

      NOTE: DOES NOT FIRE TWICE ON THE LAST ITEM

       

       

      Even my workaround code fires twice:

      if (evt.currentTarget.mediaWidth > 0 && evt.currentTarget.mediaHeight > 0){

      }