Laurent CUCHET schrieb:
1) I create dynamic textfield with while option
I try to create dynamic border and content without success
/
var dtd;
var spa;
var spa1;
var dt = 0;
while (dt<=99) {
dtd = "var"+dt;
spa = dt*5;
spa1 = (dt*15)+45;
_root.crea
Dunno why I copy pasted 2 times!
The only changes were in the three lines where I replaced dtd with
_root[dtd]
You could use _root. dtd as well.
Of course you will have to optimize the code.
var dtd;
var spa;
var spa1;
var _txt:TextField;
var dt = 0;
while (dt<=99) {
dtd = "var"+dt;
spa
29
To: Flashcoders mailing list
Subject: [Flashcoders] >> While and Var
Good morning,
1) I create dynamic textfield with while option
I try to create dynamic border and content without success
Have you got a tips to done it
Thank you
/
var dtd;
var spa;
var spa
var dtd;
var spa;
var spa1;
var dt = 0;
while (dt<=99) {
dtd = "var"+dt;
spa = dt*5;
spa1 = (dt*15)+45;
_root.createTextField(dtd, dt, 0, spa1, 100, 15);
_root[dtd].text=spa1;
_root[dtd].border=true;
_root[dtd].selectable=false;
dt++;
}
note: var dtd;
var spa;
var spa1;
var
createTextField() returns refference to textfield object only since flash 8
2006/3/21, Arul Prasad <[EMAIL PROTECTED]>:
>
> var dtd;
> var spa;
> var spa1;
> var dt = 0;
> while (dt<=99) {
>dtd = "var"+dt;
>spa = dt*5;
>spa1 = (dt*15)+45;
>_root.createTextField(dtd, dt, 0, spa1, 10
Good morning,
1) I create dynamic textfield with while option
I try to create dynamic border and content without success
Have you got a tips to done it
Thank you
/
var dtd;
var spa;
var spa1;
var dt = 0;
while (dt<=99) {
dtd = "var"+dt;
spa = dt*5;
6 matches
Mail list logo