Hello,

I am on the brink of going insane from this coding issue I am having:

I am duplicating a movie clip (inside of the movie clip - i.e. image.duplicateMovieClip("image" + i, this.getNextHighestDepth(), init); where image resides within the movie this code is placed on).

On the image movie clip is a bunch of code, including code that loads an image into an imbedded mc within image. In order for this to happen, however, a variable has to get switched from false to true on the image movie clip.

When I trace what this variable is set to from the same movie clip that duplicates the image movie clip before and after the variable is supposed to be switched, it reads false before and true after. However, when I trace the variable from the duplicated movie clip, it always reads false (i.e. it was never set to true even though tracing from it's parent movie clip says it was).

I hope this isn't too confusing...My code looks something like this:

Code:
onClipEvent (enterFrame) {
init = new Object();
for (var item in image) {
	init[item] = image[item];
}
if (this.numVar > 3 && this.isEnabled == false) {
	for (i = 1; i <= 3; i++) {
		this.dupeVar = this.image.duplicateMovieClip("image" + i, this.getNextHighestDepth(), init);
                //trace that shows what variable loadingSequence is set to before it is supposed to be changed - output is false
	        trace(dupeVar + " " + dupeVar.loadingSequence + " " + dupeVar.xDest);
		
	        //code that is supposed to change loadingSequence var from false to true
		dupeVar.loadingSequence = true;
                        
                        //trace that shows what variable loadingSequence is set to after it is supposed to be changed - output is now true
			trace(dupeVar + " " + dupeVar.loadingSequence + " " + dupeVar.Percent);
			
	}
		
}
}
And the code that resides on the movie clip image that is being copied is:

Code:
onClipEvent(load) {
     var loadingSequence = false;
}

onClipEvent(enterFrame) {
     if (this.loadingSequence == true) {
	loadMovie(("BeforeAfter/Kitchen" + this.numVar + "/" + this._parent._name.substr(0, 6) + "/" + "image" + this._name.substr(5) + ".jpg"), this.image);
	}
     //trace that always shows loadingSequence is false
     trace(this.loadingSequence);
}
Any Ideas!?!?!?!?