movieclip var
- Started
- Last post
- 5 Responses
- ethios
How can I assign variable as you do with dynamic text fields (var), to a movieclip so that I can minipulate it in AS?
I thought it was as straight forward as it is with dynamic text fields, but it seems I was wrong, if you understand what the hell I am talking about, please help!
Regards,
Tom
- tGP0
_root.createEmptyMovieClip("myCl... 1);
the above creates a movieclip with the instance name of myClipVarName, with a depth of 1...
- ethios0
thanks!
- emmaopeel0
are you trying to access a mc via a variable name? If so, you need to use (is it called?) array access notation...
as in:
myClip = "loop_mc"
_root[myClip].gotoAndStop(2)
which will go into the movie clip "loop_mc" on the main timeline and stop at frame 2...
- ethios0
no, im trying to assign a identifier or something (not sure exactly what its called!) to a movie clip so i can do something like
_root.namething._width = whatever;
- tGP0
its called an instance name...