ActionScript 3.0 :: Upload Images To A Server From Flash?
May 19, 2011
I'm developing a drawing application in flash and I want that when a user has finished his drawing, he can upload the file to a server.
I found a code on the web that does what I need, but when I upload the image to the server, there open another window and I don't want it does that, I want simply upload the file to the server without opening another window.[code]...
My situation is that I have to convert an HTML form into a Flex WebApplication. A Java Servlet runs on the server that will use the data and interact with the database.
I have a couple Text fields and 2 images that need to be uploaded. The two images are browsed with 2 FileReference objects. I understand that I need to create a POST request on a HTTPRequest object, but how will I pass the image data as well?
I'm trying to use the FileReference class to upload images to a server and use Java to save the file on that end, but Java doesn't seem to be able to pick up any of the information that is being sent by Flash. Has anyone run into any problems like this with Java before? (p.s. we are using the struts)
I now have a Windows PC and I purchase Adobe Flash Media Server 3.5 software and install.I but server space on a managed server arrangement.I upload my pre recorded Flash clips to the server and my website and playlist to my host. Basically the website is channelled via http and the clips via RTMP. The key question that no one inside Adobe seems to be able to grasp (or answer) is ~ will it work if I stream my own clips?! or is it inferior to say that of a professional streaming company.The streaming companies charge anything from $125 to $250 a month, a big cost for someone like me, streaming around 1000mb a month. So does anyone out there have direct knowledge of this software and can you stream via rented server space without using a streaming company?
I am using a PHP upload to upload files to server. I have a loop for the 5 files to upload....
ActionScript Code: if (PDFFiles[i] != false){ PDFFiles[i].upload(uploadPHP); }
As the loop runs quicker than PHP can upload, the success of....
ActionScript Code: function fileUploaded(e:DataEvent):void { trace "Success"}
....can get out of synch. It doesn't cause me any real problems but is this bad form? Or am I better to upload one file the wait for the PHP to return success before uploading the next one?
my baner is considered unsafe because of fileHandler.upload function which uploads selected image to server. Is there any other function I can use to replace fileHandler.upload ?
Is it possible to upload a MovieClip as an image to a image hoster such as imageshack or flickr?UpdateEven if this is possible, would the hoster require the image to exist physically in a file location?Update 2
Is it possible to upload files to a server, with flash only? I'm looking for a SWF file that's able to do this task.is it possible to upload a file with flash alone (no PHP or ASP)in case this is possible: is there a simple SWF-file to do this task which I could use?
I've developed a drawing application in Flash and I need that when the user has finished to draw and click on the save button, the drawing he has done get saved as jpg into a folder on a server. I've managed to save the drawing as a jpg to the server using FileReference, then I found a code that uses PHP to do the same, but not upload the jpg to the server:
this is the action script code:
Code: Select allprivate function saveHandler(e:MouseEvent):void { var canvasBmp:BitmapData = new BitmapData(521,213);
[code]....
How could I do to upload the file to a server instead of the user's machine?
I am designing a site for a photographer friend, which has no ftp experience or anything. i would like to just have a page where she can upload her photos to the webserver herself.
I created a simple flash mp3 player to play songs on my boyfriend's band's website.. It works fine when I test it locally on my computer, however, once I upload the .swf file to the server, it takes forever (5+ min) to load the songs. I am using AS2... here is the code I am using...
var dynamic_sound:Sound = new Sound(); dynamic_sound.onLoad = function() { dynamic_sound.start(0,1);[code].....
The user loads the page HTMl file .swf. By clicking on button_mc the user can select from your computer (local disk) image file to upload not on the server and temporarily - to flash - the file.
[code]....
Below given code works only if the image file .swf are in the same directory (folder).I know the file name, but I can not find the full local path to his computer to the selected file.
[code]....
How do I get my site you can download at home in my swf file to a photo to her dalsche work?
I am uploading some photos In flash and Bydefault its saving those files in the folder.But Is there anyway so that i can save them directly in my library of flash instead of using import option?
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.
I'm looking for a flash widget that allows users to record their audio and then send it to the server.
There are a few similar questions:
Record Audio and Upload as Wav or MP3 to server
They advocate using Red5 or flash media server.
Shouldn't it be possible to record locally on the user's client using the codecs that the user already has and then upload the resulting file to the server, rather than say, process the and record the stream on the server itself.
I am trying to get the "bwcheck" application to work on FMS 4 on Amazon EC2, in order to detect my upload speed to the server and provide the best quality stream for my upload speed.The tutorial I follow is this:{URL}Both are almost identical. However when I compile the .fla to .swf (having changed the URL for my server and application), and after I load the server-side code, I get the following error in my server-side log:Method not found (recData) understand that apparently it is not finding the method, but I tried getting it off the function in the global scope, tried attaching it to the client, etc. but nothing worked. The original code of the server-side script is:
Some friends asked me to build them a site so their clients could use a private part of the site to upload and download files like in a FTP program (with user/password). I've searched the web, but only found a few uploaders that don't allow to also download and manage the files uploaded. I've noticed on my searches an extension called "yamzbrowser", but it is an old piece of software, and in a quick test I've found that it is not all browser compatible. In fact, I was not able to upload a simple file using the popular IE 7...
Is there any script, extension or toll that allow multiple users to upload / download, and manage (see, delete, rename) files inside a Flash page? Maybe a HTML solution that could be loaded inside a Flash page...
I need to develop small flash aplication which will upload photos, videos and other files to server. But is it possible to upload these assets without serverside scripting like php or coldfusion? I mean that flash should independently upload images to server. Is it possible?
I would like to know if it's possible to capture a users webcam in flash and directly upload it to YouTube without a backend server setup. Or if there are any third party providers that support this service. I see YouTube offers a live streaming API, but it seems it's only available for selected users.
I am doing a simple project for school, and I had to develop a website off of a premade template, the URL is [URL]. If you go to the about page there is supposed to be a video in the TV that plays, when I use the FTP server to upload the swf and index.html file, where am I supposed to put my video file so flash finds it and it plays? also having the same problem on the portfolio page with my pictures not being there. When I click the small icons on the left, the larger picture is supposed to show up in the right picture frame.
I built two flash uploaders using actionscript 3 & actionscript 2 that sends files to a java servlet. The java servlet successfully receives that file, but the flash uploader fires an IOerror #2038 instead of a complete event.
There was another question is my exact same problem, but the answer "clear the cache" was very broad, and the question owner was too lazy to give a detailed description.
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: