gg.onPress = function(){
duplicateMovieClip(this, "g_mc", this.getNextHighestDepth());
g_mc.dragEasing();
trace(g_mc); //level0.g_mc
}
gg.onRelease = gg.onReleaseOutside = function(){
trace(g_mc); //level0.g_mc
removeMovieClip(g_mc);
}
It works if MovieClip gg is in _root.
But if I put gg in another MovieClip gg1 for example it doesn’t work!
gg1.gg.onPress = function(){
duplicateMovieClip(this, "g_mc", this.getNextHighestDepth());
g_mc.dragEasing();
trace(g_mc); //undefined
}
gg1.gg.onRelease = gg1.gg.onReleaseOutside = function(){
trace(g_mc); //undefined
removeMovieClip(g_mc);
}