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:

$film = new SWFMovie();
$film -> setDimension (300,300);
$film -> setBackground (100,100,100);
$film -> setRate (15);


// 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;

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


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

<link rel="stylesheet" href=""></head>
<div id="naarrechts">
<embed src="" width=300 height=300 type="application/x-shockwave-flash">
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
Ming-users mailing list

[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