1 Reply Latest reply: Dec 9, 2009 12:43 PM by RTSMikeM RSS

    How to place an image created with DefineBitsJPEG2?

    RTSMikeM

      We are writing software that generates native SWF's in binary.

       

      We define a simple JPEG image using DefineBitsJPEG2.

      When we try to place the character using PlaceObject2 and a simple scaling matrix.

       

      The swf renders completely blank.

       

      My question is:

      Is it possible to place the image directly using PlaceObject2 or do you need to generate a shape first and use the bitmap as a fill style?

      The spec leads me to beleive direct placement should be possible. However I have not seen any examples to prove it.

       

      I've opened the SWF with a decompiler and the image appears to be valid. SWF is not corrupt to my knowledge.

      I've included the generated SWF in question as an attachment.

       

      Thanks for the help!

       

      Mike M.