Variable holds property?

Hi! (-:

Here’s some code:

var Val = alpha;
_mc.Val = somenumber;

So (it’s hard to explain and mine english isn’t good so excuse me please) in the variable “Val” i want to store not the value of “alpha” or “x”, “y” etc. but the name of the property itself (alpha, x, y etc.) and to use it on objects (MovieClips) like the example above. Is this possible?

I think all you need is this:


var d = "alpha"

test[d] = .5;

http://murmadillo.tut.su/fla/tween_event.swf
http://murmadillo.tut.su/fla/tween_event.zip

johnfn 10q verry much! That helped me a lot!