# Class Question Redux

**URL:** <https://forum.kirupa.com/t/class-question-redux/175130>\
**Category:** flash\
**Created:** [January 11, 2006, 11:01pm UTC](https://forum.kirupa.com/t/class-question-redux/175130 "2006-01-11T23:01:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cki](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@cki](https://forum.kirupa.com/u/cki)\
**Post date:** [January 11, 2006, 11:01pm UTC](https://forum.kirupa.com/t/class-question-redux/175130/1 "2006-01-11T23:01:22Z")

</div>

Hi all,

I’ve taken the Hello class “back to formula”, as my first go ran away from me. I’m unable to call displayMessage(), as a method of Hello, nothing is rendered to screen. What don’t I get?

```auto

/**
A Simple hello class
that assigns a custom
message to a text field
based upon time of day.
**/
class com.bushidodeep.Hello {
        private var width:Number;
        private var height:Number;
        private static var textFieldDepth:Number = 0;
        public static var message:String = "Hello It's Me";
        // Movie clip that will contain visual
        // elements of the hello.
        private var container_mc:MovieClip;
        //
        public function Hello() {
                container_mc = target.createEmptyMovieClip("messageDisplay", 1);
                container_mc.displayGreeting();
        }
        function placeGreeting() {
        }
        function displayGreeting() {
                container_mc.createTextField("messageText", textFieldDepth, 200, 100, 250, 125);
                container_mc.messageText.text = "test";
                container_mc.messageText.border = true;
        }
}

```
