PDA

View Full Version : conversion problem


DuRanG
09-07-2002, 01:17 AM
well its very simple my question

look at this:
dica0 = "aaaaaa";
dica1 = "bbbbbb";
dica2 = "cccccc";
n = 3;
n2 = random(n);
dica = "dica"+n2;
trace(dica);

basically, i want to transform the content in var dica into an expression(in a movieclip name). its like the opposite of String

DuRanG
09-07-2002, 01:20 AM
the .fla

DuRanG
09-09-2002, 03:24 PM
can someone plz answer it? :(

tg
09-09-2002, 09:35 PM
try:

dica0 = "aaaaaa";
dica1 = "bbbbbb";
dica2 = "cccccc";
n = 3;
n2 = random(n);
dica = this["dica"+n2]; ///this line is changed
trace(dica);


btw: welcome to as[org].

DuRanG
09-10-2002, 06:08 PM
thnk u