Skip to main content
Participating Frequently
December 2, 2010
Question

TLF in pure AS3 project?? Big swc woes...

  • December 2, 2010
  • 1 reply
  • 1150 views

I'm trying to find any info on using TLF text in a pure AS project (using FDT), but quickly finding myself getting confused by it all.

My normal workflow when laying out text is to

- use Flash Pro to lay my text out within a MovieClip,

- set that MovieClip for export in the library,

- publish a swc,

- add that swc to my classpath in FDT so I can add the it to the stage etc.

Now.. I get the way that if you're using Flash Pro to compile, you end up with the 160kb swz file which is only downloaded by the user if it's not been cached already on their machine. All very clever.

But... the moment I stick a TLF textfield into a MovieClip and publish a SWC, that SWC is 406kb (which is added to my project when I include the movieclip with the TLF TextField).

Why so big??? Why is it so much bigger than the 160k that the swz file is??

Even if I had to embed the TLF framework within my swf I could just about swallow the 160k hit, but 406k is a LOT.

Am I missing something?

This topic has been closed for replies.

1 reply

AntifuzzAuthor
Participating Frequently
December 7, 2010

Okay well I was missing something after all.... I realised that compiling from FDT in Debug mode was causing the big file size. My swf is 578k in Debug mode, whereas if I use Run mode it's only 291k which I can live with.

December 9, 2010

Yea the TLF is the guts of 150K, so if your embedding it into your swf, it's going to be atleast that.

Can you link it externally?