FileReference is great, but what about downloading an image rather than uploading?
Is there a way to do this in Flash 8? Say, being able to save a certain movieclip as a JPG? Or rather BMdata of that movieclip as a JPG?
Joe
FileReference is great, but what about downloading an image rather than uploading?
Is there a way to do this in Flash 8? Say, being able to save a certain movieclip as a JPG? Or rather BMdata of that movieclip as a JPG?
Joe
Hmmmm good question.
I’ve seen sites do something like this, so I supose it’s possible… but how it’s done I don’t know. I supose you need some sort of server solution that will parse some data into a jpg.
Maybe you can send a “cached as bitmap” movieclip to php and then give the user an url with a jpg.
I’ll keep an eye on this post, this is interesting.
You’ll need a button with the instance name of **download_bttn
**
import flash.net.FileReference;
var myFileRef:FileReference = new FileReference();
download_bttn.onPress = function() {
myFileRef.download(“file url”, “default file name.file extension”);
}
Untested but should work.
Thanks for the replies and code guys.
Souled - this code is assuming that you’ve somehow uploaded a movieclip or BMD using PHP, do you have any idea how that is done? Unfortunately I’m beyond a PHP noob, I’m a PHP blim, all I know is $ is part of it’s syntax As long as that is possible, to upload a MC or BMD to my server with PHP, then have the user download it, then it would have the result I want.
Pier25 - I’ve actually never seen it, but I suddenly had an idea to use it, so wondered if it was possible
Do you remember where you’ve seen it Pier?
Awesome, thanks Glos. Good old Mario
[QUOTE=rumblesushi;2328215]
Pier25 - I’ve actually never seen it, but I suddenly had an idea to use it, so wondered if it was possible
Do you remember where you’ve seen it Pier?[/QUOTE]
Hm let me think…
http://www.rhythmoflines.co.uk/
When you finish your drawing you can make a picture of it, but maybe the pixels of the picture are not direct pixel screens, instead they could be generated with parameters, or something…
:: Copyright KIRUPA 2024 //--