jasonoda
November 21st, 2005, 04:52 AM
sorry for the conry title
i am old school actionscripter who really liked using my eval(a+b)=10 style of scripting. apparently in flash 6 they did away with letting you do this for some reason. i learned the new way to do things which is like this:
sc=1
this["_root.e"+sc]=7
trace(this["_root.e"+sc])
but what annoys me is if i say this
trace(_root.e1)
i still get undefined and not "7"
is there a way that i can get the value of "e1" without having to write: trace(this["_root.e"+sc])
another example:
if i say:
sc=1
this["_root.e"+sc]=7
addit+=_root.e1
trace(addit)
addit just stays at 0
instead i have to say addit+=this["_root.e"+sc]
i think this is kind of dumb. one used to be able to do this back in the flash 5 days with eval. is there any other way to do this?
jason oda
starvingeyes.com
i am old school actionscripter who really liked using my eval(a+b)=10 style of scripting. apparently in flash 6 they did away with letting you do this for some reason. i learned the new way to do things which is like this:
sc=1
this["_root.e"+sc]=7
trace(this["_root.e"+sc])
but what annoys me is if i say this
trace(_root.e1)
i still get undefined and not "7"
is there a way that i can get the value of "e1" without having to write: trace(this["_root.e"+sc])
another example:
if i say:
sc=1
this["_root.e"+sc]=7
addit+=_root.e1
trace(addit)
addit just stays at 0
instead i have to say addit+=this["_root.e"+sc]
i think this is kind of dumb. one used to be able to do this back in the flash 5 days with eval. is there any other way to do this?
jason oda
starvingeyes.com