# Class issues

**URL:** <https://forum.kirupa.com/t/class-issues/216134>\
**Category:** flash\
**Created:** [February 14, 2007, 12:19am UTC](https://forum.kirupa.com/t/class-issues/216134 "2007-02-14T00:19:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingofnukes](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@kingofnukes](https://forum.kirupa.com/u/kingofnukes)\
**Post date:** [February 14, 2007, 12:19am UTC](https://forum.kirupa.com/t/class-issues/216134/1 "2007-02-14T00:19:29Z")

</div>

Hi, I’ve just started using classes to program my flash game/apps and I’ve already began running into problems. I made a code similar to this in a flash game bfore, but cannot get it to work properly with my class I’m writing. What am i doing wrong?

[AS]  
class Human extends MovieClip {  
//Variables  
//\_Spawn Points  
private var SpawnX:Number;  
private var SpawnY:Number;  
//\_Movement  
private var arrowTimer:Number;  
private var arrowUp:Boolean;  
private var Walking:Boolean;  
private var Dashing:Boolean;  
//End Vars  
//////////////////////////  
//Constructor  
function Human() {  
SpawnX = \_x;  
SpawnY = \_y;  
}  
//onEnterFrame  
private function onEnterFrame():Void {  
//Arrow Timer  
arrowTimer++;  
if (Key.isDown(Key.LEFT)) {  
if (arrowUp == false) {  
if (arrowTimer\<12) {  
Walking = false;  
Dashing = true;  
} else {  
Walking = true;  
Dashing = false;  
}  
arrowUp = false;  
arrowTimer = 0;  
}  
} else {  
}  
arrowUp = true;  
Dashing = false;  
Walking = false;  
}  
/////////////////////////////////////////////////////////////////  
}

[/AS]
