swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] exporting fonts for actionscript


From: Chris Flowers
Subject: Re: [Swftools-common] exporting fonts for actionscript
Date: Tue, 22 Mar 2005 17:48:03 -0500

> Is there a way to export a font for actionscript using swfc?

If I do this:

.flash filename="text.swf" bbox=300x200 version=6 background=white

 .font arial "Arial.ttf"

 .frame 1
 .text text1 font=arial size=18pt color=black text="This is Arial-Normal 18
Point"
 .put text1 y=48 x=12

 .frame 2
 .action: stop(); .end

.end

The dump output is this:

[HEADER]        File version: 6
[HEADER]        File is zlib compressed. Ratio: 63%
[HEADER]        File size: 128824 (Depacked)
[HEADER]        Frame rate: 30.000000
[HEADER]        Frame count: 2
[HEADER]        Movie width: 300.00
[HEADER]        Movie height: 200.00
[309]         3 REFLEX
[009]         3 SETBACKGROUNDCOLOR (ff/ff/ff)
[030]    128637 DEFINEFONT2 defines id 0001
[02b]         1 FRAMELABEL ""
[021]        93 DEFINETEXT2 defines id 0002
[028]         8 NAMECHARACTER adds information to id 0002 "text1"
[038]        10 EXPORTASSETS
                exports 0002 as "text1"
[01a]        15 PLACEOBJECT2 places id 0002 at depth 0001 name "text1"
[001]         0 SHOWFRAME 1 (00:00:00,000) (label "")
[00c]         2 DOACTION
[001]         0 SHOWFRAME 2 (00:00:00,033)
[000]         0 END

Does that help you?
Chris





reply via email to

[Prev in Thread] Current Thread [Next in Thread]