swftools-common
[Top][All Lists]
Advanced

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

Re: [Swftools-common] edittext


From: Matthias Kramm
Subject: Re: [Swftools-common] edittext
Date: Sun, 13 Nov 2005 18:01:42 +0100
User-agent: Mutt/1.5.6i

On Thu, Nov 10, 2005 at 06:45:26PM +0000, Pedro Jorge Caridade wrote:
> .edittext debugtext text="0 fs" font=Alberta size=50% readonly
> variable="_root.displayNumber" width=100 height=200 border color=blue
> 
> to display the frame number along my animation. 
> 
> The first question is that my text is too near the top of the box, and
> became cut. Is it possible to specify a margin for this?

Hm, that's a property of the font. If the font's metrics
say it has this and that margin, characters above that value will be 
cut. 
If changing or correcting the font is out of question, a workaround
might be to add "multiline" to the .edittext parameters and add a 
newline in front of the number.

> The second is that, together with my variable _root.displayNumber I
> would like to add two letters "fs". Can this be done? Or need I to put
> them in another text box?

I haven't tested it, but what should work is putting a .sprite around
the .edittext, and then using ActionScript to set the desired text:

    .sprite frameNoSprite
        .edittext debugtext text="0 fs" font=Alberta size=50% readonly
                  variable="mytext" width=100 height=200 border color=blue
        .frame 1
        .action:
            mytext = "\n" + _root.displayNumber + " fs";
        .end
    .end

Greetings

Matthias







reply via email to

[Prev in Thread] Current Thread [Next in Thread]