0
New Here
,
/t5/animate-discussions/problems-with-static-functions/td-p/4714256
Jan 14, 2013
Jan 14, 2013
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,
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Community Expert
,
Jan 14, 2013
Jan 14, 2013
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; | |||
} |
Community Expert
,
LATEST
/t5/animate-discussions/problems-with-static-functions/m-p/4714257#M128021
Jan 14, 2013
Jan 14, 2013
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; | |||
} |
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

