the mac file type for an mp3 will be (note the spaces in the strings - mac
file types are 4 characters) "MP3 " or "Mp3 ".....i think. mac file types
and pc file types are not the same.

check this article: http://www.tink.ws/blog/macintosh-file-types/

i did some stuff with FileReference a while back and concluded that it was
easier, and maybe safer to take the name, or type property of a
FileReference object and do a toLowerCase().indexOf("mp3") on that to ensure
the right file types.

On 10/29/06, Carl Welch <[EMAIL PROTECTED]> wrote:

I have an project that needs to allow users to only upload mp3 files.
It works fine on a PC. But on a mac the mp3 files are greyed out and
the user is unable to select a file. Here is my code below: What am I
missing?


var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
browse.onRelease = function() {
        upload.enabled = true;
        fileRef.browse([{description:"Audio files", extension:"*.mp3",
macType:"mp3"}]);
};


Thanks for your help...
--
Carl Welch
http://www.carlwelch.com
[EMAIL PROTECTED]
805.403.4819
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
John Van Horn
[EMAIL PROTECTED]
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to