|
View:
New views
16 Messages
—
Rating Filter:
Alert me
|
|
|
Flex Browse FileHi guys,
I'm trying to browse and select a folder from the local file system,i was reading about the FileReferenceList class to browse a file, but that does not let me select a folder, just a file, do you know how can I get Around this, or some source to read. I need to select a folder from the local system not a file. Thanks |
|
|
Re: Flex Browse FileNot sure if this available for flex, but for air: var file:File = new File(); file.addEventListener(Event.SELECT, dirSelected); file.browseForDirectory("Select a directory"); function dirSelected(e:Event):void { trace(file.nativePath); } -TH --- In flexcoders@..., "reversible_82" <reversible_82@...> wrote: > > Hi guys, > > I'm trying to browse and select a folder from the local file system,i was reading about the FileReferenceList class to browse a file, but that does not let me select a folder, just a file, do you know how can I get Around this, or some source to read. I need to select a folder from the local system not a file. > > Thanks > |
|
|
Re: Flex Browse FileNo, it seem like this class do not exist in flex, should be a way to do
this on flex, does anyone have an Idea? --- In flexcoders@..., "Tim Hoff" <TimHoff@...> wrote: > > > Not sure if this available for flex, but for air: > > var file:File = new File(); > file.addEventListener(Event.SELECT, dirSelected); > file.browseForDirectory("Select a directory"); > function dirSelected(e:Event):void { > trace(file.nativePath); > } > > -TH > > --- In flexcoders@..., "reversible_82" reversible_82@ > wrote: > > > > Hi guys, > > > > I'm trying to browse and select a folder from the local file > was reading about the FileReferenceList class to browse a file, but that > does not let me select a folder, just a file, do you know how can I get > Around this, or some source to read. I need to select a folder from the > local system not a file. > > > > Thanks > > > |
|
|
Re: Re: Flex Browse FileOn Friday 26 Jun 2009, reversible_82 wrote:
> No, it seem like this class do not exist in flex, should be a way to do > this on flex, does anyone have an Idea? FileReference.browse(); -- Helping to ambassadorially participate clicks-and-mortar materials as part of the IT team of the year, '09 and '08 **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. |
|
|
Re: Flex Browse FileThanks, but what I'm trying to accomplish is get the String with the
folder path, for example: "D:/Files/Pic", with "FileReference.browse();" I select the folder, so how could I get the String of the folder path... Thanks for your support --- In flexcoders@..., Tom Chiverton <tom.chiverton@...> wrote: > > On Friday 26 Jun 2009, reversible_82 wrote: > > No, it seem like this class do not exist in flex, should be a way to do > > this on flex, does anyone have an Idea? > > FileReference.browse(); > > > -- > Helping to ambassadorially participate clicks-and-mortar materials as part of > the IT team of the year, '09 and '08 > > **************************************************** > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. > > For more information about Halliwells LLP visit www.halliwells.com. > |
|
|
Re: Flex Browse FileAnnoyingly enough, it appears that you can't get the path in Flex, only in Air for "security" reasons I guess.
--- In flexcoders@..., "reversible_82" <reversible_82@...> wrote: > > Thanks, but what I'm trying to accomplish is get the String with the > folder path, > for example: "D:/Files/Pic", with "FileReference.browse();" I select > the folder, > so how could I get the String of the folder path... > |
|
|
Re: Flex Browse FileThis is bad..... the only way I think I can get around this is using an
applet inside an html wrapper inside a cotainer object. Thanks. --- In flexcoders@..., "Adrian Resa Jones" <noregrets62@...> wrote: > > Annoyingly enough, it appears that you can't get the path in Flex, only in Air for "security" reasons I guess. > --- In flexcoders@..., "reversible_82" reversible_82@ wrote: > > > > Thanks, but what I'm trying to accomplish is get the String with the > > folder path, > > for example: "D:/Files/Pic", with "FileReference.browse();" I select > > the folder, > > so how could I get the String of the folder path... > > > |
|
|
Re: Flex Browse FilePLEASE let me know if you come up with a solution! Thank you!
A. Resa Jones --- In flexcoders@..., "reversible_82" <reversible_82@...> wrote: > > This is bad..... the only way I think I can get around this is using an > applet inside an html wrapper inside a cotainer object. > > Thanks. > > --- In flexcoders@..., "Adrian Resa Jones" <noregrets62@> > wrote: > > > > Annoyingly enough, it appears that you can't get the path in Flex, > only in Air for "security" reasons I guess. > > --- In flexcoders@..., "reversible_82" reversible_82@ > wrote: > > > > > > Thanks, but what I'm trying to accomplish is get the String with the > > > folder path, > > > for example: "D:/Files/Pic", with "FileReference.browse();" I > select > > > the folder, > > > so how could I get the String of the folder path... > > > > > > |
|
|
Re: Flex Browse FileHi all,
As I have a similar situation with a Flex app, I came to the following that works for me: Any Flex SWF is running withing the client's browser and for security reasons (as already mentioned) Flex is always running in sandbox, contrary to AIR. But there is no reason why in the local environment, the user/client can't switch from his browser to his system tray, copy the full path of a certain file and paste it to, say, a TextArea in the Flex app. This of course doesn't give any access to the file through the Flex app, but I was only needing the full path... Thanks, George --- In flexcoders@..., "reversible_82" <reversible_82@...> wrote: > > Thanks, but what I'm trying to accomplish is get the String with the > folder path, > for example: "D:/Files/Pic", with "FileReference.browse();" I select > the folder, > so how could I get the String of the folder path... > > Thanks for your support > > --- In flexcoders@..., Tom Chiverton <tom.chiverton@> > wrote: > > > > On Friday 26 Jun 2009, reversible_82 wrote: > > > No, it seem like this class do not exist in flex, should be a way to > do > > > this on flex, does anyone have an Idea? > > > > FileReference.browse(); > > > > > > -- > > Helping to ambassadorially participate clicks-and-mortar materials as > part of > > the IT team of the year, '09 and '08 > > > > **************************************************** > > > > This email is sent for and on behalf of Halliwells LLP. > > > > Halliwells LLP is a limited liability partnership registered in > England and Wales under registered number OC307980 whose registered > office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, > Manchester, M3 3EB. A list of members is available for inspection at > the registered office together with a list of those non members who are > referred to as partners. We use the word ?partner? to refer to a member > of the LLP, or an employee or consultant with equivalent standing and > qualifications. Regulated by the Solicitors Regulation Authority. > > > > CONFIDENTIALITY > > > > This email is intended only for the use of the addressee named above > and may be confidential or legally privileged. If you are not the > addressee you must not read it and must not use any information > contained in nor copy it nor inform any person other than Halliwells LLP > or the addressee of its existence or contents. If you have received > this email in error please delete it and notify Halliwells LLP IT > Department on 0870 365 2500. > > > > For more information about Halliwells LLP visit www.halliwells.com. > > > |
|
|
Re: Flex Browse FileI am using something similar in one case where part of the path is a category but in other circumstances, this just wouldn't be acceptable in a software application. There are plenty of users who don't even know what cut & paste means. I really need a better solution...
--- In flexcoders@..., "grg_blls" <grg_blls@...> wrote: > > Hi all, > As I have a similar situation with a Flex app, I came to the following that works for me: > Any Flex SWF is running withing the client's browser and for security reasons (as already mentioned) Flex is always running in sandbox, contrary to AIR. > But there is no reason why in the local environment, the user/client can't switch from his browser to his system tray, copy the full path of a certain file and paste it to, say, a TextArea in the Flex app. > > This of course doesn't give any access to the file through the Flex app, but I was only needing the full path... > > Thanks, > George > > --- In flexcoders@..., "reversible_82" <reversible_82@> wrote: > > > > Thanks, but what I'm trying to accomplish is get the String with the > > folder path, > > for example: "D:/Files/Pic", with "FileReference.browse();" I select > > the folder, > > so how could I get the String of the folder path... > > > > Thanks for your support > > > > --- In flexcoders@..., Tom Chiverton <tom.chiverton@> > > wrote: > > > > > > On Friday 26 Jun 2009, reversible_82 wrote: > > > > No, it seem like this class do not exist in flex, should be a way to > > do > > > > this on flex, does anyone have an Idea? > > > > > > FileReference.browse(); > > > > > > > > > -- > > > Helping to ambassadorially participate clicks-and-mortar materials as > > part of > > > the IT team of the year, '09 and '08 > > > > > > **************************************************** > > > > > > This email is sent for and on behalf of Halliwells LLP. > > > > > > Halliwells LLP is a limited liability partnership registered in > > England and Wales under registered number OC307980 whose registered > > office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, > > Manchester, M3 3EB. A list of members is available for inspection at > > the registered office together with a list of those non members who are > > referred to as partners. We use the word ?partner? to refer to a member > > of the LLP, or an employee or consultant with equivalent standing and > > qualifications. Regulated by the Solicitors Regulation Authority. > > > > > > CONFIDENTIALITY > > > > > > This email is intended only for the use of the addressee named above > > and may be confidential or legally privileged. If you are not the > > addressee you must not read it and must not use any information > > contained in nor copy it nor inform any person other than Halliwells LLP > > or the addressee of its existence or contents. If you have received > > this email in error please delete it and notify Halliwells LLP IT > > Department on 0870 365 2500. > > > > > > For more information about Halliwells LLP visit www.halliwells.com. > > > > > > |
|
|
Re: Re: Flex Browse FileOn Thursday 02 Jul 2009, Adrian Resa Jones wrote:
> cut & paste means. I really need a better solution... Well, what's your use case ? Why do you care where the file comes from ? -- Helping to revolutionarily maintain content as part of the IT team of the year, '09 and '08 **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. |
|
|
Re: Flex Browse FileI want to provide a preview function prior to uploading a file. > > Well, what's your use case ? Why do you care where the file comes > from ? |
|
|
Re: Flex Browse File & VideoMaybe I'm missing something....Can you use the flex file browse as a source so that users can preview video before uploading it? Do I need to know where the file comes from? I saw another question about this here and did not see an answer.
--- In flexcoders@..., "Adrian Resa Jones" <noregrets62@...> wrote: > > > I want to provide a preview function prior to uploading a file. > > > > Well, what's your use case ? Why do you care where the file comes > from ? > |
|
|
RE: Re: Flex Browse File & VideoI've done similar things with AIR and images but not with video. Seems to me you might be able to do it with FileReference.load(), which gives you access to the btyearray of the uploaded file. Requires FP10.
-----Original Message----- From: flexcoders@... [mailto:flexcoders@...] On Behalf Of Adrian Resa Jones Sent: Tuesday, July 07, 2009 2:19 PM To: flexcoders@... Subject: [flexcoders] Re: Flex Browse File & Video Maybe I'm missing something....Can you use the flex file browse as a source so that users can preview video before uploading it? Do I need to know where the file comes from? I saw another question about this here and did not see an answer. --- In flexcoders@..., "Adrian Resa Jones" <noregrets62@...> wrote: > > > I want to provide a preview function prior to uploading a file. > > > > Well, what's your use case ? Why do you care where the file comes > from ? > ------------------------------------ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links |
|
|
Re: Flex Browse File & VideoIn AIR loading a video works fine.
In Flex (FP10) I was able to load the file as a ByteArray, but I don't know how to "process" it to view it on a VideoDisplay or FLVPlayback component. I asked that question in another thread, but got no answers. --- In flexcoders@..., "Battershall, Jeff" <jeff.battershall@...> wrote: > > I've done similar things with AIR and images but not with video. Seems to me you might be able to do it with FileReference.load(), which gives you access to the btyearray of the uploaded file. Requires FP10. > > -----Original Message----- > From: flexcoders@... [mailto:flexcoders@...] On Behalf Of Adrian Resa Jones > Sent: Tuesday, July 07, 2009 2:19 PM > To: flexcoders@... > Subject: [flexcoders] Re: Flex Browse File & Video > > Maybe I'm missing something....Can you use the flex file browse as a source so that users can preview video before uploading it? Do I need to know where the file comes from? I saw another question about this here and did not see an answer. > > --- In flexcoders@..., "Adrian Resa Jones" <noregrets62@> wrote: > > > > > > I want to provide a preview function prior to uploading a file. > > > > > > Well, what's your use case ? Why do you care where the file comes > from ? > > > > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > |
|
|
Re: Flex Browse File & VideoThanks Jeff & Gilbert.
I think that my only solution is to upload the video in order to preview it if I can't access the path. This is not an ideal solution! A. Resa Jones --- In flexcoders@..., "gilbert_mizrahi" <mizrahi@...> wrote: > > In AIR loading a video works fine. > In Flex (FP10) I was able to load the file as a ByteArray, but I don't know how to "process" it to view it on a VideoDisplay or FLVPlayback component. > > I asked that question in another thread, but got no answers. > > --- In flexcoders@..., "Battershall, Jeff" <jeff.battershall@> wrote: > > > > I've done similar things with AIR and images but not with video. Seems to me you might be able to do it with FileReference.load(), which gives you access to the btyearray of the uploaded file. Requires FP10. > > > > -----Original Message----- > > From: flexcoders@... [mailto:flexcoders@...] On Behalf Of Adrian Resa Jones > > Sent: Tuesday, July 07, 2009 2:19 PM > > To: flexcoders@... > > Subject: [flexcoders] Re: Flex Browse File & Video > > > > Maybe I'm missing something....Can you use the flex file browse as a source so that users can preview video before uploading it? Do I need to know where the file comes from? I saw another question about this here and did not see an answer. > > > > --- In flexcoders@..., "Adrian Resa Jones" <noregrets62@> wrote: > > > > > > > > > I want to provide a preview function prior to uploading a file. > > > > > > > > Well, what's your use case ? Why do you care where the file comes > from ? > > > > > > > > > > > > > ------------------------------------ > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > > > |
| Free embeddable forum powered by Nabble | Forum Help |