Copy link to clipboard
Copied
Hello everybody, how are you?
Here I am again with a question about static functions. I'm building a class called "Photo Loader", its purpose is to pass a url and a MovieClip with "PhotoLoader.loadPhoto." This method should return a bitmap that will be added in movieclips. I'm not able to construct a method that let me independent of the Loader object. Has anyone experienced this?
Regards,
you want loadPhoto to be a static getter?
public static function set loadPhoto(_bmp:Bitmap):void{ | |||
bmp=_bmp | |||
} | |||
public static function get loadPhoto():Bitmap{ | |||
return bmp; | |||
} |
Copy link to clipboard
Copied
you want loadPhoto to be a static getter?
public static function set loadPhoto(_bmp:Bitmap):void{ | |||
bmp=_bmp | |||
} | |||
public static function get loadPhoto():Bitmap{ | |||
return bmp; | |||
} |
Find more inspiration, events, and resources on the new Adobe Community
Explore Now