[swfmill] [swfmill Problem with swfmill+mtasc+FP8 for fonts]
Eric Priou
erixtekila at gmail.com
Tue Sep 19 15:27:25 EDT 2006
Hi Candide,
Sorry for the late reply, I am vey buzy nowadays.
I'll speak english as the list is in that tongue.
I looked in your files and I saw that you are a bad guy !
You didn't follow the blog post
http://www.v-i-a.net/blog/archives/000043.html "à la lettre".
I saw two problems with you files :
1- gal.xml don't import the font.swf to foolow the shared font example.
You need to :
<library>
<font id="DejaVu" name="DejaVu"
import="/Library/Fonts/DejaVuSans-Bold.ttf" glyphs="This is my text."/>
<import file="shared.swf" url="shared.swf" />
</library>
2- To make your loaded lib working, you need to be sure that it is
loaded first :
class Shell
{
public static function main (root:MovieClip)
{
root.createEmptyMovieClip("myFont", 100);
root.onEnterFrame = function ()
{
if (this.myFont._url != this._url)
{
var myFormat = new TextFormat();
myFormat.font = "DejaVu";
myFormat.size = 50;
myFormat.bold=true;
this.createTextField("myField", 200,
100, 50, 0, 0);
var mf = this.myField;
mf.autoSize = true;
mf.border = true;
mf.text = "This is my text.";
mf.embedFonts = true;
mf.setTextFormat(myFormat);
}
};
root.myFont.loadMovie ("sharedFont.swf");
}
}
Try to follow STRICTLY :) the article.
If that dont work, send me (privatly) your papyrus font.
I don't have it on osx.
6ya.
Le 13 sept. 06, à 15:03, jarzack at lapp.in2p3.fr a écrit :
> Hello,
>
> Thank you for the answer. I have the latest version of swfmill but it
> still do not work with FP8. This is the files I used:
>
> -font.xml to create font.swf which contains the font(I can't send
> font.swf
> because it is too big, but you can make it by putting the font PAPYRUS
> in
> a folder called "library" in the same folder than swfmill)
>
> -gal.xml to create test.swf
>
> -test.as and texte.as to fill test.swf with a text field.
>
> I wrote in english because the mail is sent to the whole mailing list
> but
> you can as well answer in french (I am, I guess you are?)
-----------
Eric Priou
(aka erixtekila)
In progress tech blog : http://blog.v-i-a.net/
Oregano XML Socket forum : http://forum.v-i-a.net/
More information about the swfmill
mailing list