Skip to main content
Participant
November 19, 2008
Question

Upload picture from database, transform picture in FLash

  • November 19, 2008
  • 4 replies
  • 1039 views
Hi, all.
I just want to do a test: I made an swf file that is to be embedded in an html web page. Inside swf I want a picture to be upload from database ( for customized purpose ), say ASP, or XML. And new picture will replace that old one inside swf. Further more, e.g. I upload just a picture that is a piece of tile. When it appears in swf, it should be tiled 5 by 5 and transformed for perspective. Is that possible with AS? if yes, could anyone offer help? And how to write interface code -- ASP or xml communicates with FLASH, to upload picture from database? Thanks.

-percy
This topic has been closed for replies.

4 replies

kglad
Community Expert
Community Expert
November 25, 2008
you're welcome.
kglad
Community Expert
Community Expert
November 22, 2008
percy_xueAuthor
Participant
November 25, 2008
Really helpful. Thank you very much, Kglad.

-percy
kglad
Community Expert
Community Expert
November 20, 2008
probably but i'm not sure what you're trying to do. you can certainly tile the uploaded and then loaded image into a 5x5 grid. this is easy.

and you can distort that grid in various ways including ways that make it appear the 5x5 flat sheet is rotating in three dimensions. this is not so easy but can be done using someone else's code.
percy_xueAuthor
Participant
November 22, 2008
Kglad, your reply is in time. Much appreciates.
You're right, I want a 5x5 tiled image, then like prespective transformed in Photoshop, which can also be consider of 5x5 grid rotated a specific angle in three dimension. You mentioned "someone else's code", may I get a link? Thank you very much.

-percy
kglad
Community Expert
Community Expert
November 20, 2008
it's possible with flash 8+ and server-side code, but this is not a good project for a novice coder.

check the filereference class to see how to upload a file to your server using flash, and then load that file into your swf.
percy_xueAuthor
Participant
November 20, 2008
Thanks, Kglad. Your answer helped me a lot.
Is it possible for Flash actionscript to tile 5-up an uploaded image then make transformations to represent perspective?

-percy