class HallMenus extends egret . Bitmap { public constructor ( name , x , y , w , h ) { super ( RES . getRes ( name ) ) ; this . x = x ; this . y = y ; this . width = w ; this . height = h ; this . name = name + x + "_" + y ; } }