var Next_Button = new FlxSprite (0, 0, "assets/gfx/ui/Next.png");
var Previous_Button = new FlxSprite (0, 0, "assets/gfx/ui/Previous.png");
var ArrayList = new Array<IFlxUIWidget>();
ArrayList[0] = new FlxSprite (0, 0, "assets/image/u0.png");
ArrayList[1] = new FlxSprite (0, 0, "assets/image/u1.png");
ArrayList[2] = new FlxSprite (0, 0, "assets/image/u2.png");
ArrayList[3] = new FlxSprite (0, 0, "assets/image/u3.png");
ArrayList[4] = new FlxSprite (0, 0, "assets/image/u4.png");
ArrayList[5] = new FlxSprite (0, 0, "assets/image/u5.png");
var List = new FlxUIList (0,0,
ArrayList, FlxG.width, 100, "", FlxUIList.STACK_HORIZONTAL, 10, null, null, new FlxUISpriteButton (0,0, Previous_Button, null), new FlxUISpriteButton (0,0, Next_Button , null));
add(List);