Hi,
I am pretty new to AS 2 and I got a fundamental problem with the usage of variables between " "
I code AS 2 in Flash CS4
Basically I want to build a function witch creates a new MC in _root
so this is the way it works:
MC_create("fore1_btn_mc");
function MC_create(MCname){
_root.layer ++;
_root.createEmptyMovieClip(MCname,layer);
trace("new layer number :"+this.layer);
trace("new layer name :" +this.MCname);
}
but i need it to be like that :
MC_create(fore1_btn_mc);
so I tried several stuff like :
function MC_create(MCname){
_root.layer ++;
this._parent.createEmptyMovieClip(String(MCname),layer);
trace("new layer number :"+this.layer);
trace("new layer name :" +this.String(MCname));
}
bassicly I want to know how to do thing s like this
var_nme -> function(""+var_nme+"")
so make it “var_nme”
I hope you know now where my problem is
thx for your time