ming text....

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CptDondo

    #1

    ming text....

    I am trying to do something that should be simple, but it is giving me
    headaches...

    I am thing to create a text 'dashboard' in a flash movie for an
    industrial interface. Nothing fancy, just a few lines of text.

    I've not worked with flash/ming before, so I'm feeling my way through
    this...

    I have this:

    $f = new SWFFont("/lib/flashfonts/Techno.fdb");
    $t = new SWFText();
    $t->setFont($f);
    $t->moveTo(0, 0);
    $t->setColor(0xf f, 0xff, 0xff);
    $t->setHeight(140) ;
    $t->addString("loa ding")

    and later

    $text = $m->add($t);
    $text->moveTo(2450,20 0);

    where $m is my movie instance.

    Now what I want to do is to change the text every time I loop through
    the generation. The main loop iterates every few seconds, so I need
    something like this:

    delete text in $t
    add new text in $t
    display updated $t

    For the life of me I cannot figure out how to do that....

    Even adding something like
    $m->remove($text )

    results in a blank html document....


    Could someone please shed some light on this? Or point me in the
    direction of a text turorial for ming morons?

    Thanks,

    --Yan
Working...