Skip to main content
Participating Frequently
May 27, 2009
Question

Add TextLayout Component to root stage

  • May 27, 2009
  • 1 reply
  • 846 views

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.

This topic has been closed for replies.

1 reply

Adobe Employee
May 28, 2009

To use TLF with Flash CS4, you need to use the original TLF version that was posted together with the Flash component. The Flash component has not been updated to work with the newer TLF builds. Sorry!