# Input variables to control movie clip

**URL:** <https://forum.kirupa.com/t/input-variables-to-control-movie-clip/151489>\
**Category:** flash\
**Created:** [June 15, 2005, 8:12pm UTC](https://forum.kirupa.com/t/input-variables-to-control-movie-clip/151489 "2005-06-15T20:12:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nom\_de\_Guerre](https://avatars.discourse-cdn.com/v4/letter/n/85f322/32.png) [@Nom\_de\_Guerre](https://forum.kirupa.com/u/Nom_de_Guerre)\
**Post date:** [June 15, 2005, 8:12pm UTC](https://forum.kirupa.com/t/input-variables-to-control-movie-clip/151489/1 "2005-06-15T20:12:20Z")

</div>

Trying to build a piece where a truth table shows how a logic circuit’s output responds to various combinations of inputs, using logic 1 for true and logic 0 for false. User enters a four digit output string and is able to view the gate type that will produce it. (16 possible permutations in this e.g.)  
Here is what I have so far. Any help greatfully appreciated.

Nom de Guerre  
//initialize variables  
var input\_str:String = “”;

var Inner:String="";  
Inner+text1.text;  
Inner+text2.text;  
Inner+text3.text;  
Inner+text4.text;  
//goto MC frame from input  
function operate(){

\_root.results.gotoAndStop.\_Inner;  
}

// enter button  
enter\_btn.onRelease = function() {  
//fill truth table out  
input\_strCharAt1=input\_str.charAt(0);  
input\_strCharAt2=input\_str.charAt(1);  
input\_strCharAt3=input\_str.charAt(2);  
input\_strCharAt4=input\_str.charAt(3);

}
