Ming Users


create.Textfield ; textarea not

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


Hi Mingusers,
I've got a problem with some code. I want to load a variable from a text file and all goes well. But the weird thing is that the style settings in 'new Textformat' is notting formatting at all, exept in 'text = 'backup gedaan ...' So the text from the variable is not set by Textformat, but instead just an ordinary font type and size. Probably a sort of default setting in flash.
Do you know how i can solve this?


Here is my code:


<?php
Ming_setScale(20.0000000);
ming_useswfversion(6);
$film = new SWFMovie();
$film -> setDimension (300,300);
$film -> setBackground (100,100,100);
$film -> setRate (15);


$strAction="

// maak tekstveld
createTextField ('mijntekst',2,20,20,200,100);
with (mijntekst) {
multiline = true;
wordwrap = true;
border = true;
text = 'Backup gedaan...';
type = 'dynamic';
}

// opmaak tekstveld
tekstformaat = new Textformat();
tekstformaat.color = 0x006600 ;
tekstformaat.size = 12;
tekstformaat.font = 'babelsansb.fdb';
tekstformaat.bold = true;
mijntekst.setTextFormat(tekstformaat);


myData = new LoadVars();
myData.Load ('mijnvaria.txt');
myData. {
mijntekst.text = this.mijnVariabele;
};




";

$film->add(new SWFAction($strAction));
$film -> save ("kalenderbewaard.swf",9);
?>

<html>
<head>
<link rel="stylesheet" href=""></head>
<body>
<div id="naarrechts">
<embed src="" width=300 height=300 type="application/x-shockwave-flash">
</div>
</body>
</html>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ming-users mailing list
Ming-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ming-users

[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Camping]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux