Flash Q.
Flash Q.
Out of context: Reply #11
- Started
- Last post
- 18 Responses
- connerd0
var mc = this['myMovie'];
mc.goToAndPlay(1);would also work.
your problem is most likely the 'this' issue. it tends to fuck up when used inside functions. i usually use something like this:
thisRef = this;
function playClip(mc) {
thisRef.mc.gotoAndPlay('etc');
}playClip('myMovieClip');
in this case you don't need the square brackets or the eval statement. you only really need them when you're using variables in the name of your stage objects.
(ie:
mov = thisRef['mov_' + i]; )hope that helps a little