Created
May 12, 2009 01:52
-
-
Save dchelimsky/110266 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import flash.utils.ByteArray; | |
import ru.inspirit.net.MultipartURLLoader; | |
var byteArray:ByteArray = new ByteArray(); | |
byteArray.position = 0; | |
var ml:MultipartURLLoader = new MultipartURLLoader(); | |
ml.addEventListener(Event.COMPLETE, onReady); | |
function onReady(e:Event):void | |
{ | |
// Upload Complete | |
} | |
ml.addFile(byteArray, 'foo.bmp', 'photo[photo]'); | |
ml.load('http://myposturl.com/some/path'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment