why doesn’t this work?! first trace gives the correct coordinate, second one returns “undefined”, please heelp… :puzzle:
function create()
{
createEmptyMovieClip(“holder”, this.getNextHighestDepth());
holder.createEmptyMovieClip(“mc_1”, this.getNextHighestDepth());
trace(holder.mc_1._x);
holder.createEmptyMovieClip(“mc_2”, this.getNextHighestDepth());
trace(holder.mc_1._x);
}
btn.onPress = function()
{
create();
}