views:

128

answers:

3

Hi folks,

I need to make a simple flash program (exported as a swf to be displayed in a webbrowser) that allows a user to manipulate an existing image but then SAVE this manipulated image to a webserver.

Can the client side flash program generate the new image OR does it need to send back all the changes to the web server, which will then generate the new image (based on those changes, via a POST) on the server side?

cheers :)

A: 

Look at flash remoting. It's probably easier to just end the entire image back.

I've used http://www.fluorinefx.com/ in the past.

DaRKoN_
so are u saying that flash cannot do this? i needs to be done on the server-side?
Pure.Krome
Flash is client side technology. If you want to save the image back to the server you are going to have to negotiate with the server somehow. As far as I understand it anyway
DaRKoN_
yeah dude. that i know. But that's not the question. read grapefrukt's reply.
Pure.Krome
+2  A: 

You can do this just fine, Flash has all the bitmap manipulation functions needed for a simple image editing applications. Sending the image back is a matter of a simple post to the server. You might need to compress it first, since sending the raw data will get too big pretty fast.

grapefrukt
Good to hear about the POST - i wanted to do that. So you are saying that i can generate a _new_ bitmap image on the client side and then post this byte[] to the server? As opposed to sending back the changes and having the server generate the new bitmap? any links or examples showing this?
Pure.Krome
Here is an article/guide that might help: http://labs.findsubstance.com/2008/04/03/as3-upload-encode-images/
Raynet
perfect :) it also highlighted some key ways to do this so when i googled some more, i got more results. perfect :) cheers!
Pure.Krome
A: 

the answer is

yes you can

Scott Evernden
Scott, what does photoshop have to do with client side flash?
Pure.Krome
I guess you didn't look at the link i gave .. it's a complete photo-editing application built out of flash
Scott Evernden
i did but i thought it was an ad-site for photoshop, showing off photoshop (for people to buy it).
Pure.Krome
yeah i understand that .. but if you do the 'Test Drive' you will see a rather full-featured flash-based image processing application... and i have monitored traffic while its running and can fairly confidently state it does everything client-side
Scott Evernden