Re: name a text field, preloader

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

 



strk wrote:
> var percent:Number<-- unsupported syntax, replace with:
> var percent = 0;
>
> --strk;
>
>   Free GIS&  Flash consultant/developer      ()  ASCII Ribbon Campaign
>   http://foo.keybit.net/~strk/services.html  /\  Keep it simple!
i am a bit confused, where will ming place my textfield?
i am trying to fill it with the following as: _root.textfeld.text = 
22222222;
combined withe the following php $displayTextField->setName("textfeld");
but i get now text.

when i use the following php the field is filled correctly:
$t->addString("222222");

here is my whole script :
<?php
$m = new SWFMovie();
$m->setDimension(640,480);
$m->setBackground(222, 0, 0);
$m->setRate(12.0);
ming_useswfversion(7);


$t = new SWFTextField();

$t->setFont(new SWFFont("_sans"));
$t->setColor(111,111,111);
$lowercase="abcdefghijklmnopqrstuvwxyz";
$uppercase="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
$numbers="1234567890";
$charsToAdd="$lowercase$uppercase$numbers";
$t->setHeight(220);
$t->addChars($charsToAdd);
//$t->addString("22222");
//$t->setName("textfeld");

$displayTextField = $m->add($t);
$displayTextField->setName("textfeld");

//test as for filling the field
$preLoaderAs = "
stop();
_root.textfeld.text = 22222222;
";

$m->add(new SWFAction($preLoaderAs));

$m->nextFrame();
$swf = new SWFPrebuiltClip(fopen("draw_chaos_line_001.swf", "rb"));
$m->add($swf);

$fileName = basename(__FILE__,".php");
echo round($m->save("$filename.swf",9)/1024)." Kb";
?>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Ming-users mailing list
Ming-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ming-users

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux