views:

7

answers:

0

Hey all,

I've been following this tutorial to make a snapshot app using Flash Builder 4: http://active.tutsplus.com/tutorials/actionscript/create-a-snappy-snapshot-app-with-flash-builder-4/

My code works on all browsers, except for Safari (4 and 5). I think that it, depending on the picture I take, doesn't finish the request.

I've tried using an HTTPService, an URLRequest and a FileReference, all have the same result. This is what I'm using right now:

    var handleService:HTTPService = new HTTPService();
    handleService.url = "http://myurl.com/imageuploader/handlesnap.php";
    handleService.method = "POST";
    handleService.useProxy = false;
    handleService.showBusyCursor = true;
    handleService.addEventListener(ResultEvent.RESULT, handleResult);
    handleService.addEventListener(FaultEvent.FAULT, handleFault);
    handleService.send({content: encodedData});

Hope you have any answers,

Jordy