actionscript question
actionscript question
Out of context: Reply #1
- Started
- Last post
- 3 Responses
- enjine0
you had a space between Bitmap and Data. You don't even need to strong type it in the constructor.
also, you have to import the BitmapData class before you declare the BlurObject class, like so:
import flash.display.BitmapData;
class BlurObject {
private var blur_bmp:BitmapData;public function BlurObject () {
this.blur_bmp = new BitmapData(100, 100, true, 0);
}
}depending on what you want to do with it (i'm really not sure how yr planning on setting this up), you may also need to extend this BlurObject class from the MovieClip class.
at any rate, the code above does not throw any errors in the compiler.