Component variable to allow access to a frame
Hello
Trying to create an password to access a frame.
I have an Animate component with an instance name of "TextInput_cmpnt".
I also have a custom submit button with an instance name of "submit_btn".
The following code is in the Actions layer:
_this.submit_btn.on('click', function(){
_this.myVar = "Name";
function checkPassword(){
if(TextInput_cmpnt.myVar="Paul" ){
_this.gotoAndPlay(4);
}else{
_this.gotoAndPlay(3);
}
}
checkPassword();
});
Any ideas on what. am doing wrong here will be much appreciated.
