Skip to main content
JohnHonayi
Participant
August 5, 2009
Question

Flash 2 jpg runtime

  • August 5, 2009
  • 1 reply
  • 601 views

Hi experts,

               I need your help. I m making a T-shirt design application in Flash.I made all the drag and drop stuff and now i need to knw is how can i xport the design my customers made?Like in ma application users can drag n drop designs on their T-shrit,change its colour and all when when he press a button say "Print"...the swf shud generate a jpg of that design(that the user made) and send it to a php file(that estimates its rate and all) and saves another copy in my domain(like www.mycompany.com/shirts_made/).

How can i do that?? Please help! URGENT!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 5, 2009

you can use the jpegencoder class and server-side script.  use google to search.

JohnHonayi
Participant
August 6, 2009

once i compile it...do i need to upload the class file too into my server? And i got how to make download option in flash by searchin in google.But i need to save the image into my server! how will i do that?

i found it the flash thing
http://henryjones.us/articles/using-the-as3-jpeg-encoder

but the pHP does is it asks to download...but i want it to save it in my server only(like name.com/arts/ ).how can i do that?

say a folder in my server called "Arts"(www.something.com/arts ) I want the php to save those pics in that folder only.
got this one too...but aint understandin anything! i donno where to put the code!
http://blog.joa-ebert.com/2006/05/01/save-bytearray-to-file-with-php/

please help!

kglad
Community Expert
Community Expert
August 6, 2009

no, class files don't need to be uploaded to your server.

use google to search for php save file.  there's plenty of sample code and help for this.  you'll be using fopen() and fwrite().