Flash actionscript 3.0: click event in actionscript 3.0

click event in actionscript 3.0

Posted by Sankar.G | Posted in | Posted on 9:40 AM

if you want to do a click event in Action script 3.0 is different from 2.0 because you can able to write scripting to an object in 2.0 but you cant able to write a script to an object in 3.0 so we want to add a Listener in 3.0 code is follows

code:b1_btn.addEventListener(MouseEvent.CLICK,fun);
function fun(e:Event)
{
t1_txt.text="checking";
}

b1_btn = name of a button

Comments (0)