All pastes #484121 Raw Edit

Something

public text v1 · immutable
·published 2007-05-12 01:31 UTC
rendered paste body
/* ----- Start Upload (Batch) ----- */
saveBtn.onRelease = function(){
	upload = new LoadVars();
	for(i = 1; i <= assetCount; i++){
		trace("loop trace: "+["txtAssetBox"+i]);
		if ( interface_mc["txtAssetBox"+i]._name != undefined){
			upload["txtAssetBox"+i] = interface_mc["txtAssetBox"+i]._name;
			upload["userContent"+i] = interface_mc["txtAssetBox"+i].userContent.text;
			//if subID is empty then fill it with text so it can
			//be flagged and processed in PHP.
			if(interface_mc["txtAssetBox"+i].subID.text == ""){
				interface_mc["txtAssetBox"+i].subID.text = "undefined";
			}
			upload["subID"+i] = interface_mc["txtAssetBox"+i].subID.text;
			upload["posX"+i] = interface_mc["txtAssetBox"+i]._x;
			upload["posY"+i] = interface_mc["txtAssetBox"+i]._y;
			trace("^ DEFINED");
		} else {
			trace("^ NOT DEFINED");
		}//end if
	}//end for loop
	upload.sendAndLoad("http://localhost/slightintention/php/process.php", upload,"POST");
	upload.onLoad = function(){
		trace(upload);
	}
}

/* ----- End Upload (Batch) ----- */