Question
Add TextLayout Component to root stage
Hi Guys,
do you know why this code doesn't work? The code is in the main timeline, first fotogramme. I have TextLayout in my library.
import fl.controls.*;
var tt:TextLayout = new TextLayout();
this.addChild(tt);
tt.x = 0;
tt.y = 0;
tt.width = 200;
tt.height = 200;
Get this error:
ReferenceError: Error #1065: Variable TextLayout is not defined.
ReferenceError: Error #1065: Variable ComponentShim is not defined.
