# Class Constants Type

**URL:** https://forum.kirupa.com/t/class-constants-type/235873
**Category:** flash
**Created:** [August 15, 2007, 1:52pm UTC](https://forum.kirupa.com/t/class-constants-type/235873 "2007-08-15T13:52:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mathew\_er](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mathew\_er](https://forum.kirupa.com/u/mathew_er)
#### Post date: [August 15, 2007, 1:52pm UTC](https://forum.kirupa.com/t/class-constants-type/235873/1 "2007-08-15T13:52:06Z")

</div>

Hi,

I’m just being curious…

Everywhere in AS3 those constants used are string values. E.g.

```auto
StageScaleMode.NO_SCALE : String = "noScale"

```

What I’ve seen when I worked with JAVA for a while, those things would be rather instances of the StageScaleMode whereas the class would look like

```auto

// somethig something

public static const NO_SCALE : StageScaleMode = new StageScaleMode ( 'noScale' )

public function StageScaleMode ( type : String )
{
    this.type = type;
}

public var type : String;

```

Is there any reason for this apart from the possibility to set the value by yourself as stage.scaleMode = “noScale”; ?
