■ 文字列をコードに変換するには

onClipEvent(keyUp){
str = _root.src.text;
_root.result1.text = str.toUpperCase();
_root.result2.text = str.toLowerCase();
}