Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

1180: Call to a possibly undefined method Bitmap. But I've imported the right stuff, help?

New Here ,
Oct 15, 2015 Oct 15, 2015

Explanation:


Right so, I've been having this problem for a while now. I can't declare any variable without getting problems like these, so I can't get my work done.

Help would be GREATLY appreciated.


Errors:

1180: Call to a possibly undefined method Bitmap.

1180: Call to a possibly undefined method Bitmap.

Code:

package {

  import flash.display.MovieClip;

  import flash.text.TextField;

  import flash.events.MouseEvent;

  import flash.display.BitmapData

  import flash.display.DisplayObject

  public class MineAssign extends MovieClip {//class

  var mapBack= new Bitmap(Map);

  public function MineAssign(){//constructor

    addChild(mapBack);

  }

  }//end of class

}//end of package

TOPICS
ActionScript
249
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2015 Oct 15, 2015
LATEST

you didn't import the bitmap class (and Map is undefined).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines