I built an application in AS3 a while back that allowed users to select 1 or more files and upload them to a server (not using AMFPHP at the time). That works fine.
I am building a new application that is using AMFPHP and am wondering how I could upload files using it? Any example classes out there?
I am relatively new to actionscript and I have run into a problem.Before i state the problem it would be helpful to know that i can only use AS2 and flash7 mode.I have a running swf, which has a button. On that button being clicked I want to let the user upload a file.right now what i do is when the user clicks on the button i call javascript to open a popup window and load the file 'upload.php' in it. this file has the form to select the file to upload. when the user clicks on 'upload' the file 'upoader.php' is opened in the same window that uploads the file to the server.Now my question, how in my movie can I catch the event that that file upload has completed/ failed ??
And i wanted to have flash import this xml but when it imports it i want it to upload the variables as an Array.
My basic result is that i want it to provide clickable text links (thats the movie_title) that adds to the flash when he adds a new link to the XML and i've not really used Arrays that much
/Flex code/ private const UPLOAD_URL:String = "http://myhosting/upload/upload.php"; private var cer:FileFilter = new FileFilter("Archivos Cer", "*.cer"); private var key:FileFilter = new FileFilter("Archivos Key", "*.key"); private var fileref:FileReference = new FileReference(); private var fileref2:FileReference = new FileReference();
That script below is for uploading an image via PHP. Now I'ld like to give the user the option to cancel the upload. How to cancel the PHP request once it got send?
i am uploading file from pc its working perfectly fine on safari,firefox,IE,chrome and selecthandlers and completehandlers are working perfectly but on MAC files was uploaded i did't get response so that i can hide the loader bar i think complete handler not working perfectly or any other reason .....
I asked a similar question before but didnt get a definite answer! Basically I just want to know if its possible to have a standalone SWF file which allows the user to browse there computer and load an image into the SWF to view it (in AS2)? Ive researched this FileReference class but it seems that requires servers and what not. I only want to upload the image to the SWF, not to an external server?
When I upload a file to "Up_Test.php" via a regular HTTP form, the image ends up in the destination folder and the test file wasHere.txt is created as well.
When uploading with the AS3 function above, only the wasHere.txt file is created, i. e. the AS3 connected to the PHP script, but it did not send the file.
I made my own Flash CMS where I can upload files to a server via a php-script.It works fine on PC, but stalls on Mac. Well, on Mac it actually upload the file, but somehow don't tell Flash that it's finished uploading the file so the complete-listener never gets the message.
My code work fine in Windows system but it wont work at the MAC OSX. In MAC it wont load file when the file name having space in between.Please see the code for reference.
Code: Select all package { import flash.display.Loader;
working on an image uploader [URL].. couple problems. 1. my listener.onProgress isnt getting called 2. it works fine with smaller files, but when i try to upload a lot of bigger files - it behaves like its working as it should but then nothing gets put on the server. or sometimes after a little while some of the files end up there.
I am using the file reference tutorial to upload an image to the serverobviously it works great. but I want to make each file upload unique, so if I upload mypicture.jpg to the server, I want to change the name of the file to mypicture1039094.jpg (or something that is unique).part 2:I want to also capture that new random file (mypicture1039094.jpg) in a text field so I can send it to a php script.
I was wondering if it is possible to use files the user selected through browse() in flash, without actually uploading them. For example displaying a local image after the user selected it from their computer.
whats the best thing to do when I put my swf file online including xml..because when I publish my swf file online, it can't find the path of my xml.. like pictures, etc
After building a flash using one of the players provided by KoolMoves in the interface, I checked to make sure the sound played properly and it did. I checked to be sure it was still in the contents file and it was. I uploaded it to my website and all plays great but I have no sound. I've checked to make sure my sound is not muted and speakers connected and all other sound plays fine. The progress bar for the player does not show when it is clicked eiither, as if there is no sound file in the player.
how to calculate Remaining Time of a file to upload on a server using AS3 and Flash Player 10.I have designed a File Uploader and its workign fine and i am displaying the progressbar in it but now i want to know how to calculate the Remaining Time of a file to upload.i am trying to calculate it with ProgressEvent.bytesLoaded and bytesTotal, but its not working for me. the loading of bytes by flash always comes different.
I have a major problem with File Uploading through PHP backend in mac OS it works fine in Windows OS but not in Mac. So how to resolve this problem? Is it Flash Side bug or PHP Side bug???
I am trying to create a web site suing adobe Dreamweaver and flash, for the first time.I am trying to upload a webpage that contains swf.When I check mu site I could only see a blank page with the webpage title at the top of the page.When I contacted the webhosting company they say they can see the message that a newer version of adobe flash player is required. From my computer I cannot even see the message.The helpdesk person said there are possibly two reasons for it. Either there is a problem with the code in flash or it is too large.Are they too large to upload? If so, what is the maximum size of file can I upload on a webpage?I know they are basic questions but I am trying to create website on my own.
I am trying to embed a flv with a custom skin from Flash CS4 on my web page. I have embedded FLV's before using Dreamweaver CS4 by going to Insert/Media/FLV and it worked fine. However, I do not like any of the skins available in DW.
So I created a FLA in Flash with a skin that I prefer. The file previews fine in Flash. I published it and Flash create the flv, swf and skin.swf. I then went to DW and choose Insert/Media/SWF and inserted on the html page. I previewed it in the browser and it worked fine.
I uploaded the .swf, flv, skin, and html to my server. The skin appears but the flv video does not.
Is there somewhere in Flash that I need to specify "Progressive Download" as in DW? Or am I missing a file? Or.....
i want to make a progress bar uploading, for a bitmap image that is in flash library ,using URLLoader and URLRequest.but ProgressEvent doesn't work true and it happends just when uploading is finished.i search and find that with apc_fetch in php we can find the total and current bytes uploaded in server.but the sample was in html and php and it needs a hidden type with an id in http form.but i don't know how do it in flash.
a simple example in http and php is : <form action="" method="post" enctype="multipart/form-data" name="uploadImage" id="uploadImage"><p><label for="image">Upload image:</label><input type="hidden"
First off, my main problem is that my company's website is loading slow and I'm not sure why. All of my images are small file sizes, but I do have 4 scenes that I'm using , maybe that causes slow loading?I've attached the website address below:I created my entire website out of flash Is this not the best way to create and publish a website?Should I use Flash in conjunction with another website building software to create and publish my full website? If I only use Flash can someone please point me in the direction of how to successfully build and publish a website through Flash that doesn't load slow, i.e. loading things dynamically? What I've been doing is publishing my site onto my computer and then uploading the .html and .swf files to Godaddy for publishing.
What are, nowadays, the best practices for uploading a large file (which may cause a timeout) with ASP.NET Web Forms and/or MVC? Increase Server.ScriptTimeout (only for the specific POST request); Use some flash client-side uploader like swfupload ([URL]) or plupload ([URL]), but Flash uploads have some issues with proxies; Use some gmail-like javascript (like [URL]
I'm looking for some flash based plug-in which allows me to display an image as soon as the user selects it in the file dialog.I looked at swfupload but couldn't find any way to display the image selected.. no handle on file path or contents as far as I could find.
There is a WSDL which have one method which take byteArray & fileName(which i want to write) as a parameter to write a file in local system, the following is the code...
public void writeLocation(byte[] byteToWrite, String fileName) throws FileNotFoundException { StringBuffer fileLocation = new StringBuffer("D:\Products\Device");
[Code]....
but the flex 2 showing the error when i searched i found out in flex 2 there is no "data" property. so i am unable to create the selected object into byteArray..
I'm working on an application where client may upload any folder which may contain sub folders along with files. Is it possible to upload a folder instead of a file?