ActionScript 3.0 :: Make A Button That Downloads A Zip File?
Nov 19, 2010How do i make a button that downloads a zip file
View 1 RepliesHow do i make a button that downloads a zip file
View 1 RepliesI have a movie I want to make available for download, but when i use getURL, it open the movie, I want it to download directly to people's desktop so they can keep the movie.
View 2 RepliesI have a webpage with a video component (swf file) with a separate .flv file and skin. The .flv file is intended to progressively load from the webserver.
In the swf file I have set autoplay=false to stop the move playing when the page is loaded. This works fine.
However, the problem is that the movie still downloads in the background. i.e. Each time the page is loaded, the .flv file is being loaded.
Is there a way to stop the .flv file being loaded until the Play button is pressed in the player?
I have set up a progress bar file that in which i have imported my .swf file. Is there a way I can start playing the flash movie before it is fully downloaded. Not sure if this is a buffering or streaming question. Lets say it starts playing when it's downloaded at least 50% of it.
I've looked up and tried several ways, but i think i am confusing myself more then helping.
loadingBar.scaleX = 0;var loader = new Loader();loader.load(new URLRequest("coyoteslide.swf"));loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);loader.contentLoaderInfo.addEventListener(Event.COMPLETE,showLoadResul t);
[Code]...
I'm doing a site that needs to download an mp3 sample clip from the serverwhen a text link is clicked. The whole site is in Flash and am using MX. Tried the getURL > didn't work. Saw a tutorial here but that oneplays the mp3 file right away. I want the user to be able to save the fileto their hard disk and play it from there.
View 2 Repliesi understand that you have to have a .zip file usually to force a browser to download the file using the getURL command to the URL of the .zip file. But when i have a link in a pop-up page, it just gives me a error 404 page
so far the AS looks like this
on (press){
getURL(www.troyblank.com/download/beeswax.zip);
}
I'm doing a site that needs to download an mp3 sample clip from the server when a text link is clicked. The whole site is in Flash and am using MX. Tried the getURL > didn't work. Saw a tutorial here but that one plays the mp3 file right away. I want the user to be able to save the file to their hard disk and play it from there.
View 4 RepliesI want to make a file that that has a register button where the user can put in their name, username and password. Then i want the user to be able to be logged in with the username and password they put in
View 10 RepliesI am trying to make a button work in a Flash cs4 file using as2. It is a template I am modifying from DreamTemplate. I don't know what I am supposed to change and exactly what I should change that unknown code to Here is the code I have:
[Code]...
As you can see I have tried to replace the url that was in the quotes and it does not work.
How do I make a button allow the viewer to download a .doc file? I've used this code to open a pdf file in a new window and it works but not for a .doc??
on (press, release) {
getURL("myfile.pdf", "_blank");
}
I know how to program a button to get a URL loaded:
[Code]...
But how would I tell the button to do the same thing for a file located on the hard drive? I want the file to load in the web browser, but I am making a presentation CD and I want it to grab a file off the CD as opposed the internet in case the person viewing the CD does not have internet access. keeping the file path structure similar on the server this should work on the CD as well as the server, correct?
I created a simple interface for our laptop users to use to call files to change internet settings. Most of the files are batch files but I have one .exe and two registry setting files that change proxy settings. I want buttons that will call each file when clicked. Seems simple but I have been trying to figure this out and I'm getting no where. I'm attaching my flash file. It's a flash cs4 file. Can I not attach the script to each button? For some reason I thought I used to do it this way but when I highlight it it says I cannot attach script to the object.
View 6 Replies[Code]....
I need to make the back and forward button that goes to the next/previous block in XML file.
I have a flash application that plays .mp3 files. I use the Sound object and the .loadSound method. It is quite easy for someone to download the mp3 files from say a plugin for Firefox called DownloadHelper, or using the Safari Activity window. Is there a way to protect against this?
View 5 RepliesMy client wants to make some of his original songs available for download. How do I script a button to begin downloading? How do I setup the MP3 file? Should I just place it in a folder on the server or make it a part of an HTML file?
View 5 RepliesI've a grid view in flex, one of the columns is rendered like this:
[Code]....
now I've a problem that the function in button click is not being recognized. It says "call to a possibly undefined function" even though it was defined. What is wrong with this? How do i make a button in a grid call a function in the same mxml file??
I am trying to setup a way to sell my music downloads through paypal with a "name your price" method.I want to use a textinput component. If the person types 0 (zero), it will take them to the DOWNLOAD PAGE. If they type in any other positive number, it will take them to paypal with that amount as the unit price.This is an editable link to a paypal item:URL...[code]within that link, there is a code for the price. it its "amount=1234" is there any way i could make it that whatever the person types into the textinput will be put into that code and then they are sent to that link?
View 1 RepliesI'm on a laptop and for the past day or so I downloaded adobe flash about 10 times and it doesnt seem to work. whenever I try to watch something or have a flash ad on a website, I get a message that says "install missing plugins". I click on it, and it takes me to the flash download page but it doesn't seem to work. I'm not sure if this has anything to do with this, but it says by the installation instructions that I would need to press "run", I only have an option to save the file.
View 1 RepliesI want to get a flash game that loads the contents of the game. When i download the swf, it's just the loader so it's useless. I need the full contents.
View 1 RepliesWe have FMS interactive configured to do RTMP and HLS streaming. However the clips still can be downloaded through [URL]..Is there a way to disable progressive downloads? While at it is there a way to disable HDS also? I want to allow HLS and RTMP only.
View 7 RepliesWhats the general industry concencus on who hosts video content for polite downloads on banner ads. Will the ad vendor host video content or is it expected for me to find a place to host the content (aka flash coms server? is a FCS necessary(have a feeling it a must right))
View 0 RepliesI am using mcl ( moviecliploader ) class to download images for a photo book;
when a user mouseover's a thumbnail, the corresponding fullsize img is downloaded;
PROBLEM: 1 - a user can move their mouse quickly over many thumbs;
2 - mcl class doesn't seem to have a way to stop downloading
3 - therefore it is realistic that the mcl could be forced to download 10-15 images simultaneously
4 - possibly the thumb that the user actually wants is last in the que;
Is it possible to pause / resume downloads with the URLStream object?
View 2 RepliesI am trying to setup a way to sell my music downloads through paypal with a "name your price" method.I want to use a textinput component. If the person types 0 (zero), it will take them to the DOWNLOAD PAGE. If they type in any other positive number, it will take them to paypal with that amount as the unit price.
This is an editable link to a paypal item:
https://www.paypal.com/cgi-bin/websc...item_name=item name&amount=1234%2e00¤cy_code=USD&button_sub type=products&no_note=1&no_shipping=1&rm=1&bn=PP%2 dBuyNowBF%3abtn_buynow_SM%2egif%3aNonHosted
within that link, there is a code for the price. it its "amount=1234" is there any way i could make it that whatever the person types into the textinput will be put into that code and then they are sent to that link? some people recommended php and html, but i feel like i could do this in flash.
this is my code for photogallery.there will be 61 images loaded in this array.how can i make an AUTO button which will make a slideshow,showing all the images in array?
arrayrow = new Array()
arrayrow=[
["00.jpg","0","sajkad","hjsgadhj"],[code].....
Im have an flv playing on my stage. I want to make a mute button for the video that can instantly make the volume 0 or 100 depending on what it is.So i have tried using this code:
ActionScript Code:
m.onPress = function() {
[code]........However, it doesn't seem to work.
I have a map of the US and each state has a rollover that changes the color of the state...what i am trying to figure out is how to click on the state and have text appear to the side of the US map and have that text stay up until the user clicks on another state.
View 16 Replies* I have a flash project called contact
* The document class is ContactClass
I am trying to make a sprite button with graphics and can't make it work. I have successfully added text fields so I know the path is correct. I suspected my code was correct and confirmed it should be, after reading several tutorials showing the process for creating sprite buttons with graphics. Anyway, I imported nearly every class on Earth, but certainly everything which needs to be. Stage is gray and 800x600.The graphics code by itself with appear, but not when linked to the sprite. Also, the sprite won't appear no matter what. Another interesting piece of the puzzle: nothing will trace, not even objects such as textfields which actually appear and function on the stage when I text the code.
public class ContactClass extends Sprite {
public function ContactClass() {
var home_btn:Sprite = new Sprite();[code]....
is there a way to put html in flash?also, i want to put some files into my site for people to download and its a flash site, how do i make that work?
View 4 RepliesWhat button event should I use to make the program understands to DO SOMETHING only when the button is pressed/dragged. In my sample code below, I want something to happens only if the button is dragged beyond 200 in y axis. I tried onRelease, onRollOver and onDragOver but still not working
[Code]....