how can i convert this code into as3.0
its applied on the movieclip with name of em1
onClipEvent (load)
{
nu = 1;
}
on (rollOver)
{
if (_root.ln != nu)
{
this.gotoAndPlay(“s1”);
} // end if
}
on (releaseOutside, rollOut)
{
if (_root.ln != nu)
{
this.gotoAndPlay(“s2”);
} // end if
}
on (release)
{
if (_root.ln != nu && _root.animation == 1)
{
_root.animation = 0;
_parent[“em” + _root.ln].gotoAndPlay(“s2”);
_root.ln = nu;
_parent.play();
} // end if
}