Flash actionscript 3.0: you can able to change the text in to lower case,upper case etc using Actionscript 3.0

you can able to change the text in to lower case,upper case etc using Actionscript 3.0

Posted by Sankar.G | Posted in | Posted on 12:29 AM

you can easily change the text in to lower case & upper case and find the length of a string in AS3.0 and you can find the desired word in which area

AS 3.0
Code:

b1_btn.addEventListener(MouseEvent.CLICK,fun);
b2_btn.addEventListener(MouseEvent.CLICK,fun1);
b3_btn.addEventListener(MouseEvent.CLICK,fun2);
b4_btn.addEventListener(MouseEvent.CLICK,fun3);
function fun(e:Event)
{
t1_txt.text=t1_txt.text.toUpperCase();
}
function fun1(e1:Event)
{
t1_txt.text=t1_txt.text.toLowerCase();
}
function fun2(e2:Event)
{
t2_txt.text=Number(t1_txt.text.length).toString();
}
function fun3(e3:Event)
{
t2_txt.text=Number(t1_txt.text.indexOf(t2_txt.text)).toString();
}

this is the code to became a text in to lower case,upper case and to find the length of a string and to find the index of the string using Action Script 3.0

Comments (0)