I think you want the eval() function..
for example:
eval("_root.enginemap." + currentSpotlight + ".anotherMovie").play();
d
[quoted text, click to view] bitfactory wrote:
> hey folks...
>
> simple question (i think)...
>
> i have a variable that i'm trying to add to a path, but not sure about the
> syntax...
>
> the line is:
> _root.enginemap.currentSpotlight.anotherMovie
>
> if currentSpotlight above is the variable, how do i get it to register as
> such... Flash obviously thinks there's a movie called "currentSpotlight" - when
> it's really a variable for the name of a movie...
>
> anyone? i've tried "+" and "( )" and now i'm going nuts....
>
> thanks much!
hey folks...
simple question (i think)...
i have a variable that i'm trying to add to a path, but not sure about the
syntax...
the line is:
_root.enginemap.currentSpotlight.anotherMovie
if currentSpotlight above is the variable, how do i get it to register as
such... Flash obviously thinks there's a movie called "currentSpotlight" - when
it's really a variable for the name of a movie...
anyone? i've tried "+" and "( )" and now i'm going nuts....
thanks much!