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
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
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!