[flexcoders] Re: Setting the desktop directory as the source of an image in a flex app
It can in AIR. See http://livedocs.adobe.com/flex/3/langref/flash/filesystem/File.html File.desktopDirectory --- In flexcoders@yahoogroups.com, James garymoorcroft_...@... wrote: Can this be done? My app creates an image folder on the user's desktop and creates image snapshots in it. I then want these images to be displayed within an image component so a user can preview them. But of course everyone's desktop directory is different. For example mine is c/users/james/desktop but obviously others would be different. The folder that my app creates on the desktop is called createdimages so let's say I had an image component in my app and the user created an image in this folder via my app called image1.jpg what code would I need to apply to the source property of an image component to make this image it's source? :- source=''
[flexcoders] Re: Setting the desktop directory as the source of an image in a flex app
Cheers. Yep unfortunately I'm working in a regular web based flex app now and I wanted it so that it would create images on the users desktop in the folder and then dynamically set the source of an image component to these images so the user can preview the image they've just created within the app itself but I guess that's not possible and I'll have to leave out the preview bit. :-( --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: It can in AIR. See http://livedocs.adobe.com/flex/3/langref/flash/filesystem/File.html File.desktopDirectory --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: Can this be done? My app creates an image folder on the user's desktop and creates image snapshots in it. I then want these images to be displayed within an image component so a user can preview them. But of course everyone's desktop directory is different. For example mine is c/users/james/desktop but obviously others would be different. The folder that my app creates on the desktop is called createdimages so let's say I had an image component in my app and the user created an image in this folder via my app called image1.jpg what code would I need to apply to the source property of an image component to make this image it's source? :- source=''
Re: [flexcoders] Re: Setting the desktop directory as the source of an image in a flex app
Hi, You can try FileReference.load and on complete event you can show the preview of that image to user.Look at the following URL for example. But here you will be not able to store images on desktop :(. http://mxmlexamples.com/?p=766 Thanks Regards, Pravin Uttarwar | Perennial Systems pravin.uttar...@perennialsys.com | Cell: +91 9371288080 | Tel: +91 (020) 2421 1286 Ext:2007 On 8 April 2010 18:53, James garymoorcroft_...@yahoo.co.uk wrote: Cheers. Yep unfortunately I'm working in a regular web based flex app now and I wanted it so that it would create images on the users desktop in the folder and then dynamically set the source of an image component to these images so the user can preview the image they've just created within the app itself but I guess that's not possible and I'll have to leave out the preview bit. :-( --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, valdhor valdhorli...@... wrote: It can in AIR. See http://livedocs.adobe.com/flex/3/langref/flash/filesystem/File.htmlFile.desktopDirectory --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, James garymoorcroft_ict@ wrote: Can this be done? My app creates an image folder on the user's desktop and creates image snapshots in it. I then want these images to be displayed within an image component so a user can preview them. But of course everyone's desktop directory is different. For example mine is c/users/james/desktop but obviously others would be different. The folder that my app creates on the desktop is called createdimages so let's say I had an image component in my app and the user created an image in this folder via my app called image1.jpg what code would I need to apply to the source property of an image component to make this image it's source? :- source=''