We hope to have SWFUpload 2.2.0 alpha out before the weekend that will implement the button/text solution for Flash Player 10.
We will be dropping Flash Player 8 support beginning with v2.2.0. We also hope to get time to fix many of the other outstanding issue.
For the adventurous, the untested SWFUpload v2.2.0 code has been committed to SVN.
October 16, 2008 - 10:13pm
As I mentioned earlier, I was working on a fix today in the form of the transparent overlay. It seems to be working and I've tested it in FF3 (Mac and Windows), IE6, IE7, Safari (Mac and Windows), and Opera (Windows).
The code is available here with brief instructions: http://github.com/bschwartz/swfupload
Hope this helps,
Brendan
October 17, 2008 - 2:05am
Hey!
Thank you for your fix!
omg i can't believe it!!!
I downloaded your flash 10 sample version, for me (flash 10 ff3/chrome/opera/safari/...) it works perfectly!
Now i'm gonna look what u changed, i hope i can import this changes easily into my code, because it's really really special.
But i still hope that there is an SWFU 2.2.0 release soon.
thank you very much
ps: i hope i can remove the ugly red border
October 17, 2008 - 3:31am
@Brenden
Looks great! Good job.
@gyphie
Product and services board would be nice i think.
You say "You get what you paid for"
Why don't you have a paypal Donation button? I think many people especially those who use it commercially would be happy to support the project with a few $$$s and encourage you to continue.
October 17, 2008 - 5:39am
I have downloaded the last version of SWFUpload in SVN. It works with Flash 10. Thanks
Good job !!
October 17, 2008 - 2:55pm
@Brendan
Its work if file_upload_limit not set.
If this parametre is set, always gives out the answer:
You have attempted to queue too many files.
You may select one file.
Please fix it
October 17, 2008 - 7:08am
The svn version don't work for me and i have no example where i can test it, didn't know what u made gbenoit79?!?!
@max78 for me it is the same
I implemented the code from brendon into my script (very modified), in FF3 with flash 10 the script "freeze" after choosing the files, it happens nothing, in debug mode i see nothing special, the same like without the fix from brendon, firebug has also no informations for me.
Now we come to IE7 but with flash 9.
The uploader "freeze" too, the first picture gets uploaded but in the background u don't see that he do something, if i refresh the page manually then i see that the first of my pictures is uploaded.
if i change the flash_url : now to swfupload_f8.swf it works in IE7 with Flash 9, if i change it to swfupload_f9.swf or to swfupload.swf (brendon) it freeze .
don't know whats wrong because i didn't modified the swf movies they are from version 2.1.0 and the swfupload.swf is from brendon.
if i have more infos i'll let you know.
maybe someone has more infos for me, like the differences between swfupload_f8.swf and swfupload_f9.swf.
October 17, 2008 - 7:55am
I have uploaded the demo compatible with Flash 10 at this URL :
http://g.benoit.free.fr/swfupload/simpledemo/
The rar archive of this demo at :
http://g.benoit.free.fr/swfupload.rar
October 17, 2008 - 8:34am
good news i got swfupload to work with flash player 10 and also with flash player 9, was not so much to change in my script.
winmerge hurray
i used the the simpledemo code from the svn version! thank you gyphie for this!
ps: one of my problems before was, that i have no output in the upload.php!
ty to all!
October 17, 2008 - 9:35am
Fantastic, I am glad that there are solutions
Download the example of Brendan, I select the files and when you start the upload process, climbs the first in the queue, to climb the others is necessary to cancel the previous
In the example of "gbenoit79" the same situation occurs.
It takes little to everything working 100%, in a short time will the ultimate solution
I will continue to focus here, so we can resolve this problem
See you soon
October 17, 2008 - 9:53am
Thanks gyphie, I will try the code in svn and hope for the best.
I wonder if it would work to create the browse button in the swf and when suo.selectFile() is called in javascript the actionscript code in the swf call browseButton.click().
October 17, 2008 - 10:42am
I downloaded the demo files from gbenoit79 and tried to put it into my own aplication. All works well in Firefox 3. In IE6 and IE7 I somtimes get unpredicitble errors when calling the startUpload function. The script hangs at line 417, but strangly this is'nt always the case. On some occasions no error is fired, but I can't seem to find out what is causing the problem. If this would be resolved then it would be a perfect solution for me.
Thanx for the good work.
October 17, 2008 - 10:59am
That's not my demo "gbenoit79". It's the latest version of SWFUpload in SVN at this moment that I have uploaded because it's easier to access it and to test it. Thanks to the work of gyphie
October 17, 2008 - 2:13pm
I thought this demo was indeed based on the code from SVN but I have no idea how to access SVN. I'm new to that kind of stuff.
October 17, 2008 - 3:51pm
I've tried this version: http://g.benoit.free.fr/swfupload.rar (last checkout from SVN won't work for me). It's working great on Firefox 2 + Flash 9, but it's erratic on IE6 + Flash 10.
I'm getting this:
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
Invalid function name
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_1
Invalid function name
That "Invalid function name" apparently comes from "SWFUpload.prototype.callFlash". I've set some breakpoints to check typeof (movieElement[functionName]), and first time it returns "function()", but I reload the page and it returns "undefined".
Any ideas?
October 17, 2008 - 5:23pm
I've posted another update to the SVN with additional tweaks. I've also updated the rest of the Demos (except the v102 and Features demos).
The Graceful Degradation plugin is good and busted. A flash movie does not execute if it is hidden (which is different than "not visible"). Since the the flash is not added inside the hidden portion of the page instead of appended to the end it never executes and the graceful degradation plugin never displays the SWFUpload portion of the page.
I'm not sure what we'll do about that. My initial ideas are not very elegent.
A beta release should be out shortly with updated docs and more polished demos.
October 17, 2008 - 7:58pm
(Removed my comment as I actually was having other issues. My HTML cancel button works great.)
So thanks for all the work on SWFUpload, it's been a great asset! Too bad Player 10 threw a wrench in it.
October 19, 2008 - 3:19pm
Hi
Thanks a million for working on a patch for us Brendan. I can not get your version to work.
The file dialog comes up alright, but as soon as I select a file i get a call to my file_queue_error_handler function with the following arguments: null, -100, 0
Any thoughts?
Once again thanks.
Mick
October 19, 2008 - 5:52pm
The error codes are listed in the swfupload.js file. -100 means queue limit exceeded.
October 19, 2008 - 5:53pm
I've updated the Documentation in the SVN. A beta release will be out soon.
When it is released I hope lots of you will beta test for us and let us know what problems you run into. We are very short on time and testers.
October 20, 2008 - 4:16am
var flash_url = this.settings.flash_url + (this.setting.prevent_swf_caching ? ("?swfuploadrnd=" + Math.random() * 999999999) : "");
must be:
var flash_url = this.settings.flash_url + (this.settings.prevent_swf_caching ? ("?swfuploadrnd=" + Math.random() * 999999999) : "");
October 20, 2008 - 8:22am
Use the samples, they works fine!
October 20, 2008 - 9:07am
Thanks l-case. It's fixed and in the SVN.
October 20, 2008 - 9:28am
@gyphie:
Did you guys look into adding LocalConnection() support? While I haven't tested it (since I'm stuck on Flash 8 at the moment,) I would think you could add LocalConnection() support to the code so that users could just develop their own Flash SWF that just has a button to invoke the file upload. This would give users a ton of flexibility into designing their own buttons.
October 20, 2008 - 10:38am
Most excellent! I checkout the alpha from SVN and I interpolated some of the new button options. But I would like to know which constaints there are on the button image.
In the simpledemo/images directory is a button which is actually 4 buttons concatinated. Right? Which order do they need to appear in? (Guess; regular, on mouse over, on mouse out, disabled?)
October 20, 2008 - 10:50am
Thanks for swfupload team working on this !
There is another typo in swfupload.js :
line 218 : ..., '" class="swfupload">' <= double quote missing
October 20, 2008 - 12:07pm
I've made another update. Fixed the bug mentioned by domi.papin.
Updated all the demos (except the Features Demo).
Fixed the graceful degradation plugin. It's not perfect, but it works. You should be using the SWFObject plugin anyways.
-----------------------------
@DanSwitzer2: I'm not very familiar with LocalConnection. I doesn't sound like it would work with the new Flash 10 security that is causing us so much trouble.
You can load SWF files using the button_image_url functionality. You still have to design the SWF as a sprite as it will be moved around for different mouse events. But you "should" be able to do button animations and capture events.
If anyone wants to give that a shot (and/or donate some animated buttons if it works) that'd be great. That kind of stuff is a bit outside our area of expertise.
If we ever reach SWFUpload v3 we intend to add a Flash Plugin architecture that we hope will allow us to add Image Manipulation Plugins and/or whatever else you can think of. Hopefully this would allow client side creation of thumbnails and lots of other neat things.
October 20, 2008 - 3:34pm
Update: I don't know why the demo wasn't working, but I figured out that I neglected to add the swfUploadLoaded handler map in my application, so I don't get the same messages.
----------------------------------------
Hi,
I'm trying to move my implementation to 1.2.2. I checked out svn 780. I've tried to run severalk of the demos but they don't seem to work. In particular, I'm trying to sue the swfobject demo. I'm just trying to get it to load correctly. I've renamed index.php to index.html. When load it into a browser (FF3, most recent Flash 9), it provides the "loading SWFUpload" message. After a few seconds, it displays the "this is taking a while message" and then finally the "it took to long" message.
Even though it displays the message, it also shows the Upload button, which I can click and see the file browser, select multiple files, etc.
I've also tried it on IE7/Flash 10 with the same result.
October 20, 2008 - 4:25pm
SVN has been updated again. The Features Demo has been updated for Flash Player 10.
A couple other small bugs were fixed as well. We'll have a Beta packaged up for download soon.
October 20, 2008 - 5:51pm
Added ability to do transparent overlay buttons and a demo to show how it's done.
October 21, 2008 - 4:07am
Hi gyphie!
Your latest svn overlay version works fine, but only in firefox with flash player 9/10 not in my IE7 it dosn't matter if u have version 9 or 10 i don't see the html button in IE, for me it looks like that the overlay isn't really transparent.
adobe says to me in IE:
Your Player Version: WIN 10,0,12,36
example:
http://666kb.com/i/b356bnkv7u74n1roe.jpg
ps: same problem in ie6 with flash player 9 and 10, but on another pc.