MX Pro Dynamic Paths
- Started
- Last post
- 2 Responses
- majman
Hi Everybody...
Having some frustrating issues going from MX -> MX 2004. Has anybody else here encountered such a problem:
In MX, this function would work perfectly fine for me:
----active = "one";
my_btn.onRelease = function(){
this["mc_"+active].dosomething...
}----
In MX 2004, it seems like the "this" pointer is treated totally different. Now, the only way I've been able to get such code to work is the following method, which seems silly:
----// where code is in "myMovieClip" //
active = "one";
my_btn.onRelease = function(){
_parent.myMovieClip["mc_"+active...
}
----So, now i'm pointing to the _parent of the movie clip, and then back into it. Might anybody shed some light on this situation? I would really really really appreciate it.
I'm using MX Pro 2004 -> AS 1.0
thanks in advance!
- unfittoprint0
this should be correct:
this._parent["mc_"+active].d osomething();
- majman0
thanks unfit, you're the man