SWFTextField and SWFFont

"Barry Cordingley" <[email protected]> Thu, 27 Nov 2003 10:46:09 -0500
Newsgroups gmane.comp.web.ming.general
Message-ID <002101c3b4fd$93f9c0d0$8a41500a@SILVERGHOST>
Have several questions, with several answers as well.
 
Anyone know why when you write in the file extension such as .fdb or
.pfm when setting the new SWFFont it causes Apache to crash. 
Example.
 
$LottoText->setFont(new SWFFont("SansSerif_BoldItalic.fdb"));
 
Causes Apache crash.
 
But if you remove the file extension
 
$LottoText->setFont(new SWFFont("SansSerif_BoldItalic"));
 
It's good to go.
 
Which then leads to this question..
You could then in fact only write
 
$LottoText->setFont(new SWFFont(""));
and a default font perhaps a system _sans font is used no fonts even
have to be present in the root folder that the script is on.
 
Loose the double quotes and Apache crash.
 
Never did get "MING LESSONS by Jerry Jasuta 5: Adding text in our
movies!"  To fly either. 
Are those lessons now obsolete?
 
Example: LESSONS by Jerry Jasuta 5: Adding text in our movies!
$myFont=new SWFFont("ParkAvenue_BT.fdb"); 
$myText=new SWFText(); 
$myText->setFont($myFont); 
$myText->setColor(255,255,0); 
$myText->setHeight(40); 
$myText->addString(" My First Flash!");
 
$firstText=$myMovie->add($myText); 
$firstText->moveTo((460/2-($myText->getWidth(" My First
Flash!"))/2)+10,50); 
 
Above does not work for me, the problem is creating this string
 
$myText->setFont($myFont); 
 
But if you remove the variable $myfont and actually stick in and Set
with SWFFont("ParkAvenue_BT.fdb") it works
Example:
 
$myText ->setFont(new SWFFont("ParkAvenue_BT")); and remove the file
extension as mentioned earlier.
 
 
Below is what I have working for me. If anyone can answer my questions
I'd appreciate it.
Questions
1. Anyone know why when you write in the file extension such as .fdb or
.pfm when setting the new SWFFont it causes Apache to crash. 
2. Why if you do not SET any font, as long as you have double quotes, a
default system font is generated even with no fonts in root folder of
script?
3. Are the lessons obsolete.
4 Any new and improved sources of knowledge anywhere that I can access.?
 
$LottoText = new SWFTextField();
$LottoText->setFont(new SWFFont("ParkAvenue BT"));
 
$LottoText->addString($rows["Lotto_Numbers"]);
$LottoText->setHeight(12);
$LottoText->setColor(255,255,255);
$LottoText->setName('LottoNumbers');
 
$lotto_Numbers = $myMovie->add($LottoText);
$lotto_Numbers->moveTo(65, 30);
 
Barry Cordingley

_______________________________________________
ming-fun mailing list
[email protected]
http://www.opaque.net/mailman/listinfo/ming-fun