Skip navigation
Currently Being Moderated

Flash Sprite Convert #BitmapData Wrong Type Error

Jul 10, 2012 7:28 PM

Tags: #flash #wrong #type #convert #sprite #bitmapdata

When using a flash sprite to convert an image to #BitmapData I get a "Wrong Type" error. Does this only work with specific image types? Any ideas on what might cause this error? The image I am trying to convert is from a bitmap member.

 

ie.

bmp_data = flash_sprite.convert( #BitmapData, member( "some bmp" ).image )

 
Replies
  • Currently Being Moderated
    Jul 10, 2012 8:29 PM   in reply to fazstp

    Try a little error checking:

    im = member("some bmp").image

    put im

    put flash_sprite

    bmp_data = flash_sprite.convert( #BitmapData, im )

    put bmp_data

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points