2 Replies Latest reply on Jul 19, 2007 1:54 PM by Newsgroup_User

    Import PNG on runtime

    Level 7
      Hi

      I need to import some images on runtime
      It is done though
      tmpMember.importFileInto (cFile,[#trimWhiteSpaceFALSE,
      #remapImageToStageFALSE])

      Than a part of image is copies to another member

      tileMember.image = tmpMember.image.crop(tileRect)

      In Authoring mode everything works OK

      But in runtime I have problem with png-files (jpgs are loaded OK)

      When PNG file is imported second line of code produces an error "Image
      expected"

      When I Put the image value to message window, it gives me <image:0>

      How can I check the image is not loaded correct?

      Ilk (tmpMember.image) returns #image, so it is not void

      But tmpMember.image can not be accressed- so i can not check width or hight
      of this - it always produces error - how can I intercept this error?



      Thanx for any help,

      Yurij