CHANGED:applied the resize implementation at Main.as;