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; | |||
| } |
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more