ActionScript 2.0 :: PHP Image Upload With Flash Editing?
Dec 15, 2009
I have been asked to create a photo canvas website that allows users to upload an image, then apply several effects such as re-sizing/cropping/desaturate, then viewing the updated image on a generic wall and going to check out to buy the canvas.Similar site that has the features i want is this : http:[url]....
I am pretty new to web developing/designing, i am confident with html,css and actionscript to an extent, but have only used small parts of php before.how to go between html > php >flash >back to html again.From what i understand i need to create the following functions:
1. Create a general html website which will store the upload form and flash photo editor swf on, when the user first access's the site i start the php session...
2. The user then uploads there image to the server using a simple php upload form which will store the file and create a unique named file also on the server...
3. The flash editor swf will then load up on the html page. Inside the actionscript of the swf i will tell flash to continue with the php session by calling it again and call users image on the server with the 'file reference' command. The editing functions such as cropping, canvas size will all have variables to mark what the user has chosen and these varaibles will get ent back to the html page using php to keep track of them for the checkout process...
4. Once the editing has finished the user will click 'finish' in the swf taking them to the php shopping basket/checkout which will call the variables sent in flash to determine final cost depending on what effects chosen.
Is the above correct and more importantly is it possible? The main part i am struggling to get my head around is editing in flash (say changing the uploaded image to 20 x 26) and then saving this back to the server and sending the new settings back into the html/php page.Is this all possible without using database and tables such as MySql?
EDIT: Reworked my code a bit and decided to throw out URLLoader in favor of the ile.upload() method.Now I'm stuck again >_<Here's the code I currently have, stripped down to bare-bones:When I drag-drop image files onto my app, here is the trace log that gets returned to me:
Just wondering if anyone knows about the project I am trying to start, uploading images from flash using php is fine but wondering if anyone knows how to create dynamic xml from php and it takes all the image names from the same folder where those images have been uploaded. So we can load all the images in image gallery through xml into flash.
I'm running a web application built on Seam. I would like to have an image upload + crop component. Preferably on client side, so the image uploaded to the server would be the result of the crop. I read this can be made with Flash 10. I was thinking flex is also a possibility. Does anyone has good hints to give me, what component to choose or what is the best way to connect the backing bean I have with the flash/flex?
I'm looking to develop an application that essentially allows the user to upload their company logo and have it appear on an image to simulate what a product might look like with their branding on if that makes sense. Does this kind of app have a proper name or search term I could work from? Ideally there'd be a prebuilt solution as my flash isn't very good. I have an idea to achieve this with say PHP and a combination of jquery and css but I think a flash solution would be more elegant.
I want to embed a flash to my site, that allows the user to paste an image which is in clipboard, and this images will then be uploaded to the server. Is there a script that can do that? i googled for about an hour now, but didn't find anything that fits my needs.
the best thing would be if you also coul crop your image when its uploaded and then save it.
it's most likely to upload screenshots, so that you don't have to first save it, crop it, and then upload it.
im trying to create a online business card editor to learn flash again, one of the functionality im trying to achieve is being able to upload an image (jpg,png etc) and place said image onto a drawing canvas and then being able to scale the image and rotate the image and move the image around. can some one direct me to a decent tutorial for this kind of functionality.
I'm creating a flash application that will post images to a url for saving to disk/display later. I was wondering what are some suggested strategies for making this secure enough so that the upload is verified as coming from the application and not just some random form post. Is it reliable enough to check referring location realizing that I don't need bulletproof security, or perhaps setting authentication headers is a better strategy even though it seems unreliable from what I have read. The application and the server script will reside on the same domain and is in java - is there a way to check for a 'session' or something like that?
Another thought I had was some sort of simple hashed key type system, I could hard-code a key into the flash application and pass something to the server based on that - the server would also know this key and be able to verify if the value passed was based on that? The app is a public app, so authenticating users is not an option. After more research I am thinking about using a hard coded salt key on both ends, then sending an MD5 hash of the base64 encoded image bytearray+salt to be matched on the server side.
I will use the URLRequest to upload the modified image in Flex. It works fine. However, I need to add Content-Length as a URLRequestHeader for the moment, and I get error 2096. Then, I know that this header is not allowed.
Update: According to adobe's documentation: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/URLRequestHeader.html[code].....
Im working on a project where i need to create a webpage that the end user can upload an image (gif, jpg, png) that is then transformed and mapped to a perspective shape, then saved to the server, and linked in the mysql DB.Has anyone done something like this before?Id like to do this in flash, if possible, if not, I guess shockwave is the next optionbecause you cant distort flash movie clips to create a "perspective" im gonna need to use something like this:
Im working on a project where i need to create a webpage that the end user can upload an image (gif, jpg, png) that is then transformed and mapped to a perspective shape, then saved to the server, and linked in the mysql DBId like to do this in flash, if possible, if not, I guess shockwave is the next option[URL]Am I crazy trying to do it this way?
I'm currently making a polaroid image viewer working off of this tutorial: [URL] It's my first time working in Flash, so I'm kind-of on the verge of a mental breakdown. Anyways, to my own surprise I've actually gotten it to work and look great. My issue? I'm making the overall project larger and with more images (800 x 600 with seven images). Anyways, when I publish preview the flash document it shows up 800 x 600 but all of the polaroids are squished together as though it's still 600 x 600. Is there a way that I can space them out a bit? Or, even better, is there a way that I can have each of the polaroids sit in a specific spot on the flash document?
I'm looking for something that will support image rotation, multiple image layers, cropping, etc., and allow the client to customize which features are to be shown.
As far as I know, what I ask here isn't possible, but I thought I'd ask anyway in case I'm missing something.
Suppose you want to let users upload JPG images, and these images are scaled into smaller icons and the original images are always discarded and never required again. Is there any way that would commonly work in most modern browsers that would let the user select a single image on their hard drive, have that LOCALLY turned into a thumbnail and upload the created thumbnail to a server?
In a case where the server just needs a small image, it would be wasteful both in user time and server resources to proceed uploading the whole image, only to immediately discard it. It would be much better to just scale it on the client.
I can imagine three options. Just plain HTML/Javascript, using Flash or using Java. If this were possible with Flash, that would seem like the best option. But reading flash.net.FileReference documentation, it seems that you can upload a file from the HD yes, but you cannot look inside the file you are uploading. On the other hand, if you enable "can access local files" in Flash publishing options, it seems that you can then no longer access the net, so that doesn't work.
With HTML/Javascript, it is possible to load images and display them on a <canvas>, but if you try to access the pixels of these images, you get security violations, so that doesn't seem to work.
Java I hesitate to use, because only 96.52% of my users have it installed, and the file upload dialogs I have seen implemented in Java (at Facebook for example) have not worked well (unresponsive interface). I wonder though if Java is the only thing allowing resizing images from local HD?
I want to create a custom video like the videos on jibjab, i.e allow a user to upload an image of their face and superimpose this onto a video of a character's face.
I'm using Agile Uploader in my project to resize image before upload on client side.And it works fine except one thing: if image name contains cyrillic letters it fails with server error 500.
How to avoid this or if needed how to rename file with english letters "on fly" (possibly with javascript).
I have an aplication which brings up an image for editing in flash. Here is what happens. I click on A tool and insert 2 text boxes on the image and type something. Then I click on the Arrow tool and double click on text in Text box 1 to select it. Then try to change the font color from the font menu icon. It does not work. But after selecting the text in text box 1 and trying to change the font size from the menu seems to work fine.
I have a page that needs simple image editing within the page. It can be either in flash or Java. Are there any open source tools that you can recommend? I am looking for a flash or Java tool that can do the following: Cropping Resizing Nothing else required but simple features like this will be a plus.
I have to alter old flash app written with actionscript 2 to let users upload image in one movieclip.
Since i have no control over placement of that flash in server, is it possible to do this without any PHP code (yes, flash is on site on LAMP stack), with flash only? I.E. - user uploads image to flash application, which creates in itself temporary copy of image, that user 'copied' from his disk?
I am entirely new into flash. Never ever written even a line of action script.I am triying to develop an image editing tool to be embedded in my webpage.The key features I want in the tool are: I have a fixed background image. The user may chose to over lay text or images over the image, with resizability, etc.My questions are:
1) can I consider Flash with action script and javascript a platform for this?
I am creating flash uploader and want to start 10 uploadings at time.But flash upload only 2 files on domain at time, other references wait for something.In IE with ActiveX Player limitation is about 6 files at time.Is there any ideas how to change this limitation? For uploading I need to use FileReference.upload without creating URLRequest object from file data.
I've been trying to configure uploading and I've been getting an error 500.I'm running a server on Apache2 with php5+ installed. I'm curious to why i keep getting an error.[code]I added those to my .htaccess file