Groups | Blog | Home
all groups > flash actionscript > december 2004 >

flash actionscript : PROBLEM CONCATENATE A VARIABLE to my left side of assigment



theco
12/31/2004 2:46:07 PM
Hi
y have a counter and I tying to concatenate my counter var this is my code

_root.attachLetter_mv.myletter_mv+_root.counterLetra.myletter_txt.text =
_root.letra;
this code generate an error the "left side of the what ever have to be a
somthing" the point is it doesnt work

I try to use the eval but this dont do nothing

eval(_root.attachLetter_mv.myletter_mv+_root.counterLetra).myletter_txt.text
= _root.letra;

just want to aply my variable to my textbox inside of an atach movie with
myletter_txt.text text box

theco
12/31/2004 3:40:22 PM
forget about this I already resolve this
instead of
[quoted text, click to view]

Byron Canfield
1/22/2005 3:46:06 PM
[quoted text, click to view]
eval("_root.attachLetter_mv.myletter_mv"+_root.counterLetra).myletter_txt.te
xt
[quoted text, click to view]

Just in case you had not yet discovered it, that really should have been:

_root.attachLetter_mv["myletter_mv"+_root.counterLetra].myletter_txt.text =
_root.letra;


--
--------
Reality will not be altered to comply with preconceived notions.

Byron "Barn" Canfield

AddThis Social Bookmark Button