Flash 8 Actionscript 2.0 FileReference Upload issues

28 04 2008

I’ve had several problems with this that only affect the Mac version of the Flash Player – so frustrating – the joy of the Flash Platform is supposed to be that you don’t have disparate platforms to test! :( Anyhow if you’re struggling with this…

Add an extra output from the server to trigger onComplete on a Mac as outlined in Abdul Qabiz’s lovely post here:
http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/workaround_file_1.php

Our ASP.NET backend had no trouble with this and even though the onComplete function was not the one throwing the error in my AS – fixing this seemed to have a domino effect of pleasurable error freeness. One point of note; contrary to many posts I have read; this deos not appear to be fixed in Flash Player 9 for Mac so do it anyway (can’t hurt)

Also maybe try:

- Making sure the FileReference Object never drops out of scope/gets removed too early

- Making sure you have a handler for onCancel (good for debugging)

- Using Delegate.create to specify the instance to handle:

this.referenceListener.onSelect = Delegate.create(this, refOnSelect);

Also be aware that you basically can’t send data back with the onComplete event:

http://www.mehtanirav.com/2006/04/29/filereference-on-mac-type-is-not-available/#comment-1252

We created a getUploadStatus Web Service that we called aftewards with the same UID we’d posted alomg with the upload to get around this.

P.S There is a FileReference.onUploadCompleteData event but it only works in Flash 9.0.28 and up…


Actions

Informations

One response to “Flash 8 Actionscript 2.0 FileReference Upload issues”

24 08 2008
Kasper (14:13:36) :

Hi, – I’m using filereference to upload some images to a server, – but!! it a lotus domino server, – and my problem is that it looks like everything works just fine, – except, – I can’t see any of my files after upload, – I have an “uploader” on to see the procentage uploaded and it’s working fine, – also the onComplete event is trickered so one should think that something was working.

If I just make a html form an upload from that it works fine, – the files are there and everything, – but no through flash and filereference.

HELP!!!

Kind regards

Kasper

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>