i’ve heard you shouldn’t use eval anymore because it’s deprecated, and that you should use this[object]._property instead, but it’s not working for me–am i doing it wrong? can someone please shed a little light on this for me?
thks,
-mojo
thanks for the replies–what i’m trying to figure out, is there a ‘new’ way of naming instances and setting their properties? i can make it work either by using “object”+i or else ‘eval’, but i’m not sure about using this method:
Both should work. Now eval has been deprecated when it’s used on the left side of and equality, but not in general.
Anyway, as I said, both sintaxes work.
var myName="object"+level;
this.attachMovie("object", myName, level);
this[myName]._x=400;
that’s good to know–eval has always been my pet ‘secret’ method since i found out how to use it–i think a lot of folks have banged their head trying to name an instance that didn’t know about it…
thanks for the exp, pom (-:
-mojo
Creating engaging and entertaining content for designers and developers since 1998.