ActionScript 1/2 :: Compress Files In Zip For Downloading?
Apr 23, 2009I need to compress some files in a zip or any other wich will be selected for the client for downloading.
View 5 RepliesI need to compress some files in a zip or any other wich will be selected for the client for downloading.
View 5 RepliesUsing an unobtrusive technology (HTML5, Flash, Java Applet) which runs in the browser, is it possible to handle compressing of files before being uploaded to the server? I'm building software which will be consumed by a lot of slow connections and by non-computer-savvy users and circumventing an application install would be very beneficial for them.
View 1 RepliesI have wmv files that i need available for download from answf (both swf and .wmv's will be on a DVD or CD). The wmv files arein a folder named WMV which is at the same level as the swf. I justwant the user to be able to click on a button and select "Save As"and download the file. I've been trying to use the download()method but keep getting IO Errors and also tried usingnavigateToURL but it tries to download it through firefox (no "SaveAs" option, just tries to open with Windows Media Player) andwindows media player says it can't find the fil
View 7 RepliesFor a project we need to download and save pdf files on an IPAD device for offline use through an AIR for iOs application. After a lot of searching I haven't found much information on this subject. My question is, can it be done, and if so, can you provide us with some pointers to lead us in the right direction.
View 1 Replieshere is what i am trying to do. i would like to post action script files onto my server space for people to download, which i can do. Question is, is it like a print command for them to download the files to there computer for use? or what is the best way to go about this? The files are inside a folder called action script and then the sub folders depending on the file you are looking for.
View 1 RepliesI work on a Flex application that creates compressed files and uploads them on a server. The files are created with ByteArray.compress method, which is zlib compression. I can decompress them using Python API on the server but I prefer to keep the files compressed there. I want to be able to download and decompress the files later, however WinZip and WinRar fail to decompress them. When I google for zlib utility, I only find zlib dll library. I need a simple application for Windows (and/or Linux)
View 1 RepliesI'm working in an audio player. I'm looking for a way to prevent users download the mp3 files by following the file url ( for example: by using the Firebug o similar).
View 1 RepliesI'm trying to set up flash's FileReference class to download files from a publicly accessible web directory to a specific location on my hard drive, without having to use the browse dialogue that is automatically triggered using the download() method. Anyone know how to predefine a location for the downloaded file so I don't have to trigger the dialogue? [URL].
View 1 Repliesi was thinking about stopping internet download manager and all the other applications from downloading from my mp3 flash player,
View 6 RepliesI'm working in an audio player. I'm looking for a way to prevent users download the mp3 files by following the file url ( for example: by using the Firebug o similar)
View 2 RepliesIs there a way to download some files directly to the user disk, without browsing? (assuming they give permission of course).FileReference does this, but does not allow to directly save files to the hard disk (if not through browsing).
View 1 RepliesI'm trying to compress my swf file to 50k from 350k does anyone know how to do it, ive tried exporting the file as a movie then importing it as a video into a new file.
View 5 RepliesI'm using this code to embed an image into my flash file:
[Embed(source="images/grass01.png")]
As you all know, if you embed an image, it comes in without any compression at all.
Is there any way to compress this image without having to do it manually? (I have hundreds of images that will be embedded).
I came across this link [URL] but I assume this is a flex only thing, as I get an error if I try putting the compression variable in my embed tag.
I'm using this code to embed an image into my flash file:[Embed(source="images/grass01.png")]As you all know, if you embed an image, it comes in without any compression at all.Is there any way to compress this image without having to do it manually? (I have hundreds of images that will be embedded).I came across this link URL...but I assume this is a flex only thing, as I get an error if I try putting the compression variable in my embed tag.
View 1 RepliesI know Flash 11 has native support for handling LZMA compressed swfs, is there a way to use LZMA compression with AMF objects?
View 1 RepliesI have to load a large xml in flash and I'm trying to send it compressed. To do that I tried to zlib compress the string and send it base64 encoded. In flash I turn the string into a byte array and use its uncompress() method. So far I tried:ZLIB.NET
byte[] bytData = System.Text.Encoding.UTF8.GetBytes(str);
MemoryStream ms = new MemoryStream();
Stream s = new zlib.ZOutputStream(ms, 3);
[code]....
Out of a drawing I'm generating a PNG and upload it as a Base64 string via PHP to my server. Is it possible to compress the Base64 string in AS3?
[code]...
I have a FileReference that is being uploaded. But before upload, I call the compress() method on the ByteArray of the FileReference i.e. fileReference.data.compress().
But I observe that the uploaded file is the raw file and not the compressed file.
Is this a Flex bug or expected behavior? The data field in the FileReference is read-only. Does that come into play?
The keyword is "sometimes".
I recompiled a Flash 8 project in Flash CS3 recently and noticed that some of the sound effects sounded like a painful chippy mess. It sounded like the mp3 bitrate was at the lowest Flash outputs (16kbps). I compiled again, and all the problems went away. Then I compiled again and different sounds went chippy!
Fine, whatever. Maybe it's a glitch between project versions.
This week I built a project from the ground up in Flash CS3 with AS 3.0 . The chippy compression is still there and happens most of the time. Both my global and local compression settings for sound clips are mp3, 160kbps, Stereo.
I`ll be dealing with this few hours now, so I manage to optimize compiled swf file for only 5kb, and I need to achieve 15.
So, what are the options to prevent unnecessary file size?
This is important since if it's growing too fast there won't be enough space.
View 1 Repliesim using an open source program called Festival that generates text to speech, and in ubuntu i call its method text2wave that converts text into a wave file. I am looking into converting short paragraphs to wave files, but the problem is that each wave file ends up being approximately 1.2MB in size. The wave file is recorded at 16khz, and while recording at 8khz halves the size of the wave file (sacrificing sound quality), the wave file is just simply too large. These paragraphs have to be served many times to the clients and our server can not support that much bandwidth. Is it possible to compress the file on the server, and decompress it in my flash script (on the client side) and play the wave?
View 1 RepliesI recompiled a Flash 8 project in Flash CS3 recently and noticed that some of the sound effects sounded like a painful chippy mess. It sounded like the mp3 bitrate was at the lowest Flash outputs (16kbps). I compiled again, and all the problems went away. Then I compiled again and different sounds went chippy!Fine, whatever. Maybe it's a glitch between project versions.
This week I built a project from the ground up in Flash CS3 with AS 3.0 . The chippy compression is still there and happens most of the time. Both my global and local compression settings for sound clips are mp3, 160kbps, Stereo.
Flash 9.0
Mac OS X 10.5.4
mp4 file sometimes downloading and sometimes playing. what is the different between this two links?
1)if you open this link on the chrom, the movie will be dwonload [URL]
2) if you open this url on chrom, this mpvie will be playing. [URL]
I have a main page with a menu that loads into an MC a new MC according to which button is pressed.Now, the loading of the MC works fine but the MC loaded doesn't work because it gets stuck at the loading bar at the beginning of it.
In internet the file doesn't work and gets stuck at the loading bar but when I play the file in flash it works only if I simulate the download so, is it possible to force the downloading of the file also on internet?I put you a bit of [code]...
I've tried downloading a plug-in, and tried a few things, but can't get it to show up.Is there anyone here who has Wordpress and has tried using Flash with it?
View 6 RepliesI hope you can help with a problem thats causing me stress!.I'd like to let users download mp3 from my site.I'd just like to click the button and up pops the windows prompt that says "download file" and "choose destination folder" etc.
View 3 Replieswhen I accidentally deleted an Adobe Flash 10 Plugin that she needed to play a part of her computer game. Her computer is not hooked up to the internet. Is there a way I can put the plugin on a jump drive and transfer it properly from my computer to hers?
View 1 RepliesI'm trying to set-up a file download in a swf. It's a autocad .dwg file. I'm using the get url command and it's working fine with pdf's and doc's but getting a "page cannot be found error" with the .dwg file.
View 5 RepliesHow to unload a swf file when i click on close button and to also go to another frame in timeline. I would like to know if when I unload will this cancel the downloading of the f4v video? I have an swf to load, here is the code.
stop();
vid1_btn.addEventListener(MouseEvent.CLICK,
mouseClickHandler289);
function mouseClickHandler289(eve:MouseEvent):void {
var myLoader:Loader = new Loader();
myLoader.x = 300;
myLoader.y = 122;
addChild(myLoader);
var url:URLRequest = new URLRequest("nov.swf");
myLoader.load(url);
}