As2 code to As3 conversion please
Hey, could someone help me converting the following code to AS3. Thanks for any help..
id=_root.id;
if(this._y<>_root.txk){
this._y=_root.txk;
_root.txk+=60;
}
this._x=_root.txx;
textyazı="";
onEnterFrame=function(){
this._name=namet.text;
if(_root.txk==360){
_root.txx+=60;
_root.txk=60;
}
this.onPress=function(){
if(_root["t"+namet.text].txtn.text<>namet.text){
_root.attachMovie("txt_dd","t"+namet.text,_root.derinlik);
_root["t"+namet.text]._x=100;
_root["t"+namet.text]._y=100;
_root["t"+namet.text].txtyname.text=namet.text;
_root["t"+namet.text].txtn.text=namet.text;
_root["t"+namet.text].txtyazılar.text=textyazı;
_root.derinlik++;
}
}
}
///////////////
txtac = SharedObject.getLocal(id);
setInterval(function(){
if(txtac.data.namet<>"" && txtac.data.id>0){
namet.text=txtac.data.namet;
textyazı=txtac.data.textyazı;
id=txtac.data.id;
}else{
namet.text=_name;
}
if(namet.text=="undefined"){
namet.text=_name;
}
if(textyazı==undefined){
textyazı="";
}
},50);
this.useHandCursor=false;