Auto download when clicking link text

i have some text on my page:

blah blah blah

i want to get it so that when you click blah blah blah, it will automatically download blah_blah_blah.doc or promt in windows to download the file. anyone know how to do this?

Method 1) If inserting the text directly into the text field manually, you can select the word you want to be a link, then you can open up the properties panel (CTRL+F3) and at the bottom there is an input text area with a picture of a chain link next to it, you can put in the URL to your file there.

Method 2) If inserting the text dynamically through AS or an external file you can HTML enable the text box allowing you to use HTML Font Formatting tags, including the A HREF link tag.

what about as far as downloading music? i have some of my own original music that i want people to download…but when i test and click it, it opens up a new window with quicktime playing the song, and it doesnt go to a download window…?

Put it in a .zip file :slight_smile:

At least that is the only method I can think of since Right Click and Save As… can’t apply in Flash.

i’ll try that…thanks.

No problem :slight_smile:

you could try the inconvenience of changing the extension to a non-exisistant one (like myfile.urp). Then tell the user to change the extension back to myfile.mp3 after download…

As I said, it would be inconvenient, but it works…

Rev:elderly:

you know I’m not 100% sure of this, but I think that the quicktime player will allow you to save anything that is loaded into it.

may be a third option.

also… I don’t know about this… but can you set a flash link to an ftp address? If so, and you have an ftp folder available from your service provider then it should download instead of playing.

again… I’m not 100% sure of that either. Just a thought

i just zipped the files and they work that way. one other thing. i have a pretty large text graphic with a lot of links within them. i have that text graphic fading in when that page opens up and i’ve done that with a simple motion tween and just key framing the alpha from 0% to 100% over 20 frames. When i test the movie and it gets to the part where the text is going to fade in, it slows down considerably until that animation of the text is done and then everything else seems to run at normal speed. (i have other animation on the page). is the best way to deal with is to break up the text or is there something else i can do?

“ask” already answered a similar question here: [link]

this link doesn’t really answer my new problem…thanks though…

Oh well, u got me wrong, did u read the third post?

yeah i did, i figured that out though.just zipping the file will force IE to download the file. but i had a NEW question or problem i posted about a text graphic and animation and it bogging the page down…maybe i should post in a new thread…

Yeah, i was answering since the title was about downloading, its better not mixing up all questions in one thread, better to create a new thread with a specific title that gets members attention. :slight_smile: