# Actionscript 3.0 tutorial and a textfield creation problem

**URL:** <https://forum.kirupa.com/t/actionscript-3-0-tutorial-and-a-textfield-creation-problem/225859>\
**Category:** flash\
**Created:** [May 16, 2007, 9:13am UTC](https://forum.kirupa.com/t/actionscript-3-0-tutorial-and-a-textfield-creation-problem/225859 "2007-05-16T09:13:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mythic\_Fr0st](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@Mythic\_Fr0st](https://forum.kirupa.com/u/Mythic_Fr0st)\
**Post date:** [May 16, 2007, 9:13am UTC](https://forum.kirupa.com/t/actionscript-3-0-tutorial-and-a-textfield-creation-problem/225859/1 "2007-05-16T09:13:05Z")

</div>

Anyone know a decent AS3 tutorial, I need one

Question 1

Im trying to create a text field on the stage, and put it in a movieclip

normally in AS2 it’d be

```auto
var m:MovieClip = _root.createEmptyMovieClip("yo", _root.getNextHighestDepth()),
var t:TextField = m.createTextField("name", m.getNextHighestDepth(), 0, 0, 100, 30);
t.text = "HELLO";

```

Thats what I wanna do but in “AS3”

I’ve tried this in actionscript 3

```auto
var m:MovieClip = new MovieClip();
var t:TextField = new TextField();
//how do I make it in the movieclip?

t.text = "Hello"; //doesn't show up

function inc()
{
    trace("myfunction");
}

addEventListener("mouseDown", inc);

```

Any idea’s, i’ve got no idea…

Thanks in advance!
