File upload returns ioError #2038

I’m getting an error when uploading…

openHandler: [Event type=“open” bubbles=false cancelable=false eventPhase=2]

progressHandler: name=test.txt bytesLoaded=657 bytesTotal=657

openHandler: [Event type=“open” bubbles=false cancelable=false eventPhase=2]

ioErrorHandler: [IOErrorEvent type=“ioError” bubbles=false cancelable=false eventPhase=2 text=“Error #2038”]

my uploading.php file should be fine (tested with a htmlform).

anyone know what could be wrong?

my test code:

package {
    import flash.display.* ;
    import flash.events.*;
    import flash.net.FileReference;
    import flash.net.URLRequest;
	import flash.text.TextField;
	import flash.system.Security;
    import flash.system.SecurityPanel;
	import flash.net.URLRequestMethod;
	import flash.net.FileFilter;
	
    public class UploadClass extends Sprite  {
        private var uploadURL:URLRequest;
        private var file:FileReference;
	private const _strUploadDomain:String = "";
        private const _strUploadScript:String = _strUploadDomain + "uploading.php";

        public function UploadClass() {
			
            uploadURL = new URLRequest();
            uploadURL.url = _strUploadScript;
			uploadURL.method = URLRequestMethod.POST;
			
            file = new FileReference();
            file.addEventListener(Event.SELECT, selectHandler);
            file.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
            file.addEventListener(ProgressEvent.PROGRESS, progressHandler);
            file.addEventListener(Event.COMPLETE, completeHandler);
			file.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
			file.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
			file.addEventListener(Event.OPEN, openHandler);
			var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
			var textTypes:FileFilter = new FileFilter("Text Files (*.txt, *.rtf)", "*.txt; *.rtf");
			var allTypes:Array = new Array(imageTypes, textTypes);
			
            file.browse(allTypes);
        }

        private function selectHandler(event:Event):void {
            var file:FileReference = FileReference(event.target);
			
            trace("selectHandler: name=" + file.name + " URL=" + uploadURL.url);
			dt1.text = "selectHandler: name=" + file.name + " URL=" + uploadURL.url;
            file.upload(uploadURL);
        }

		
		
		private function httpStatusHandler(event:HTTPStatusEvent):void {
			dt5.text = "httpStatusHandler: " + event;
            trace("httpStatusHandler: " + event);
        }
		
		private function openHandler(event:Event):void {
			dt6.text = "openHandler: " + event;
            trace("openHandler: " + event);
        }

        private function securityErrorHandler(event:SecurityErrorEvent):void {
			dt7.text = "securityErrorHandler: " + event;
            trace("securityErrorHandler: " + event);
        }


        private function ioErrorHandler(event:IOErrorEvent):void {
			dt2.text = "ioErrorHandler: " + event;
            trace("ioErrorHandler: " + event);
        }

        private function progressHandler(event:ProgressEvent):void {
            var file:FileReference = FileReference(event.target);
			dt3.text = "progressHandler: name=" + file.name + " bytesLoaded=" + event.bytesLoaded + " bytesTotal=" + event.bytesTotal;
            trace("progressHandler: name=" + file.name + " bytesLoaded=" + event.bytesLoaded + " bytesTotal=" + event.bytesTotal);
        }

        private function completeHandler(event:Event):void {
			dt4.text = "completeHandler: " + event;
            trace("completeHandler: " + event);
        }
    }
}

had the same problem, and a headache about 5 hours, then hit me to search on google after error code and got here.
thank you, seems to work from windows now, from a Mac works with or without that htaccess file.