wonderfl - build flash online

Invalid BitmapData?

I run this in FlashDevelop and it gives an error and tells me Invalid BitmapData.
And seemingly in wonderfl it only shows one sprite.
Any explanation?

GreekFellows GreekFellows..

    • forked:0
    • favorite:0
    • lines:86
    • license : MIT License
    • modified : 2012-07-05 22:42:04

add to favorites

Embed

Code Fullscreen

Talk

target2Rect.width and target2Rect.height are 0, so the BitmapData constructor throws an Invalid BitmapData error.

  • by yonatan
  • at 2012/07/06 06:14:31

oh god thank you!
i got the solution.
thank you very much.
:)

but still, how can i fix it?
how can i let the width and height not be 0?

Tags

sectKeywords

ページの先頭へ戻る