Using a custom alphabet for translator.


i need creating cipher translator. have scrambled version of english alphabet want use. have 2 text fields set on stage, 1 on top 1 on bottom. when typing on top text field want bottom type along side user output using ciphered alphabet have. example if user types "apple" in top field bottom outputs "effra" typing along side user in real time. tried using string.replace(); command, i'm not sure how implement array of strings results want. appreciated.

 

thanks in advance.

use change listener top textfield , in listener function:

 

var ciphers:string = "";

for(var i:int=0;i<top_tf.text.length;i++){

ciphers += cipherf(top_tf.text.substr(i,1));

}

bottom_tf.text=ciphers



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Thread: gpg: Conflicting Commands

Adobe Acrobat Pro , Terminal Server Use

when i try using AE CC 3d camera tracker after the first step it says "Analysis solve failed." help?