Trouble loading data into dynamic box

Evening Guys,

I’ve created a piece of code that will send some info off to be inserted into a database and then it’s recordID will be returned to flash.

I’m trying to put the returned id into a dynamic text field but for some reason it’s not going.

I was wondering if someone could have alook at my code and let me know if I’m doing something wrong. The recordID is being returned to Flash as it’s appearing in the trace.


				insertInfo = new Array();
				insert = new LoadVars();
				insert.validate = "check";
				insert.userID = _global.UserID;
				insertInfo[0] = [interface_mc["AssetBox"+i].subID.text,_global.projID,interface_mc["AssetBox"+i].userContent.text,interface_mc["AssetBox"+i].contentType.text,interface_mc["AssetBox"+i]._x,interface_mc["AssetBox"+i]._y];
				insert.insertInfo = insertInfo[0];
				insert.sendAndLoad("http://localhost/php/insertData.php", insert,"POST");
				insert.onLoad = function()
				{
					interface_mc["AssetBox"+i].subID.text = insert.subID;
					trace("Insert Status: "+insert.feedback);
					trace("Sub: "+insert.subID);
				}