Return to FunctionReference page

Function

Purpose

  • Sets the SWFMatrix structure associated with a display item.

Parameters

  1. SWF!DisplayItem item - The SWF Display Item to have its matrix set

  2. float a - The new matrix scaleX value to set

  3. float b - The new matrix rotate0 value to set

  4. float c - The new matrix rotate1 value to set

  5. float d - The new matrix scaleY value to set

  6. float x - The new matrix translateX value to set

  7. float y - The new matrix translateY value to set

Returns

  • void - No return value

Language

  • C

Ming version

  • (unknown). At least 0.3.0 and onwards, possibly earlier versions as well.

Notes

  • This function sets all members of the SWF!DisplayItem matrix structure.

  • It looks like the swf specs are not clear about matrix, it has been mentioned (not verified yet though!) that if the matrix is set with the scale values to 0 and rotation not 0 or 180 degree the player doesn't work like expected.
    • As workaround you can set the scaling to a value little more than 0.
  • The rotate0 field expects -sin(<angle>), the rotate1 field sin(<angle>) parameters.

Example

  • None as yet