List Info

Thread: Problem with swfmill+mtasc+FP8 for fonts




Problem with swfmill+mtasc+FP8 for fonts
user name
2006-09-08 10:24:01
 Hello swfmill people!

 I have a problem with embeded fonts in FP8 (only in FP8!); 
Maybe you
would agree to have
 a look at this problem, it is very simple and rapid to
understand (but
maybe not to solve?)

  I create the file "font.swf" with the
following xml:


  <?xml version="1.0"
encoding="iso-8859-1" ?>
  <movie width="320" height="240"
framerate="12">
    <background color="#ffffff"/>
    <frame>
      <font id="papyrus"
import="library/PAPYRUS.TTF"
  <glyphs="0123456789"/>
    </frame>
  </movie>


  and I create another swf file "gal.swf" where
I want to use the font
  in "font.swf", whit the xml:


  <?xml version="1.0"
encoding="iso-8859-1" ?>
  <movie width="2800"
height="2000" framerate="60">
    <background color="#ffffff"/>
    <frame>
      <import file="font.swf"
url="font.swf"/>
  </frame>
  </movie>


  Then I re-compile the file "gal.swf" with
mtasc (without ant "header"
  parameter, for sure) and the following actionscript code:


 _level0.createTextField("essai",0,0,0,100,20)
        _level0.essai.text="blablabla"

        _level0.essai.embedFonts=true
        var my_fmt:TextFormat = new TextFormat();
        my_fmt.font = "papyrus";
  my_fmt.size=20;
  _level0.essai.setTextFormat(my_fmt);

  This works when I compile for FP 6 or 7 (mtasc parameter
-version) but
  not for FP8...
 However, compiling the last actionscript code directly in
the file
  "font.swf" works even with FP8. But I don't
want to include the font in
 every swf file I use...I could load the file
"font.swf" with actionscript
 in "gal.swf" without embeding to font but doing
this I can't use the
 "advanced"
 anti-aliasing mode for the text.. Have you a solution to
this problem??




 I also tried the exact example shown in
 http:/
/www.v-i-a.net/blog/archives/000043.html and it didn't
worked.
 In this example, I just changed the police, and I also
tried to replace

 root.myFont.loadMovie ("sharedFont.swf")

 by

 root.myFont.loadMovie ("shared.swf")

 because it seems that there is an error in the original .as
file.

 Does somebody knows this problem, and have an answer?

  Candide Jarczak







_______________________________________________
swfmill mailing list
swfmillosflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org
Problem with swfmill+mtasc+FP8 for fonts
user name
2006-09-11 22:14:32
Hi,

Sorry for the late answer.
But what is the swfmill version that you use ?
Be sure to use the last prerelease located at
  http:
//swfmill.org/pre/swfmill-0.2.11.18.tar.gz
  ht
tp://swfmill.org/pre/swfmill-0.2.11.18-win32.zip

The example posted on (my) blog works with swf8.
I use it know.
So it might be a swf tag issue.
Send me an example of your font.swf.

HTH
-----------
Eric Priou
(aka erixtekila)
In progress tech blog : http://blog.v-i-a.net/
Oregano XML Socket forum : http://forum.v-i-a.net/


_______________________________________________
swfmill mailing list
swfmillosflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )