embedding fonts using Swfmill and MTASC

View: New views
3 Messages — Rating Filter:   Alert me  

embedding fonts using Swfmill and MTASC

by gs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Can anybody help me embedding fonts using Swfmill and MTASC? It's really driving me crazy. It seems like swfmill is working fine (output file 164kb) but MTASC doesn't update the swf but rather replace it (output file 4kb). Any idea?



XML:
--------------------------

<?xml version="1.0" encoding="iso-8859-1" ?>

    <movie width="320" height="240" framerate="12">
        <frame>

            <library>
                <font id="Arial" name="Arial" import="/Library/Fonts/Arial.ttf"/>
            </library>
           
           
         </frame>
    </movie>

--------------------------



ActionScript:
--------------------------

class ani extends MovieClip {
        function ani() {

var textf=new TextFormat("Arial", 10);
     textf.color=0xff0000;
     _root.createEmptyMovieClip("textmc", _root.getNextHighestDepth());
     _root["textmc"].createTextField("text",_root.getNextHighestDepth(),5,40,100,100);
     _root["textmc"]["text"].text = "TEST";
     _root["textmc"]["text"].setTextFormat(textf);
     _root["textmc"]["text"].embedFonts = true;
     _root["textmc"]["text"]._alpha=50;
        }

        // entry point
        static function main(mc) {
                _root.myani = new ani();
        }

}

--------------------------



MacOS Shell:
--------------------------

/Applications/swfmill-0.2.12-macosx/swfmill simple /FLASH/swfmill.xml /FLASH/font.swf
/Applications/mtasc/mtasc -swf /FLASH/font.swf -version 8 -main -header 800:600:25 /FLASH/source.as

--------------------------




      __________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com

--
MTASC : no more coffee break while compiling

Re: embedding fonts using Swfmill and MTASC

by bomberstudios :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> /Applications/mtasc/mtasc -swf /FLASH/font.swf -version 8 -main -header 800:600:25 /FLASH/source.as

Remove the '-header 800:600:25' bit, as that's telling MTASC to create
the SWF file from scratch.

--
Ale Muñoz
http://sofanaranja.com
http://bomberstudios.com

--
MTASC : no more coffee break while compiling

Re: embedding fonts using Swfmill and MTASC

by gs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, it works! Thanx a lot!

> Remove the '-header 800:600:25' bit, as that's
> telling MTASC to create
> the SWF file from scratch.



      __________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com

--
MTASC : no more coffee break while compiling