Converting AS2 to AS3
Hi All, I have a project which requires me to convert all the AS2 code to AS3. I have finished most of it except the function below.
Could anyone help me out expecially on converting the createTextField("marker_"+id+"_txt",this.getNextHighestDepth(),obj._x,obj._y,0,4); ?
Thanks!
function createMarker(obj:MovieClip,lbl:String):Void
{
this.createTextField("marker_"+id+"_txt",this.getNextHighestDepth(),obj._x,obj._y,0,4);
this["marker_"+id+"_txt"].type = "dynamic";
this["marker_"+id+"_txt"].html = true;
this["marker_"+id+"_txt"].autoSize = "center";
this["marker_"+id+"_txt"].multiline = false;
this["marker_"+id+"_txt"].wordWrap = false;
this["marker_"+id+"_txt"].embedFonts = true;
this["marker_"+id+"_txt"].selectable = false;
this["marker_"+id+"_txt"].antiAliasType = "advanced";
this["marker_"+id+"_txt"].gridFitType = "subpixel";
this["marker_"+id+"_txt"].sharpness = 200;
this["marker_"+id+"_txt"].styleSheet = markerStyle;
this["marker_"+id+"_txt"].htmlText = "<p>"+lbl+".</p>";
obj.swapDepths(this["marker_"+id+"_txt"]);
this["marker_"+id+"_txt"]._x = (obj._x + obj._width/2) - (this["marker_"+id+"_txt"]._width/4);
this["marker_"+id+"_txt"]._y = (obj._y + obj._height/2) - (this["marker_"+id+"_txt"]._height/4);
++id;
}