OMFG!!!!!!
im finaly taking everybodys advice and converting to AS3, but I always get the error:
1037: Packages cannot be nested
At the end I copied the code directly into my flash and i got the same error -.-
AS3, on main timeline:
package
{
import flash.display.Sprite;
import flash.text.TextField;
public class Starter_1 extends Sprite
{
private var tField:TextField;
public function Starter_1 ()
{
myTest();
}
private function myTest():void
{
tField = new TextField();
tField.autoSize = "left";
tField.background = true;
tField.border = true;
tField.x = 20;
tField.y = 75;
tField.text = "Hello, world";
addChild(tField);
}
}
}