2

Using Flash develop I need to create a TLFTextField in an AIR AS3 project, but where do I find the swc to import?

I have imported textLayout.swc from the the flex sdk, but I get the error:

Error: Type was not found or was not a compile-time constant: TLFTextField.
grapefrukt
  • 27,016
  • 6
  • 49
  • 73
davivid
  • 5,910
  • 11
  • 42
  • 71
  • It's hard to say without seeing any code. Do you have the proper import statements in your class? – grapefrukt Nov 17 '11 at 16:31
  • Nope I definitely don't have the correct import statements as TLFTextField is not part of textLayout.swc, so I think I must need to add another SWC to the library? – davivid Nov 17 '11 at 16:36

2 Answers2

1

TLFTextField is bundled in tlfruntime.swc. As far as I know, that's only bundled with Flash, not the Flex SDK.

James Tomasino
  • 3,520
  • 1
  • 20
  • 38
  • Yeah that's the only place I could find the TLFTextField Class, Looking at the AS3 examples for the Text layout Framework - I can see they don't use TLFTextField, instead a variety confusing sounding different classes! – davivid Nov 18 '11 at 10:01