|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi there.
I want to assign a variable value to a movieclip name and then work with this movieclip (the movieclips are named on the stage). Does anyone have any idea how I might be able to do this. The code below is my work in progress - it doesn't work using the variable name to call the movieclip but when I statically call the movieclip by it's name it works fine. Please note: the code below is just an example // I have a movie clip on the stage named mc1 // I assign a variable the name of the movieclip var mymc = "mc1" //this doesn't work; mymc._x= 200; //this does work; mc1._x= 200; |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
"mcl" is a string - not a movieclip.
try var mymc = mc1; without the quotes |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
thanks a lot. I thought I'd I'd tried the no quotes option, it worked this time so maybe not.
Thanks again, Tony Mead |
|
![]() |
| Outils de la discussion | |
|
|