When using FileReference.browse(), you can specify the types of files
you want to allow in an array. For example:
var typeLIst:Array = [{description: "Image files", extension:
"*.jpg;*.gif;*.png", macType: "JPEG;jp2_;GIFF"}, {description: "Flash
Movies", extension: "*.swf", macType: "SWFL"}];
myFileReference.browse (typeList);
The example above would limit the selectable files
to .jpg, .gif, .png, and .swf. Each element in the array is an
object with a description, extension, and macType property. If you
remove the macType property from the object, then the files will
still be filtered by extension on the Mac, but should still be
selectable.
- Josh
On Mar 15, 2006, at 7:43 AM, Michael Kønig wrote:
I am not completly sure what you mean. I have tried and i cant
select pictures created on a MAC or a PC so I guess that cant be
the issue...?
From: Josh Buhler <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list
<flashcoders@chattyfig.figleaf.com>
To: Flashcoders mailing list <flashcoders@chattyfig.figleaf.com>
Subject: Re: [Flashcoders] Uploading file problem on MAC
Date: Wed, 15 Mar 2006 07:30:05 -0700
When specifying the file types that are allowed to upload, are
you specifying a macType as well? If a file wasn't actually
created on a Mac, it won't have a macType, and won't be
selectable, even if it's still technically of the type you want
to allow.
Setting the macType isn't required, and the list of extensions
used by Windows to filter the files will still work on the Mac,
so I'd just remove the macType specification.
- Josh
On Mar 15, 2006, at 6:34 AM, Michael Kønig wrote:
I made an app where the user can upload pictures to the swf
file. Works finr in IE and Firefox on PC. However, on the Mac,
when the browser dialog box comes up all files are non-
selectable. I can get the browse window up, but I cant select
any files?
Has anyone experienced this before?
I hvae found that there are problemes with MAC and the
onComplete call, but cant find anything on not being able to
select files in the first place.
Can anyone help.
/M
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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