# Movie clip not displaying flash 8

**URL:** <https://forum.kirupa.com/t/movie-clip-not-displaying-flash-8/214496>\
**Category:** Uncategorized\
**Created:** [January 29, 2007, 4:37pm UTC](https://forum.kirupa.com/t/movie-clip-not-displaying-flash-8/214496 "2007-01-29T16:37:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![puthem1st](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@puthem1st](https://forum.kirupa.com/u/puthem1st)\
**Post date:** [January 29, 2007, 4:37pm UTC](https://forum.kirupa.com/t/movie-clip-not-displaying-flash-8/214496/1 "2007-01-29T16:37:40Z")

</div>

Thanks for the reply. It somewhat works now however it will only show 1 of the movie clips at a time. I want it to display both movie clips representing subscripts for the checmical equations. I’m not too sure what I’m doing wrong??

> //Global variables  
> var myChemEq:Array=;  
> var Operator:Array=[“+”];  
> var myalpha:Array=[“H”, “C”, “O”, “CH”];

```
	var minNum:Number=3;
	var maxNum:Number=8;
	var VALUE=Math.ceil(Math.random()*(maxNum-minNum+1))+(minNum-1);
	
	for (var i:Number =0; i&lt; 10; i++) {
		var VALUE2:Number = Math.round((Math.random() * 10)+1);
	}
	var randOp:Number = Math.round(Math.random() * (Operator.length - 1));
	var randAlpha:Number = Math.round(Math.random() * (myalpha.length - 1));
	var tmpequation:String = VALUE.toString() + "" + myalpha[randAlpha] + " " + Operator.toString()+ ""+VALUE2.toString() + "" + myalpha[randAlpha] + " ";
	//Generates the random equation and current equation holds the current equation we are on
	myChemEq.push(tmpequation);
	
	var counter=Math.round(Math.random())
	this.onEnterFrame = function() {

```

if (counter == 0) {  
this.createEmptyMovieClip(“emptyMC”, this.getNextHighestDepth());  
emptyMC.attachMovie(“mc\_2”, “sub2”, emptyMC.getNextHighestDepth(), {\_x:250, \_y:80});  
delete this.onEnterFrame;  
} else if (counter == 1) {  
this.createEmptyMovieClip(“emptyMC”, this.getNextHighestDepth());  
emptyMC.attachMovie(“mc\_3”, “sub3”, emptyMC.getNextHighestDepth(), {\_x:250, \_y:80});  
this.onEnterFrame;

```
}
	};

```

//Next subscript for chemical equation  
var counter2=Math.round(Math.random())  
this.onEnterFrame = function() {  
if (counter2 == 0) {  
this.createEmptyMovieClip(“emptyMC”, this.getNextHighestDepth());  
emptyMC.attachMovie(“mc\_2”, “sub2”, emptyMC.getNextHighestDepth(), {\_x:320, \_y:80});  
delete this.onEnterFrame;  
} else if (counter2 == 1) {  
this.createEmptyMovieClip(“emptyMC”, this.getNextHighestDepth());  
emptyMC.attachMovie(“mc\_3”, “sub3”, emptyMC.getNextHighestDepth(), {\_x:320, \_y:80});  
this.onEnterFrame;  
}  
};  
var currentEq:Number=0;  
this.createTextField(“rand\_txt”,this.getNextHightestDepth(),  
300, 50,150,200);  
rand\_txt.text=“”;  
var setEquation:Function =function(){  
rand\_txt.text=myChemEq[currentEq];  
}  
setEquation();
