Re: [Flashcoders] flash 8 file reference upload on macs
I am using php and 10.4.4 with flash player 8.5 but it has never worked on any version of flash player 8 on 10.4.1 upwards with php never used cold fusion (too expensive) I adjusted my code to use the onProgress rather than the onOpen - continues to work like a charm on pc but does not show the onProgress message or onComplete messages I have set on the mac How to I monitor and manually fire the onComplete event ?? I know I now have bytesLoaded and bytesTotal I hope ! Does it/ will it work in AS3 ?? is it different ? bar being in a package I thought I would really enjoy the file upload stuff in flash 8(get away from the php/html forms), but as a poor mac guy I get stuffed with things that only pc users can enjoy.same old same old i guess (lightroom was a change tho !!) Thanks again Adam On 3 Jan 2006, at 23:09, bryan.rice wrote: On Jan 3, 2006, at 5:31 PM, Ryan Matsikas wrote: We've expeirenced this problem on a few occasions, the easy work around is to monitor the onProgress event and manually fire the complete event. Oddly enough, I have experienced the opposite and in found you can't rely on the onProgress event on all Macs: "File upload progress cannot be determined on Macintosh platforms earlier than OS X 10.3. The onProgress event is called during the upload operation, but the value of the bytesLoaded parameter is -1, indicating that the progress cannot be determined." Weird. Were you able to figure out a pattern as to what files under what circumstances did not fire the onComplete event? What server-side processor are you using (I have only ever used it with ColdFusion)? blue skies, bryan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flash 8 file reference upload on macs
On Jan 3, 2006, at 5:31 PM, Ryan Matsikas wrote: We've expeirenced this problem on a few occasions, the easy work around is to monitor the onProgress event and manually fire the complete event. Oddly enough, I have experienced the opposite and in found you can't rely on the onProgress event on all Macs: "File upload progress cannot be determined on Macintosh platforms earlier than OS X 10.3. The onProgress event is called during the upload operation, but the value of the bytesLoaded parameter is -1, indicating that the progress cannot be determined." Weird. Were you able to figure out a pattern as to what files under what circumstances did not fire the onComplete event? What server- side processor are you using (I have only ever used it with ColdFusion)? blue skies, bryan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flash 8 file reference upload on macs
We've expeirenced this problem on a few occasions, the easy work around is to monitor the onProgress event and manually fire the complete event. Cheers, Ryan On 1/2/06, Adam Procter <[EMAIL PROTECTED]> wrote: > > Hello, > Any body know or have seen this before ? > Thanks Adam > > I have used the file reference to upload files and report in a dialog > box if > successful. > > This works fine when tested on IE on windows, but although the file > uploads ok from a Mac it does not run the onComplete command and so > the user does not think it has uploaded , it just says Uploading and > goes > not further (although the file has uploaded) > > Is this a mac player issue ? I have tried on Firefox and Safari > > Code below: > > //Allow this domain > System.security.allowDomain("http://meanwhile.luton.ac.uk/";); > import flash.net.FileReference; > // The listener object listens for FileReference events. > var listener:Object = new Object(); > > // When the user selects a file, the onSelect() method is called, and > // passed a reference to the FileReference object. > listener.onSelect = function(selectedFile:FileReference):Void { > //clean statusArea and details area > gui.statusArea.text = details.text = "" > // Flash is attempting to upload the image. > gui.statusArea.text += "Attempting to upload JPEG" + selectedFile.name > + "\n"; > // Upload the file to the PHP script on the server. > selectedFile.upload("upload.php"); > removeMovieClip("newTip"); > }; > > // the file is starting to upload. > listener.onOpen = function(selectedFile:FileReference):Void { > gui.statusArea.text += "Uploading " + selectedFile.name + "\n"; > }; > > // the file has uploaded > listener.onComplete = function(selectedFile:FileReference):Void { > // Notify the user that Flash is starting to download the image. > gui.statusArea.text += "Upload finished.\nThanks " + selectedFile.name > + " now online\n"; > > }; > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] flash 8 file reference upload on macs
Hello, Any body know or have seen this before ? Thanks Adam I have used the file reference to upload files and report in a dialog box if successful. This works fine when tested on IE on windows, but although the file uploads ok from a Mac it does not run the onComplete command and so the user does not think it has uploaded , it just says Uploading and goes not further (although the file has uploaded) Is this a mac player issue ? I have tried on Firefox and Safari Code below: //Allow this domain System.security.allowDomain("http://meanwhile.luton.ac.uk/";); import flash.net.FileReference; // The listener object listens for FileReference events. var listener:Object = new Object(); // When the user selects a file, the onSelect() method is called, and // passed a reference to the FileReference object. listener.onSelect = function(selectedFile:FileReference):Void { //clean statusArea and details area gui.statusArea.text = details.text = "" // Flash is attempting to upload the image. gui.statusArea.text += "Attempting to upload JPEG" + selectedFile.name + "\n"; // Upload the file to the PHP script on the server. selectedFile.upload("upload.php"); removeMovieClip("newTip"); }; // the file is starting to upload. listener.onOpen = function(selectedFile:FileReference):Void { gui.statusArea.text += "Uploading " + selectedFile.name + "\n"; }; // the file has uploaded listener.onComplete = function(selectedFile:FileReference):Void { // Notify the user that Flash is starting to download the image. gui.statusArea.text += "Upload finished.\nThanks " + selectedFile.name + " now online\n"; }; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders