/ Forside / Teknologi / Multimedie & design / Flash / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Flash
#NavnPoint
bentjuul 4251
molokyle 1978
Klaudi 1488
jhvp 1265
pallenoc 1160
katekismus 1020
Fnollerpi.. 790
slander 510
Dr.Disco 500
10  Flash77 500
dynamic text help
Fra : Joel Colombo


Dato : 14-01-01 21:38

i am loading a variable from a php/text file that i do not know the length
of.

i need my dynamic text box (lets call it "textbox") to be multiline but
resizable
based on the length of the string brought in. is this possible or is there
another
way to make this a possiblility

i can not create the box extra large beacuse new boxes are dynamically
created
under this. therefore, i need to adjust this textbox height each time the
variable
is loaded from the file. and since it is php. different values load each
time.

basically i have a movie clip with a textbox in it. i need to resize that
textbox, which
will in turn resize the clip and i can then get the ._height of the clip to
use in placing
my next copy of the clip under this one.

this basically displays "search results" from a database.
i can input the variables fine. but it only displays the first line of the
desc. part due to
the fact that only one line is set on the actual swf. but the field is set
to multiline wordwrap

please help me with dynamically resizing a text field. Thank You !

Joel Colombo
Graphicon Services




 
 
niktequik (14-01-2001)
Kommentar
Fra : niktequik


Dato : 14-01-01 22:03

You can't resize it as far as I know, but whgat you can do is scroll it by
using the .scroll and .maxscroll value of a variable. It's all in the
Actionscript reference, or else get a tutorial at www.flashkit.com

--
-NT-
www.IchLei.de
"Joel Colombo" <joel@graphicon.nu> schrieb im Newsbeitrag
news:3a620e17$1@news.pcom.net...
> i am loading a variable from a php/text file that i do not know the length
> of.
>
> i need my dynamic text box (lets call it "textbox") to be multiline but
> resizable
> based on the length of the string brought in. is this possible or is there
> another
> way to make this a possiblility
>
> i can not create the box extra large beacuse new boxes are dynamically
> created
> under this. therefore, i need to adjust this textbox height each time the
> variable
> is loaded from the file. and since it is php. different values load each
> time.
>
> basically i have a movie clip with a textbox in it. i need to resize that
> textbox, which
> will in turn resize the clip and i can then get the ._height of the clip
to
> use in placing
> my next copy of the clip under this one.
>
> this basically displays "search results" from a database.
> i can input the variables fine. but it only displays the first line of the
> desc. part due to
> the fact that only one line is set on the actual swf. but the field is set
> to multiline wordwrap
>
> please help me with dynamically resizing a text field. Thank You !
>
> Joel Colombo
> Graphicon Services
>
>
>



Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408926
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste