Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Hyperlink To Download A File



Does anybody know how to make a link or button in flash 8 to link to a file the user is going to download for example if the file that you want to download is called "mapguide.pdf".

I know it would probably be getURL but I don't know much after that?

** I need it to work in both internet explorer and mozilla firefox.

Thanks guys and/or girls!



FlashKit > Flash Help > Flash ActionScript
Posted on: 02-28-2006, 04:05 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

File HyperLink Help
I think this question is pretty basic- but I can't figure it out, I'm new to Flash.
I am able to make a button be a link to a html site. What I need to do is make the button a link to a .txt file or pdf file stored in the same directory as the .swf file. The completed Flash site will NOT be in html or posted, its going to be burned on a CD. The file that I want to link to will be on the CD also.

Using .swf File As Hyperlink
How do you use the .swf as an HTML hyperlink? I have an animated graphic on the index page of my website that I would like to be able to link to the main page of the site. Any help is appreciated.

Loading Txt File Hyperlink
I am using a text file that get sorted by a php script. so it work like a data base so here is my question

new.txt is the text file of the news
new.php is the sorter which move the bottom entry of the new.txt to the top.

and I load new.php into a mc clip call news. However I have hyperlink in the news.txt and when I load news.php into the textfield it turn all the link black even after I script to be white. am I not scripting it right.

Thank in Advance
JuniorWil

Getting Hyperlink Parameter From ASP File
How can we get any parameters through Macromedia Flash file from an ASP file. Suppose we have a flash banner and we want to get a hyperlink parameter from that ASP file after clicking the banner, and after getting that hyperlink the desire hyperlink location should open.
Will be very thankfull.

Making A Hyperlink With A .swf File
Ok i'm a newbe here i always wanted to know how they link .swf images/animations to other webpages.
Example. if i made a .swf file and i wanted my users to click it and link it to a next page how can i do that??

Adding A Hyperlink To An .swf / .fla File
Could someone walk me through as to how I attach a hyperlink to a picture in my website so it opens a new webpage to the desired target. I have the picture in .gif format .jpg format, .fla and .swf format. Thanks for any help in making my life more complete.

PowerPoint Hyperlink To Swf File
I'm calling a 384x320 swf file from Powerpoint. When the hyperlink is clicked, it opens up the swf file, but it opens it up in a maximized window. Is there any code I can add to the address that will allow the window to be opened up to the proper size? I could possibly do this calling up a browser, but I want to keep it simple.

Adding Hyperlink To SWF File In HTML
This is my first time dealing with any .swf files, so any help would be appreciative...

I have been given an .swf file that needs to be added to an HTML page - no problem. That file then needs to link to another site. Is this something that needs to be added to the file before it is loaded onto a website?

I've seen the following code provided in other threads, but either it is meant to be used when creating the file, or I'm not using it correctly when I try adding it to my .asp page.

on (release) {
getURL ("<URL here>", "_blank");
}

If I'm not trying to do something impossible, please edit the code below to make this file link:

<html>
<BODY BGCOLOR="#ffffff" TEXT="#000000" marginheight=0 marginwidth=0 topmargin=0 leftmargin=0 rightmargin=0 id=all>
<embed width="360" height="75" src="<file>" border="0">
</body>
</html>

Thanks!!

Getting A Hyperlink To Highlight When It's Loaded From A Txt File...possible?
I have text that is loaded from a file in HTML formate and iwant the links in it to highlight and change colour atferwards like they do on html pages

Link A SWF File In Html [hyperlink]
Hi there,

I'm working for a company that receive a lot of flash banners. But sometimes they only send the swf and not the source file, because they are afraid we might edit it or use it.

My question is, is it possible to make hyperlink of a swf movie? I don't have the option to make a blank button in flash, because i dont have the source file. I don't have the option of layers either...because we use a CMS which doesn't support that.

Hope somebody can help me out.

Thanx in advance.

Hyperlink In External Text File?
Hi does anyone know how if it is possible to add a hyperlink into an external text file.

Thanks Alex

External Text File For A Hyperlink
Hello, I need to use an external text file for a small list of links (just four).

The code I use on my Buttons is below, I would like to have the "getUrl" part to display the link from an external file. There are 4 of these buttons which all use a differnt URL. Any help will be appreciated thanks.


on (rollOver) {
_root.display_con.butText.text = "";
_root.display_con._visible = true;
}
on (rollOut) {
_root.display_con.butText.text = "";
_root.display_con._visible = false;
}

on (press) {
getURL("../what_we_do/services.asp?catID=2");
}

Hyperlink From Text File To A Button
Hi all,

This is my first post, although I've been using the excellent Flash Kit for a while now. I usually find that, with a little searching, my probs have already been answered in previous posts.

This time I can't seem to find an answer I fully understand, anyway I'll cut to the chase.

Basically I just want to be able to call a link from a text file, and have it insert onto a button in the movie. It has to be in a text file because it needs to be easy to update. I have ten pictures in the movie, and each time they load, I need them to call the appropriate link from the text file.

I'm sure someone will no how to do this very easily, as I have already read about setting up variables, and naming the URLs etc. but basically i'm a dumb ass.

If someone could post the script, or even the fla, then that would be cool. If you've got time to explain it then that would be cool aswell, I always like to know how these things work.

Problem With Hyperlink Assigned To .swf File
Hi,
I'm taking my first steps and I'm trying to embed a .swf file into a web page using FrontPage like this:

<p><a href="http://www.somepage.com" target="_blank"><embed width="224" height="60" src="my_swf_file.swf"></a></p>

Works fine except for the hyperlink I'm trying to assign to the .swf file.

The movie is playing and the hyperlink URL shows up in the bottom of the browser when I test it, but I can't CLICK the movie file to execute the hyperlink (the mouse pointer remains unchanged when I mouse over the file instead of turning into the "pointy finger"...geez, I'm such a newbie...)

What do I have to do to make this work? This should be an easy one...
Thanks!!
Axel.

Using A Flash File As The Image For A Hyperlink
It's a pretty basic question, but couldn't get it to work and when I try to search the forum Firefox asks me if I want to download Search.php... so anyway

I have a mainpage with 2 frames. One frame contains buttons, the other frame the content. Now the buttons in frame 1 should control what is shown in frame 2.

I'm using MS Frontpage but Frontpage keeps the Hyperlink button in the grey so I can't select it. I tried to make normal hyperlink and used the standard coding for a textlink to use with the flash file, but to no avail. Am I overlooking something?

Loading Hyperlink Via .txt File Problem
I can load a hyperlink into a dynamic text box; however.... when I try and use a hyperlink which contains an = sign, it isn't displayed. Is there a way to get around this.

thanks in advance

Create Hyperlink From Externally Loaded .txt File?
how can i hyperlink a word in a sentance that is loaded from an external html-formatted text file. i can get the text to load fine, but without any hyperlinks!

Can Dynamic Text Be Hyperlink And Attach Css File
I posted earlier about attaching css, and have been reading so I'm beginning to get the idea, I think. So here's what I would need to do. I have about 100 different hyperlink buttons and want to cut down the work of creating buttons and formatting text in the button. My thought is to

Create a dynamic text box with for each URL.

One URL might be "www.something.com" so I create a text of "www.something.com" and make it a dynamic text and then click the <> Render Text as HTML which makes it a hyperlink. That works great.

Now I want give it some properties either from a glogal action script or by importing an external action script. The properties for the hyper link would be underline, change of color on hover, that sort of thing.

My question is, can either global styles or external CSS be applied to the dynamic text box as a html link.

If not what might be another approach?

Hyperlink An Object Button To An Excel File
hi! i was trying to link an object button to a microsoft excel file using the get url command but it did not work. is this really possible. pls. help me... tnx a lot. - franovinz

[F8] Can I Create A Hyperlink To A Specific Frame In My .swf File?
Hi There,

I am realitively new at flash. In my movie I have linked to a different site and I want to set it up so that when the user hits their browsers back button that instead of loading all the preloading parts of my movie that it justs takes them back to where they left off at say frame 63. Is that possible?

Thanks for any help on this.

Loading A Hyperlink From An External Text File
Howdy,

i have an external text file with this HTML in it:

mainheadlinetxt=<font color="#CC0000" size="16"><a href="www.cricinfo.com" target="_blank">India on top</a></font>

When i play my SWF the text India on top loads fine but when i go to click on the hyperlink nothing opens.

Can anyone help me.

Thankyou kindly

No Hyperlink In Textbox Via Exyernal Text File
hi, i have followed the loading of the external textfile into my flash movie from this excellent site, and it works...but the hyper links don't work.

my textbox actionscript is :

loadText = new loadVars();
loadText.load("work.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};




and my textfile is :

myNews=<a href="www.bricktaylor.com" target="_blank">Brick Taylor</a><br>
<a href="www.qaommunications.com.au" target="_blank">Q and A Communications</a>


does anyone have any idea why the links don't work in the flash movie ?

thanks for any help

Hyperlink To A HTML File In The Hard Drive
hi, i want to know if a flash botton with an hyperlink to a HTML file on my hard drive will keep working if i move the html file, and if it does how can i fix that problem? i mean is there any way like in dreamweaver to define the site's file or something so hyperlinks keep working. thanx

Help Please Adding A Hyperlink To Loaded Text File
Hey, can anyone help? I'm having trouble adding a hyperlink into my loaded text file.

Thanks,

Loading A Hyperlink From An External Text File
Howdy,

i have an external text file with this HTML in it:

mainheadlinetxt=<font color="#CC0000" size="16"><a href="www.cricinfo.com" target="_blank">India on top</a></font>

When i play my SWF the text India on top loads fine but when i go to click on the hyperlink nothing opens.

Can anyone help me.

Thankyou kindly

No Hyperlink In Textbox Via Exyernal Text File
hi, i have followed the loading of the external textfile into my flash movie from this excellent site, and it works...but the hyper links don't work.

my textbox actionscript is :

loadText = new loadVars();
loadText.load("work.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};




and my textfile is :

myNews=<a href="www.bricktaylor.com" target="_blank">Brick Taylor</a><br>
<a href="www.qaommunications.com.au" target="_blank">Q and A Communications</a>


does anyone have any idea why the links don't work in the flash movie ?

thanks for any help

Why Word Document File Types Wouldn't Allow File Download?
I noticed that my Flash movie wouldn't allow for word file type download. I have a pdf file type as a download link, and it worked fine. This issue happens only on IE. Any thoughts?

Compare File And Check Progress Of File Download Y Using Flash
Hi there,

       Can anyone tell me how to compare a file (by date or size) on a web server against local machine? How do I download a file and check the progress of the download.

Regards
Daniel

Problems Adding Hyperlink (using Creating A Hyperlink Tutorial) [renamed]
after following the instructions in the Creating a Hyperlink (link below) tutorial, I had trouble when it came to adding the actions. Eventually, I figured it out, but wasnt able to do it as instructed.

My question is how do I pull up the url field? It may be that Im using flash mx 2004, but you would think they would make things easier in 2004 instead of taking out usefull tools such as the url field..

http://www.kirupa.com/developer/mx/hyperlink.htm

also..how do I turn on html code for my posts?

Problems Adding Hyperlink (using Creating A Hyperlink Tutorial) [renamed]
after following the instructions in the Creating a Hyperlink (link below) tutorial, I had trouble when it came to adding the actions. Eventually, I figured it out, but wasnt able to do it as instructed.

My question is how do I pull up the url field? It may be that Im using flash mx 2004, but you would think they would make things easier in 2004 instead of taking out usefull tools such as the url field..

http://www.kirupa.com/developer/mx/hyperlink.htm

also..how do I turn on html code for my posts?

Hyperlink In An External Text File Loaded By Flash
Hi,

Im using a scrollable dynamic text box in flash, which calls a text file and uses some basic css formatting.

What I would like to know is if its possible to use css for the hyperlink? I know i can use regular css rollover effects, but i was hoping the text that is surrounded by an a href could also be surrounded by a span class (with an underline and a different colour).

Also, my current hyperlink doesnt seem to wanna go the page. The mouse pointer changes shape, so it knows theres a link there, but when clicked it doesnt do anything. It also seems to ignore other basic html formatting such as using the 'b' bold tag.

The wird thing is is that its picking up the css p class = , but none of the html formatting!

Any ideas why this might be?

I created my file using tutorials from kirupa, the tute was for mx2004 but im using flash 8.
http://www.kirupa.com/developer/mx2004/cssfile.htm

Hyperlink In Loaded Text File To Move Timeline
Hi,
I'm using the kirupa tutorial "Scrolling Dynamically Loaded Text" and I have added a couple hyperlink to other website which work. I would now like to have a hyperlink in the text file that moves the timeline like a you would do on a button.

on (press) {
gotoAndPlay('contact');
}

Is this possible?

Thanx,

Open File After Download OnComplete (File.reference)
I would like to be able to open a file after it downloads using File.reference. Has anybody done this? I know when I download files from other sites I am prompted to either save or to open, I would like to be able to do this.

Any thoughts?

Thanks!
John

Flash File Gets A White Border On Page Loaded And Link Changes To Hyperlink
Hi,
Flash File Gets a White Border on Page loaded and the mouse pointer changes to hyperlink Pls Help Its caused only in a System which has Win XP or higher version U can view the Bug at " www.prosystems.in"

Regards,
Francis

Datagrid > XML Connector > Hyperlink - How To Hyperlink In XML?
First off this is becoming a super headache and the next step is to start pulling out the hair... just kidding but really... And thank you to anybody who's taking the time to help!

Ok, so in Flash 8 I'm using the datagrid component (datagrid extension) and populating it via the XML Connector and Dataset.

QUESTION:
How do I hyperlink from the XML document and have the link work in the swf?

I've tried Xlink and that worked outside of flash but when I brought it in, it didn't work.

Ive tried CDATA and I think this might be where I need to go... In flash (actionscript) I cant find the node that I need to use (if that's what I do)

Pretty much all I need to do it type the link in the XML and have it be "hot" in the swf.

The source code is here: http://www.goodwinimagination.com/Calendar.zip

What is the final product I'm aiming for? A Calendar that sorts by date and alphabetically with the click of a tab at the top. Similar to this one found on www.AFI.com but, with the added capability of sorting. If there is better way or a way you know of going about this I am definitely open for suggestions!



Thanks in advance,
Chris

Download File
I have a projector file I have made that I want people to be able to down load from my web site any ideas. have posted this in standalone and no responses from there so hope some action wizard will be able to help me out.

Download File
I have a wallpaper section in my flash website. Instead of the user clicking on it to enlarge. Is it possible for them to click on the link and the download process begins? I appreciate any help.

Vince

Download A File ?
If my files look like this:

page.html
page.swf
application.exe

What code do I have to apply to a button in the Flash movie (page.swf) so that when a user clicks the button, the application.exe file is downloaded ?

Thanks.

Download File?
My portfolio is done in Flash and i need to have a button that allows a click for downloading an 3D animation.

question: what is the code that allows files to be downloaded?

How To Download A File...
Hi there,

I want to download an mp3 file when someone press one of the buttons on my webpage, how do I do that?, I mean, what code do I have to write on the "on(press)" action of the button?

thank you very much, in advance...

Download Zip File
Greetings

i have a button, when clicked the user should be able to download a zip file with the documents enclosed.

what code goes under the button?

on release {?????};

Download File
How can I make an option available, by clicking a button, to download an .mp3? This can be done using windows media player or quicktime or something in html...can it be done it flash, and how?
Thanks

Mp3 File Download
hi i got a couple of (legal !) mp3s which i want to offer for download in a swf

is there a possibility in flash or thru javascript in flash to force a file to open
dialog box "save as.."


because when i only add the link to the mp3 it is temporarily downloaded to play in the users default player, which i dont want.

thanx for any suggestions

cheers jakob

How To Download A File?
Hi there,

Can somebody please tell me the script that enables the user to download a file?

I think I need to use getURL, but I don't know the proper scripting?

The web site is hosted on my local hard drive and the file is in the same location as the swf.

C:InetpubwwwrootWeb

Thanks

Jonnie

Download A File
Hy all together!

One "hot" question to all of you: Ok i have a button and on release i want to download an external file(zip or mp3) to harddisk but it doesn't work????Why?

gmiadlicha - sense.mp3 is the file and i want to download on harddisk, not opening in browser.

What is the problem?

greetings mario

Download File
hi,

i like to know is it possible to include a button to download file directly, so when user click on the button, the "save file" pop-up will show.

many thanks

Lawrence

Download File
hi,

I like to include a link to download a file, so that when the user click, the "save file" pop-up will appear.

I'm trying to let user download a JPG file, but instead of opening a new broswer window, I let them save it straight away.

many thanks

Lawrence

File Download
I would like to create a button that will download an mpeg file to the end users computer. I don't want to play the file, I just want it to download to their computer. Help will be met with MUCHO appreciation.

File Download
I need help trying to download a file using flash.
I have tried using this:
[code]var request:URLRequest = new URLRequest("index.xml");
var fileRef:FileReference = new FileReference();
fileRef.download(request);/CODE]

But when the window comes up to save the file to you hard drive and I click save it saves nothing. The File is on the server and it is pointed to the right file. It just won't save anything.

Is there a different way to do this? Or should I use XML and flash? What is the easiest way to do this?

Thanks,
Tony

Copyright © 2005-08 www.BigResource.com, All rights reserved