View Full Version : Gallery With Downloadable Images In Flash CS3 Web-site
LeonJack
July 29th, 2009, 07:38 AM
Hello! I have a Flash (CS3) web-site up and running. I would like to add a Gallery page, which has a set of thumbnails. When a thumbnail is clicked, its corresponding large image will appear.
My problem is, that I want this large image to be downloadable – ie, the user right-clicks and selects “Save As” from the menu, chooses a location and downloads the file. I know this can’t be done directly from Flash.
What is the best way to do this?
I can use AS3 but don’t know HTML, etc – but willing to learn.
Any help greatly appreciated.
Or is this feature included in any book or tutorial you know of?
Thank you!
mrE
July 29th, 2009, 08:32 AM
Personally, I think the functionality you're looking for is annoying, as a user. I don't want to download a jpg just to view it. Whenever I see this, I just run away from the site unless there are no other sites providing what I need.
I've never done this, but you could attempt to use php or asp to force a download of specific file names. Just Google "force download of file php."
If you don't know much about HTML, I'm guessing you don't know much about PHP either. I'll look into it later if you're still unable to find something on your own. I know there's a way to do it.
999
July 29th, 2009, 10:01 AM
Personally, I think the functionality you're looking for is annoying, as a user. I don't want to download a jpg just to view it.
He's not forcing them to download it for viewing, he's giving them the option to save the image if they want.
I know this can’t be done directly from Flash.
Both the right click and save to options can be accomplished in flash using flash's custom context menu and filereference.
mrE
July 29th, 2009, 12:43 PM
oh.
joran420
August 2nd, 2009, 04:04 AM
although ppl dont normally right click on flash stuff probably better to just have a download button
to make it download...just do a getURL to a php page that adds the header type as ocetstream/application....i think thats it...
or just use fileref
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002210.html
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.