Re: [Flashcoders] FileReference and Getting File Path

2006-06-16 Thread David Rorex
Sent: Thursday, June 15, 2006 1:56 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] FileReference and Getting File Path Not sure if this will help, but maybe you can copy the image to the users cache to display it. // make a working copy of a file on the user's disk var fileRef

[Flashcoders] FileReference and Getting File Path

2006-06-15 Thread azsl1326-email
I am using the FileReference Class to upload images. Is there a way to get the path to the selected file? Ideally, I would like to preview the image before being uploaded and need the path. Thanks for any and all replies. ___

Re: [Flashcoders] FileReference and Getting File Path

2006-06-15 Thread Mike Boutin
Is it possible for you to just grab the name after it is selected from the FileReference object? var listener:Object = new Object(); listener.onSelect = function(file:FileReference):Void { trace(file.name); }; Boots [EMAIL PROTECTED] wrote: I am

RE: [Flashcoders] FileReference and Getting File Path

2006-06-15 Thread azsl1326-email
Thanks for the reply. I can get the name, however it doesn't provide the path (i.e. c:\images\image001.jpg) Mike Boutin mikeb at juicystudios.com Thu Jun 15 13:03:32 EDT 2006 Is it possible for you to just grab the name after it is selected from the

Re: [Flashcoders] FileReference and Getting File Path

2006-06-15 Thread Mike Boutin
Not sure if this will help, but maybe you can copy the image to the users cache to display it. // make a working copy of a file on the user's disk var fileRef = new FileReference(); if (fileRef.browse([Text Files, *.txt]) { fileRef.copyIntoCache(backup-data.txt); var newFile = new

Re: [Flashcoders] FileReference and Getting File Path

2006-06-15 Thread Mike Boutin
: [Flashcoders] FileReference and Getting File Path Not sure if this will help, but maybe you can copy the image to the users cache to display it. // make a working copy of a file on the user's disk var fileRef = new FileReference(); if (fileRef.browse([Text Files, *.txt]) { fileRef.copyIntoCache