orange gold
06-30-2009, 11:16 AM
well... lets say i have a variable called rop5 (rotation positive 5)
rop5 = _rotation += +5
then i want to say object1.rop5
well obviously this will never work... my just for kicks challenge is to find a similar way to make the following code work!
vas1 = "_" //vas = variable action script... but thats not important :)
vas2 = "r"
vas3 = "o"
vas4 = "t"
vas5 = "a"
vas6 = "i"
vas7 = "n"
vas8 = vas1 + vas2 + vas3 + vas4 + vas5 + vas4 + vas6 + vas3 + vas7
vas9 = "object1." + vas8 + " += +5"
trace(vas9)
_root.onEnterFrame = function() {
vas9
}
HAVE FUN!
rop5 = _rotation += +5
then i want to say object1.rop5
well obviously this will never work... my just for kicks challenge is to find a similar way to make the following code work!
vas1 = "_" //vas = variable action script... but thats not important :)
vas2 = "r"
vas3 = "o"
vas4 = "t"
vas5 = "a"
vas6 = "i"
vas7 = "n"
vas8 = vas1 + vas2 + vas3 + vas4 + vas5 + vas4 + vas6 + vas3 + vas7
vas9 = "object1." + vas8 + " += +5"
trace(vas9)
_root.onEnterFrame = function() {
vas9
}
HAVE FUN!