# How to create a utils class that I don't have to instantiate?

**URL:** <https://forum.kirupa.com/t/how-to-create-a-utils-class-that-i-dont-have-to-instantiate/305651>\
**Category:** flash\
**Created:** [March 1, 2010, 12:22pm UTC](https://forum.kirupa.com/t/how-to-create-a-utils-class-that-i-dont-have-to-instantiate/305651 "2010-03-01T12:22:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eb\_dev](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@eb\_dev](https://forum.kirupa.com/u/eb_dev)\
**Post date:** [March 1, 2010, 12:22pm UTC](https://forum.kirupa.com/t/how-to-create-a-utils-class-that-i-dont-have-to-instantiate/305651/1 "2010-03-01T12:22:42Z")

</div>

I’m trying to create a simple utils class that I can use the methods of but not instantiate:

```auto

package com.ukfast.utils
{
	import flash.display.DisplayObject;
	
	public dynamic class Arrange
	{	
		
		/* //////////////////////////////////////////// */
		/* ////// Define Private Variables /////// */
		/* //////////////////////////////////////////// */
		
		private static var instance:Arrange;
		
		/* //////////////////////////////////////////// */
		/* ////// Define Public Functions /////// */
		/* //////////////////////////////////////////// */		
		
		public function Arrange()
		{}
		public function center(object:DisplayObject)
		{
			object.x = (object.stage.stageWidth / 2) - (object.width / 2);
			object.y = (object.stage.stageHeight / 2) - (object.height / 2);	
		}		
	}
}

```

Ideally I would import the class then call the center function like this: Arrange.center(object);

Is this possible?

Thanks,

eb\_dev
