Hi all i am having a problem with dynamic array key values i have the following error
TypeError: Error #1007: Instantiation attempted on a non-constructor.
The code above i have is the following
var myInstance:MovieClip = new control();
var code = myInstance.cleft.text;
var control:Array = new Array();
control["cleft"] = "";
control["cright"] = "";
control["cup"] = "";
control["cdown"] = "";
control["cfire"] = "";
control["cjump"] = "";
control["cc"] = "";
var tsl = control["cleft"]=code;
trace("Value from array now is.." + tsl);
What is causing my error above how can i fix that above?
Thanks,William