swftools-common
[Top][All Lists]
Advanced

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

Re: [Swftools-common] font2swf and MTASC


From: Matthias Kramm
Subject: Re: [Swftools-common] font2swf and MTASC
Date: Tue, 12 Jul 2005 19:00:10 +0200
User-agent: Mutt/1.5.6i

On Mon, Jul 11, 2005 at 07:04:16PM +0200, S├ębastien Pierre wrote:
> So far, here is what I did:
> - compile my `.as' files to `code.swf`
> - convert my font `font.ttf' to `font.swf'
> - swfcombine -z -o applet.swf code.swf font=font.swf
> 
> But swfcombine says "WARNING Didn't find anything named font in file.  
> No substitutions will occur."...
> 
> So my question is : what should I do to be able to use the converted  
> font with ActionScript text field `font' property ?

swfcombine only can substitute MovieClips in files, not low-level
entities like Fonts or Images.
What might work in your case, though, would be doing the combine with
swfc, with something like the following:

# applet.sc
.flash version=6 filename="applet.swf"
    .swf code "code.swf"
    .font font "font.ttf"
.end

(alternatively you could also write the ActionScript into swfc itself,
 using something like
     # applet.sc
     .flash version=6 filename="applet.swf"
         .action:
           ...
         .end
         .font font "font.ttf"
     .end
 I don't know MTASC though, so not sure which tool has the better
 ActionScript parser)

Greetings

Matthias






reply via email to

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