Actionscript 3.0 :: Multi Select File Upload With Flash And PHP?
Mar 9, 2011how to build an AS3 multi file select upload that uses flash and php.
View 5 Replieshow to build an AS3 multi file select upload that uses flash and php.
View 5 RepliesI have been working on the multi upload form over the past couple of days. It's a variation of stuff i have found about the net. The form has to buttons. One for single file uploads and one for multi file uploads.The single file upload button works as it is supposed to but the multi file upload but although does upload all selected files it does not fire off any events.
[Code]...
I was just wondering that is there a way to create a multiple file select like Facebook (using flash, I think.) and with a progress bar that show every photos progress in one progress bar. Have a clue or a script which can be customized and can be used easily?
View 2 RepliesNow, I'm writing a small game. I use actionscript to load a group of soldiers.It's pretty easy. But how do I select all of the soldiers by dragging the mouse?
View 3 RepliesI have created a list control with the instance name "dependents" and populated it with labels and data. MultipleSelection is set to true.
I would like to print the labels in a comma-delimited list.
I have used the following code...
dependents.selectedItems.toString()
which yeilds the following when there are two items selected...
[object Object],[object Object]
way to access the labels in these objects in the case of a multipleSelection
whenever i try to select multiple nodes in tree component i'm getting this error. i want to know what might be the cause for this error.
[Code]...
Here's the code that allows multi-select list to drag into a tree area. What I would like to do is to change the alpha of the image that gets dragged around. I've done some research but most of the discussions out there talk about how to change the dragged image. What I want to do is simply change the default alpha of the dragged item from 0.5 to say 0.2. Also this solution should be able to handle multiple select dragging.
Below is a simple example of drag and drop that I would like to modify to allow for the alpha change of the draged item.
<?xml version="1.0" encoding="utf-8"?>
<s:layout>
<s:VerticalLayout/>
</s:layout>
[Code].....
I'm trying to write a little flex app that has a paint/canvas type feature to draw an image, which I then want to post to a rails server side. I'm following the post here, but can't get as far as he did due to the following error: NoMethodError (undefined method `rewind' for #):I googled that and found this which says the problem is due to an empty filename, but I thought I had that from the example. However, I altered the example to simplify the post by reducing the form parameters, but I could have easily messed something up since I really don't know what I'm doing with this multipart form content. I was hoping to at least log the request params, but unfortunately I can't, since it's failing before being routed and due to my inexperience with rails. I'll ask that in a separate question and hopefully be able to edit this question with the request params.
View 1 Repliesmy listener.onComplete = function(selectedFile:FileReference) is fired without any file in the upload dir. if the file is small and I wait a bit I can see the file (through FTP) coming up on the server, but most of the times the "onComplete" if fired without any file being saved.
can I add something to this php code to make sure the file is uploaded?
[Code]...
I'm having trouble retrieving the value of a multi-select list component. It always traces the last value selected, but I need to trace all values to parse the data.
I've been using trace(myList.value);
I'm having trouble retrieving the value of a multi-selectlist component. It always traces the last value selected, but Ineed to trace all values to parse the data
View 8 RepliesI am considering using the MultiPowUpload control from element-it on a project, as well as perhaps on a second. Does anyone have any feedback on that particular control? Does it actually work as advertised, handle errors well, etc?Multi-select of files (from a single 'browse' click, not multi-textbox)Progress bar (client requirement)ueue for upload (it's ok if it can only upload immediately)
Feedback from server - custom error messages (permissions,etc)Pass the session ID automatically, but I can use a URL hack for the upload page too Be able to remove files from the queue Support large files (~50MB, really up to 300mb would be perfect) Accessible/usable JS api
Can change the view style a little bit at least! Localizable - we need english, chinese, italian, and possible a few others Resume incomplete transfers (eg, connection dropped, so on, not required, but ++)I've been working with all of these below, and gotten most of them working in demo pages, finding issues as I go along.
[code]....
PL UPLOAD WON - for now! If we get complaints, or find it doesn't work in our real life scenarios, then we'll consider switching to MultiPowUpload. But it is good enough, and we can write some JS to do a few of the missing things. With chunking I had no problems with 300mb uploads. Yay.
I have flash file contains 2 Scenes. First one is a flash intro Second one is the website how can i make a loading bar for both of them? i mean when i start the website ... there loading for the intro ... with skip button ... if i clicked on it ... i'll get the second scene which it is the website and it will get loading bar as well. or i need any way to do multi loading bar in one flash file
View 3 RepliesIf you have an .as file in the global include directory do you have to upload it to your server with the flash file or does it compile the flash file with the included info?
View 2 RepliesIs there any "mainstream" library used for this purpose? Commonly spread, well maintained, documented etc.I found these (using flash):
Uploadify - not many releases, latest 12/2010, no documentation (!)
SWFUpload - latest release 03/2010, documentation
fancyupload - looks buggy.
phpfileuploader - looks heavyweight, and looks commercial (?) I cannot read the licence (you can download it but are you allowed to use it forever without paying?) plupload New version of pure javascript (no flash) Valums' ajax upload claims to handle file size limit and progress bar, which is quite suspicious to me: these features require to guess the file size before the upload, which seems impossible in javascript (look also here). Or can it work?
i have an index.fla page and will be about 10 .swf files to load into it, they will be large videos witch need pre loading. I have read lots of threads all over the place and have tryed lots of ways.The simplest way i have found so far works but gives me the error :
TypeError: Error #1006: value is not a function.
at MethodInfo-8()
after i have loaded the 1st vid intro witch then using a dispatchEvent(new Event("allDone", true));realays the info to the index file and loads the movie but the percent timer stops working and gives the error above. I have the following code
.as file
Code:
package package1
{
public class page
[code]....
Firstly this question has been asked a while back, and given the time there are probably newer options and improvements. Flash pdf viewer Googling seems to offer a number of tools that are a combination of executable that converts to a base format and an accompanying viewer.
[Code]...
I am working a video in Flash CS5 that is roughly 11 minutes long.
I am at the 6 minute mark at the moment and whenever I want to preview the latest changes I click F12 to I press 'alt+enter'. The problem is I have to watch 6 minutes of the SWF to eventually get to the latest part I edited.
This is slowing me down tremendously and I would hate to still be doing this when I am 10 minutes into the video!
Is there a more efficient way to preview?
Perhaps open it in a player that has some proper controls? or even if I could select the starting point of the preview?
If I press 'enter' I see a preview but the sound file does not play so that option is out too.
I've created a multi-file interactive Flash "demo" for a client. It's very much like a website (though he's not using it as a website) in the way that it is laid out in that there is a main index page which can then direct you to different product categories, which you can click on to see. Each "page" contains product (or product category) information, photos, block diagrams, etc. There is nothing animated in the Flash.
My client also wants to be able to set it up so that the demo runs automatically from a configurable XML file. My ActionScript skills are pretty limited, but I've been able to using ActionScript 3 to load and read the XML file. Using a 'for' loop, I am able to read the XML file and return the path of each Flash file and the duration that each file should be displayed (my client requested that he be able to configure the duration of each page as well).
I've set up a loader for each movie clip and a timer for the display duration. Unfortunately, the thing that is throwing me off is that when I attempt to load the movie clip (as the last item in the for loop), it reads the entire XML file, returns all of the clips and durations (I'm using trace to see this) before it loads the movie clip. As a result, the only movie clip that is loaded is the last one read from the XML file.
As I said, I'm not very good at ActionScript, so everything that I've managed to cobble together has been from internet tutorials.
This is my code:
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
var mcLoader:Loader = new
[Code].....
I removed the timer event because it, like everything else was getting repeated before anything got loaded, so I wanted to figure out out to get the clip loader (mcLoader) to load the movie clip for each file before I figured out where to put the time to ensure that each clip is displayed for the appropriate duration. I suspect that the timer event needs to occur in the 'playClip' function, but would take advice on that as well.
I'm trying to integrate a JavaScript multiple file uploader into a website. I've worked with Uploadify before and wanted to go with that. The difference in this case was that I needed to allow a large number of files in the upload queue (up to 500).
Everything works fine in Firefox, IE6-9 and Safari. Except for Chrome, where when selecting more than 232 files at once (using the Flash file select dialog) it doesn't do anything (the file select event is not triggered for the JS script to capture).
At first I thought it was an Uploadify bug, and decided to try Plupload as an alternative. Problem is that I hit the same dead end with the Flash version of Plupload, it just won't do anything when selecting more than 232 files at once.
Is this a known Flash Player limitation/bug in Chrome?
there is a flash bug on osx 10.6 (snow leopard) after uploading a file. does anyone know this bug? i tried many online apps like [URL] and also have seen that other people had the same problem : [URL]
View 1 RepliesIs there a way to create a form in which the user can upload a file (like a pdf) with the click of a button? I do not find any component capable of doing that. I presume this could be done with ActionScript.
View 1 RepliesHow to upload a flash on this forum file so it can be reviewed.
View 3 RepliesI would like to be able to have a page where the owner of the site can upload a new image.so i can have an admin page, she can click 'upload photo', and it uploades the photo and updates my nav file (xml)Does anyone know of any source codes for this? i have a decent understanding of xml. the part i am unsure of is how to upload the photo, then append the xml file with the new photo name.i would like to use php for this.
View 3 RepliesI am using the file reference class (FILE UPLOAD) in an application for the web.
it seems to work eg. listeners and messages relaying back to the flash doc. however the actual file itself that i am uploading does not show up in the folder i am uploading to?
The php code and actionscript code is taken straight from F1 help in flash....so what gives?
i have a problem while i am trying to upload an xml file in flash.i have a simple xml on my desktop called text.xml and the code i have written in actionscript is this:[code]name_txt is the instance name.well i have just started using flash and i dont know MANY things.i get no errors but it dowsne upload too.
View 2 Replieswhat I'm trying to do is make a preloader that will preload about 20 external SWF files before it lets you get to my main file. I want to do this because my main file needs the SWFs to be ready to go once its done loading. I have looked around and i found a few ways to do this with the "if (loadedBytes>=totalBytes)" and the code loops back till the files are done loading... this would be just what i need but i cant seem to get it to work. the file just seems to start loading my files but does not loop and just runs the time-line even once i state what frames i want it to loop.
View 6 RepliesThis is the first time i am working in action script. I have seen a flash programmer working with it. since i know javascript i was able to work in action script. I am creating a file upload component for my php projects. Until now i have advanced to show the file dialog box using the FileReference api. The select event is not firing for me. and i did not get any error.
[Code]...
The title says it all. Anyone know how I would code a file/pic upload form in flash. I have seen examples that you can use php. However I have tried the php/java I designed for my dreamweaver sites. I think It's time I get with the real designers and us flash for my websites.
View 1 RepliesI'm trying to put together a news system which allows users to write a headline, a short article (300 words)then upload an image to with the piece.I can do the text part with LoadVariables ("uploader.php" , this, "POST" ) which just sends the vars to php and then on into an SQL table and I can do the upload image part with the code below (taken from a Kirups tutorial) - but I can't seem to do both in one go .I Don't care if the image goes to a blob in SQL or into the file system of the server - I just need the text posted to SQL and the image uploaded.
AS2 CODE:
import flash.net.FileReference;
var progressBar:MovieClip;
var reference:FileReference = new FileReference();[code].....