# Score not displaying?

**URL:** <https://forum.kirupa.com/t/score-not-displaying/326833>\
**Category:** flash\
**Created:** [January 15, 2012, 4:41pm UTC](https://forum.kirupa.com/t/score-not-displaying/326833 "2012-01-15T16:41:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Macca26](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Macca26](https://forum.kirupa.com/u/Macca26)\
**Post date:** [January 15, 2012, 4:41pm UTC](https://forum.kirupa.com/t/score-not-displaying/326833/1 "2012-01-15T16:41:44Z")

</div>

Hi again guys,

Sorry to post another thread. I’m followings tutorials on displaying/updating score etc. But for some reason my scores and lives are not displaying? My score textfield is “\_score” and my lives textfield is “\_lives”. Code is as follows:

```
public class Main extends MovieClip
{
    //Declare properties
    public var score:uint;
    public var lives:uint;
    public var _ball:ball;
    public const GRAVITY:Number = 2;
    public const BOUNCE_FACTOR:Number = 0.8;
    public const HIT_FORCE:Number = 20;
    private var _vx:Number;
    private var _vy:Number;
    
    
    public function Main()
    {
        init();

    }

    private function init():void
    {
        //initialise properties
        score = 0;
        lives = 5;
        
        //update score/lives
        _score.text = score.toString();
        _lives.text = lives.toString();

```

…

Any suggestions?

Cheers,
