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

Problems with static functions

New Here ,
Jan 14, 2013 Jan 14, 2013

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
345
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

correct answers 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;
}
Translate
Community Expert ,
Jan 14, 2013 Jan 14, 2013
LATEST

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;
}
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