actionscript 3 - upload image on twitpic using as3 -


how can upload image on twitpic using as3 , flash professorial cs6 , try code below , nothing happened thank's in advance

import flash.net.filereference; import flash.filesystem.file; import flash.filesystem.filemode; import flash.filesystem.filestream; import flash.utils.bytearray;    var urlvars:urlvariables = new urlvariables(); urlvars.username = "xxxx"; urlvars.password = "xxxxx";  var urlrequest:urlrequest = new urlrequest("http://twitpic.com/api/upload"); urlrequest.method = urlrequestmethod.post; urlrequest.data = urlvars;  var file:file = file.desktopdirectory.resolvepath("test.png"); file.upload(urlrequest, 'media'); 


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -