Flash Player 10 - Continued

gyphie's picture

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.

curious

@gyphie, just curious what made it hard to keep flash 8 support in there?

thanks to the team for the quick work

gyphie's picture

Tools & Code

The tools we use are dropping Flash 8 support and our Flash 8 version is in a separate ActionScript 2 code base. This means every change and bug fix has to be made twice.

The level of Flash 8 users is getting smaller and we don't have enough resources (or motivation) to continue supporting it.

We are of course seeking volunteers to help update and maintain SWFUpload. If anyone wants to put forth the time to maintain a Flash 8 version that would be great.

That's great

That's great news. Thanks to the team!

danivalentin's picture

hi guys, thanks for this. Do

hi guys, thanks for this. Do you have an idea when this new version will be out?
Thanks again
Dani

New Version

It is out as a fix. You can download it.

However i did not try it. So don't hit me if I'm wrong.

@gyphie Do you have any schedule for next full release?

Schepp's picture

Not true

There is no final version of the fix.

As Flash 10 has been officially released today, and since in the last 2 weeks there where no updates here and over at Google Code, I took the dive and checked out the most recent SVN-version (R775, 30th Sept.).

It still is incomplete, that's for sure: It is undocumented, apart from inline comments inside the code, there are no samples/demos, and the Javascript-part still has some bugs that act as showstoppers. This code can't have been tested in a HTML-environment.

In addition, it is currently only prepared for the "image button fix", not for the alternative, less invasive "overlay fix".

I repaired the above mentioned JS-bugs but until now didn't manage to get a usable/clickable button to appear. All I currently got is just an empty, plain white SWFUpload-surface with/without strange graphics as "image", both with no funtionality...

As a sidenote: It also seems as if the new code breaks graceful_degradation.js. I removed it for the time being.

Samples

Can someone send some samples based on the 2.2 alpha?

This is my current code:

var swfu;

window.onload = function() {
var settings = {
flash_url : "/common/upload/swfupload.swf?v2.2.0a",
upload_url: "/admin/uploader.php", // Relative to the SWF file
post_params: {"PHPSESSID" : "[sessid]","authchallenge" : "[authchal]"},
file_size_limit : "10 MB",
file_types : "*.jpg",
//file_types_description : "All Files",
file_upload_limit : 10,
file_queue_limit : 50,
button_placeholder_id : "btnUpload",
custom_settings : {
progressTarget : "fsUploadProgress",
cancelButtonId : "btnCancel"
},
debug: true,

// The event handler functions are defined in handlers.js
file_queued_handler : fileQueued,
file_queue_error_handler : fileQueueError,
file_dialog_complete_handler : fileDialogComplete,
upload_start_handler : uploadStart,
upload_progress_handler : uploadProgress,
upload_error_handler : uploadError,
upload_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
queue_complete_handler : queueComplete // Queue plugin event
};

swfu = new SWFUpload(settings);
};

List

I'm a bit of a n00b when it

I'm a bit of a n00b when it comes to Flash/JS but what is the difference between YUI Uploader (http://developer.yahoo.com/yui/uploader/) and SWFUpload?

Updates

Any update from the SWFUpload guys on this? Thanks for all the hard work.

BTW, looks like FancyUpload has their fix up: http://digitarald.de/journal/54706744/fancyupload-for-flash-10/

Jorger's picture

Help please!

Hello, my name is Jorge Rubiano, I am of colombia, and I've been using this library swfupload, and it recently updated the Flash Player to version 10, and since I have come across the problem that has been discussed in this forum.

Has left me worried, since in many applications I have used the library and because this would force me to change.

I have read of solutions, such as YUI Library, with a film of transparent flash (wmode = "transparent") I read that a person in this forum has already done tests, I would appreciate the help, since the applications that I have indeed depend on this magnificent library

And it is logical that in a short time the new version of Flash Player will be in the majority of the computers of users, thank you very much to the developers of this library, and as many users would appreciate help us with this situation.

Thank you very much for the help.

Jorge Rubiano.

I hope so bad that you guys

I hope so bad that you guys have time to bring out the new version very soon or a little workaround, and i'm really glad to read that the SWF-Team didn't choose option 2 "let the project die".

Thank you from austria for this awesome library and your hard work!!!

greets

Interessting solution and/or Alternative

@Schepp you are right. I thought there was more developement going on. I'm really shocked now. Well at least the phone did not rang yet. So I have some time to fix the issues. Before customers realise

Have a look here:

http://digitarald.de/journal/54706744/fancyupload-for-flash-10/

The fancy upload guys fixed it!!!

They move a transparent give over the browse button

Great solution

Schepp's picture

...

@Defender: They did exactly the fix, which I, but not only I, suggested some weeks ago in the other thread as second and even easier and quicker solution. As did the YUI-developers, too.

Concerning the low level of activity over here: I can only imagine of gyphie being ill or something. Bad timing happens. I admit, I am also getting a little more nervous, but there are some days left I guess. Yesterday I measured 0.65 % Flash Player 10 Users on one of my larger sites and my phone didn't ring yet either.

@I-case: no one has working samples
@Jorger: there is still no final fix - just pieces of it.

Today...

i got the first 2 support mails because of picture upload dosn't work...
both time they had flash player 10 Sad

damn what we do now? :-/

Here is a snippet from the

Here is a snippet from the ajaxian website:

"The solution is quite simple, you need to make the button that launches the upload a Flash control itself (versus an HTML button for example)."

Not sure if it is as simple as it, but other uploaders seem to have a simple fix

http://ajaxian.com/archives/fancyupload-for-flash-10

eric's picture

Hoping for a fix

also very much hoping for a flash 10 fix soon!

Working on a fix

I'm not part of the SWFUpload team, but I'm working on a fix for this in the form of the transparent overlay.

If I get it working before there's an update here, I'll be sure to share it. I'm hoping to have something together sometime tomorrow.

Brendan

Jorger's picture

Waiting and looking for solutions

Hello, is pending before any solution to this incoveniente confess that there is much concern because we are a group of developing very small (2 people) and the applications are running, this library is widely used, so far have not been received calls, but it's a matter of time.

It's my dream to find a quick solution

Thank you very much for helping friends, this solution would be to the benefit of all...

I sorted things out and have

I sorted things out and have "Fancy Upload" up and running like a charm.

I had to modify the javascript quite a bit so it works the way swfupload works, so i'm able to post the link back for the file i uploaded and submit formdata along. Out of the box you have no possibility to post back the filename, location,...

here is my first clean demo
Form:
http://www.idesignu.de/fancyupload/upload_datei_form.php
Multiple:
http://www.idesignu.de/fancyupload/upload_datei_more.php

For the Form Demo. First the file is uploaded then the file location (upload/xxxx.jpg) is posted back to a hidden field, then the Form is submitted.

Couldn't find any problems with flash 10.

I really love swfupload, and i have many sites up running with it. But I have to get Flash 10 running. So gyphie don't hit me if I write about a different project here. I think many people need an alternative very soon. If there is no full update coming for swfupload

Jorger's picture

Waiting and looking for solutions...

Are the examples are based on SWFUpload?

¿FancyUpload is based on SWFUpload?

With this we could solve the problem of Flash Player without the need to change code and applications already developed?

Thanks for the answers ...

gyphie's picture

Flash 10

We kind of dropped the ball with Flash Player 10 (and when I say we, I mean I). Like many open source/free projects this is a part time hobby in addition to the rest of real life. We apologize for the delay but hey, you get what you pay for.

As always we are interested in anyone who would like to jump on as a lead developer for SWFUpload.

The Flash 10 fix is very similar for most of the Flash/JavaScript upload libraries (we are all basically the same with different APIs exposing the same functionality).

We'll have something out eventually Smiling Our stuff is broken too but the paying job has taken precedence.

P.S. I was ill last week. Thanks for the concern!

@Defender: I don't mind discussing other projects. I think it is important to know what the alternatives are and be able to make good comparisons in order to make better business decisions.

However, any posts advertising or promoting some service unrelated to the topic at hand will be modified or removed at our discretion (but I try to be pretty open about it. PM me if have a concern. If interested maybe a Products & Services board could be set up).

Jorger's picture

Thank you

I am glad to know that the development group SWFUpload (gyphie), to help us solicuonar this problem, this library is my favorite and I do not want to change

Thanks for the help Gyphie.

That you are fully recovered from any illness

I am sorry my English, I use the translator of Google

I'm completely f*****

My upload forms have 100 buttons on them. I'm not exaggerating. One upload for each page of an user's book. I cannot create 100 swf objects, one for each button, every time someone visits a form. My users' computers would explode!

From a security perspective I understand why Adobe did this. Why don't they allow the user to relax restrictions on a site by site basis. My site has no cross-site scripts so there is no attack vector. If I could tell my users to right click and select "lower restrictions on this site". It would be better than me completely scraping my code. With no potential replacement I'm completely f*****. I'm already receiving calls from users that have version 10.

I really like SWFUpload but I'm out of options. Java? Silverlight? *gag*

2.2.2 beta not working....

I've downloaded the SWFUpload 2.2.2 beta from SVN, but it doesn't appear to work. I've fixed the JS errors in the swfupload.js file and the SWF now gets replaced in the DOM, but no text or image appears in the stage. Also, clicking in the flash file does nothing.

Here's what my options look like:

, button_placeholder_id: "swfUploadButton"
, button_image_url: "./images/upload_16.png"
, button_width: 400
, button_height: 400
, button_text: "Uploader"

I fixed the JS problems by changing the replaceWithFlash to:


// Private: replaceWithFlash replaces the button_placeholder element with the flash movie.
SWFUpload.prototype.replaceWithFlash = function () {
var targetElement, container;

// Make sure an element with the ID we are going to use doesn't already exist
if (document.getElementById(this.movieName) !== null) {
throw "ID " + this.movieName + " is already in use. The Flash Object could not be added";
}

// Get the body tag where we will be adding the flash movie
targetElement = document.getElementById(this.settings.button_placeholder_id);

if (targetElement == undefined) {
throw "Could not find the placeholder element.";
}

// Append the container and load the flash
tempParent = document.createElement("div");
tempParent.innerHTML = this.getFlashHTML(); // Using innerHTML is non-standard but the only sensible way to dynamically add Flash in IE (and maybe other browsers)

targetElement.parentNode.replaceChild(tempParent.firstChild, targetElement);
};

What am I missing? I'd assume this was at least test a little bit to make sure the stage triggered off the upload action/

Also, I was wondering if a better solution might be to use LocalConnection() instead and use a separate SWF as the actual button. This would allow developers to create their own SWF button if they choose to do so.

gyphie's picture

Sucks

@h3028: Your problem is one we can't easily work around.

The only idea I can come up with is to use a "moving movie". When you hover over a button you sneakily replace or cover the button with the Flash Movie before the user can click it. That way you keep a single instance/single flash movie and kind of re-use it where needed.

Jorger's picture

Waiting and looking for solutions...

Hello again, reading the article in Ajaxian.com ((http://ajaxian.com/archives/fancyupload-for-flash-10)), written as follows:

"The solution is quite simple, you need to make the button that launches the upload a Flash control itself (versus an HTML button for example)."

My knowledge of Flash are very basic, and I do not understand this solution posed.

¿I think is the solution they are designing?

Thank you very much again!!!

Yes Jorger..

yes YUI or FancyUpload have thist solution for now, they have a invisible transparent flash movie who overlays the hyperlink.

for you it looks like you click a normal link, but u don't really click this link, you click this transparent flash movie who overlays the link.

go on this page:
http://developer.yahoo.com/yui/examples/uploader/uploader-advanced-postvars.html

right click on the "Upload File" Link, u see? it's a normal hyperlink, and now right click on the "Select File" Link, it's not a link it's a flash movie.

you understand it now?

Jorger's picture

Waiting and looking for solutions...

Thank you very much for your reply

My question is how to do it at this library SWFUpload without affecting existing applications

Reviewing past downloads, I found the 1.0 version of this library, in which the button that makes the call is in Flash, tested with the Flash Player 10 worked correctly

It is logical that the latest version of SWFUpload there are new properties

The following links will be seen in some images that version 1.0 of SWFUpload in Flash Player 10, everything is working correctly, making use of a button hidden in Flash

http://farm4.static.flickr.com/3054/2947991304_ffbf7ca56b_o.jpg
http://farm4.static.flickr.com/3223/2947134645_55659f0d12_o.jpg
http://farm4.static.flickr.com/3061/2947134743_017eee77d3_o.jpg

Thank you very much again for the answers ..

gyphie's picture

SVN Updated

The SVN has been updated with an "alpha 2" version that is mostly working. The documentation hasn't been updated yet. A few new settings have been added to handle displaying the button and a text overlay. The Simple Demo has been partially updated and tested in IE 7, Opera 9.x, Safari and FF 3.0 with the latest Flash Player 10 on Windows Vista x64.

Hopefully we'll have an official release with docs and the works in a few days.

Jorger's picture

Is great news!

We are waiting for this launch, thank you very much to find a solution to this problem, SWFUpload is a wonderful library very easy to manage, congratulations on this magnificent application

This library has helped me a lot in applications that have been developed, this news makes me very happy.

See you soon!