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








Open A Download Window?


I need the actionscript to open up a download for a pdf file. I have a button that i need to when released to open a pdf file. Any Help? I don't really want the pdf file to open in another window but i want the pdf to open a download screen. Your help would be greatly appreciated!!!! Thanks. This is a great website.




FlashKit > Flash Help > Flash ActionScript
Posted on: 04-21-2003, 11:29 PM


View Complete Forum Thread with Replies

Sponsored Links:

How To Open The Download Window In Flash?
Hello all,

I am making a flash project with photos - videos and many things like that.
I would like to be able to have a download button on every picture for example.

I only know the getURL("Image1.jpg", "_blank"); function

But this is not the way i like it cause it opens the image or other into a new window.
I want to be able to download it and not see it in a new window...

Is there a way even with php connection to open this download window when i choose to download something from flash project? ?

Does anyone knows something about it ?

Thanx in advance

View Replies !    View Related
Can We Open A .exe File Using A Button Without Showing The Download Window?
Can anybody can help me with this please?

I want to open a .exe file using a button without showing the download window?

Is it possible?
How can i do it?




Best regards

Nuno Gonçalves (CanonMeat)


PS: (Sorry about my poor english!!!)

View Replies !    View Related
Download Window Or Forced Download Instead Of Quicktime / Wmp
Hello Forum!-

I have been building my website in flash and have a simple question that I cannot figure out for some reason (maybe its too simple) . Anyhow I have uploaded my mp3 songs of my music and used the geturl and _blank so that when someone clicks on my link the music opens right into thier quicktime player (if on mac) or windows media player (if on pc). I want the user to be able to download the mp3 to there computer (ie like a normal download window appears stating "do you want to download this file to disk" is there some other code or line I need to add ???? It seems so simple? I would really appreciate the help as I have tried a number of things with no success. I have seen that I have to use FileReference but I do not completely understand it

here is what i currently have which is not working... I have a button that I created and placed this in the action within the button

import flash.net.FileReference;
var gettheFile = "http://www.someURL.com/someFolder/mysong.mp3";
var fileRef:FileReference = new FileReference();
function givemetheFile(){
fileRef.download(gettheFile, 'mysong.mp3')
}
yourButton_mc.onRelease = function(){
givemetheFile();
}


any suggestions help or solutions would really help me thanks!

Matt

View Replies !    View Related
Open Pdf Files Causing IE Window To Open And Crash
On a macintosh OSX, when trying to open a pdf using:

getURL(./somePDF.pdf")

this command opens a pdf document correctly but also opens Internet Explorer. Sometimes this causes a problem because it crashes IE and forces it to quit.

Is there a way to open PDF documents using flash that doesn't open an IE browser window on mac OSX?

View Replies !    View Related
How Do I Make Them Open In The Browser Window Already Open?
I've managed to add links to my buttons, but they all open a new browser window... how do I make them open in the browser window already open?

View Replies !    View Related
Pop Up Window That Opens To Show A Picture On Website. Not A Popup Window To Open URL
Here is a link to an example of which i am referring. If you rollover anyone of the pictures a pop up image appears. Does anyone know how to accomplish this?
http://www.templatemonster.com/categ...thor=&x=31&y=6

View Replies !    View Related
AS: Close Current Window And Open Link In Father Window ?
Please, guys, can anyone lead my hand in this?

I have produced a flash movie. the wholw are is an invisible button which
should close the animation and in father window open a link.

The flash movie pops up automatically when page is loaded. I used this:

on (press) {
getURL("javascript:self.close();window.opener.loca tion.href = 'http://www.unibanka.sk/servlet/com.elline.pb.Page?page=alfa_ts'");
}


... but am not sure if this would work exactly how I want it.

Thanx

View Replies !    View Related
Open A File For Download, How ?
Hi, I wanna know how to open a .zip or any other type file as a download? As you hyperlink in frontpage or dreamweaver so when you click on that file it opens that file or if you're online then it asks for download. + I also wanna go back (up on level) to one directory and again in a directory where the zip file is located. I've tried loadmovie, and geturl commands like this : "..Tutorials/photoshop/1.zip but when I click the button it opens in internet explorer saying the main directory couldn't be found. Thanx for help in advance.

View Replies !    View Related
How To Open Or Download A Word Doc With As3
can someone tell me how i can have a button linked to a Word .doc in actionscript 3?

i have this:


doc_bnt.addEventListener(MouseEvent.CLICK,onHomeClick);
function onHomeClick(e:MouseEvent):void
{
var url:String = "Co-Sponsored Training Form.doc";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request,'_blank');
} catch (e:Error) {
trace("Error encountered");
}
}































Edited: 07/29/2008 at 02:27:20 PM by joshww

View Replies !    View Related
Help Link To Download PDF (not Open)
Hi, I am trying to setup a link for users to download a PDF from my site. Does anyone know if there is a way to force a download dialogue box, instead of having the PDF open in a new window. I've been using the GetURL to do this.

I have looked everywhere, and only found this:
http://www.informit.com/guides/conte...ash&seqNum=342

But when I try to do it, there are errors, and its way above me to fix. Any help is much appreciated.

PS - I'm trying to do this because for some very weird reason, when it opens now in the new window, Acrobat just crashes (no clue why, but it does on all computers -- I've tested on 5). Thanks.

View Replies !    View Related
Pass Data Into New Window With Open.window Function
hi,

is it possible to call the js function open.window from an swf and at the same time pass data to the new window by send=post? i can't seem to get it to work.

thanks,

View Replies !    View Related
Popup Window Doesn't Stop Window.open
Hi,

check out www.adidas.com/1

You will notice that although you might have popups blocked the site still pops up. I have checked the source and they seem to use window.open.

Any ideas how thye have done this?

thanks

ash

View Replies !    View Related
Popup Window Doesn't Stop Window.open
Hi,

check out www.adidas.com/1

You will notice that although you might have popups blocked the site still pops up. I have checked the source and they seem to use window.open.

Any ideas how thye have done this?

thanks

ash

View Replies !    View Related
How To I Open Things In Flash 5 That I Download
I have a mac G4 with flash 5, how do i open movies,sounds, and flashtext I download from this website into my flash document... I tried importing a movie but i didnt work....

Do i need some kind of converter or code thing??

View Replies !    View Related
How To Force Links To Download, Not Open
Hi

Interesting problem I'm having - I have some regular flash buttons linking to word files, text files, PDFs etc. Currently I've set the getURL to open in a new _blank window, but ideally I'd like a 'save as' dialogue to open when the user clicks the link.

I'd be happy to let the user click or right click as in html, but of course in flash that option isn't available.

I'm aware of a php method that alters the header information to make the browser think it's an application, and thereby download rather than open, but I'm wondering if anyone can think of a cleaner way?

thanks in advance,

Toby

View Replies !    View Related
Link To File For Download Instead Of Open
if anyone can tell me how to link to a file for download as opposed to opening the linked file in the browser I would be most grateful.

Like 'save file as' when u right click or cntrl click a html link.

Thanks

mr mooch

View Replies !    View Related
Open Up A Download File Box From Flash
I want to allow people to save a file by clicking on a button. How can I do this?

I've tried getURL but I don't want it to open the file I want it to allow the user to save the file to their computer.

Anyone know how to do this. Please share with me I'd really appreciate it.

Thanks
jason
www.envirojay.com

View Replies !    View Related
Howto: Download Or Open Files
Hey people!

I'm new on flash programming and I'd like to download a file from the internet. I'm a pretty experiences Visual Basic programmer and know that in VB I would use the Inet object, wich with the action Inet1.OpenURL(URL) downloads the source of the URL, so not a complete HTML file but the insides of that file, and that is what I want, because I need to download a text file from a server...

Cheers Jasper

View Replies !    View Related
Closing Browser With Download Stream Open
Is there a way to stop the download - no, let me rephrase that - there *has* to be a way to stop a downloading stream when the user closes the window. Right now, closing the window pops an error message window (debugger version of the flashplayer) and locks up any remaining tabs in the browser.

I am sure this can't be an "oh well - live with it" so there must be a way to see that event and stop the stream. Anyone point me in the right direction?

View Replies !    View Related
Open Full Screen Window, Same Window?
I have a 700x300 flash banner. What I want to do is once it's clicked, open the page that it is linked to in the same window but full screen? I can do it with java script, how do I add it in MX?

Mike

View Replies !    View Related
Open A New Browser Window And Go To Frame(n) In The New Window
Hi I need some help.

I'm trying to load a new html file that contains a movie but I like to specify to what frame to proceed in that movie I try to write this in actionscript I think it is easier to understand.

// I have 2 html files contact.html and home.html

// And I have one swf file named home.swf with 2 scenes named "home" and "contact"

// The home.html and the contact.html both contain the same home.swf movie

// currently I'm in home.html I like to getURL("../main/contact.html")
that loads the contact.html and the contact.html contains the home.swf but I like to proceed to the gotoAndStop("Scene",1) or gotoAndStop("contact",1)

I hope that was clear enough if you may know the answer please email me I have suffered a lot on this but I just couldn't come up with the answer.

Regards
zoltank@timelineillustrations.com

View Replies !    View Related
Download FLA Open Source Flash Games, Like Samples?
Does anyone know where i can download Open Source Flash games, i need to see some samples, so i can learn flash.
thank you.

View Replies !    View Related
Download Video File And Open In Media Player
I need to set a link to a video file (ideally one that can be opened on both PC and MAC) that, when clicked, will download the video to the viewers desktop and open it in their media player.

Can this be done?

View Replies !    View Related
Download An Open Letter From Al-RASHEDEEN Army To The American President
Download An Open Letter From Al-RASHEDEEN Army To The American President



click on one from the links below for listening


http://www.easy-sharing.com/350444/bush64-4.rmvb.html
http://www4.uploadsend.com/d.php?fil...filepath=19093
http://www.sendspace.com/file/qhzyrv

View Replies !    View Related
Download Button That Downloads An Image Onto A Userdesktop Without Open/save Option
Hi there all!

I am looking for a solution to the following problem: I am making a photogallery in flash. I need to add a button which downloads the images from a folder in the rootfile onto the users desktop, without the 'open/save' option popping up.

Can anyone help me?

Ciao!

Lise-Marie

View Replies !    View Related
Issue Using Window.open For A New Window...
this one is interesting...

i have a page called main.html which contains main.swf and the javascript function to open a new browser window... no problem there.

however, when I go to my frameset (index.html) which contains main.html.... and try go open a new window from the main.swf flash piece... i get a javascript error. what is going on with the frameset that is causing the open new window to fail?

try it out.

go to my site:
http://www.menuengine.com (index.html)
>> click on Arctic Thunder in the menu, then click on Character Work.

now go to http://www.menuengine.com/main.html and try the same thing... it works here.

the only difference is that you first tried it from a frameset housing main.html

any clue?

here's the code that's in main.html

<script LANGUAGE="JavaScript">
function popupwindow(){
window.open("The file that you want to pop up here","","height=350,width=500,menubar=0,resizable =0,scrollbars=0,status=0,titlebar=0,toolbar=0,left =0,top=0")
}
</script>


thx,
doubt

View Replies !    View Related
How To Make New Window Open In Same Window
anyone have any advice on this? I need to know how to make a new window openin the same window using Flash MX (Flash MX 2004 too, i have both)right now on my website, when you click to go to a new page, it opens in separate windows so by the end of your journey through my website there are like 5 or 6 different windows open. i don't want that. so, any suggestions would be super helpful. thanks a bunch!

~peace

View Replies !    View Related
Window And Download Bar
I have some questions:
1) how do you decide the height and of a window that pops out.
2) How do you put the loading bar before the movie comes

View Replies !    View Related
Download Without Window
aloha,
i have a zipped file i would like users to download. i have created a button and am using the "get url" function. however, i don't want a new window to open on click. does anyone know how to disable the window option?

View Replies !    View Related
PDF Download Opens In Browser Window
Hi,

I want to set a link to a PDF that people can download using getURL. I am finding that on PCs the PDF opens in the browser window, rather than downloading to the desktop or saving to file as I want it to. Why is this?

Cheers.

View Replies !    View Related
How Do I Download My File Without Opening A New Window?
Hi - I was wondering can anybody tell me how to download my resume from my flash page directly to te desktop?
So far I have:

on (release) {
getURL("http://mysite.com/myresume.sit");
}

but this opens a new browser window - can I avoid this?

thanks for any help.

View Replies !    View Related
The Pop Up Window Does Not Play The Swf Instead Of Asking To Download The File?
I used this action script for the pop up window. http://www.kirupa.com/developer/mx/centered_popup.htm


I tested everything on my computer and the pop up window immediately plays the swf.
That's cool. When I loaded it to the server and tried to test it on the IE browser, the pop up window asks to download the file instead of playing it. I named the address on the script, “test.swf” not test.html as it stated. It has worked before on the browser.
Why is it asking to download the SWF this time?

View Replies !    View Related
The Pop Up Window Does Not Play The Swf Instead Of Asking To Download The File?
I used this action script for the pop up window. http://www.kirupa.com/developer/mx/centered_popup.htm


I tested everything on my computer and the pop up window immediately plays the swf.
That's cool. When I loaded it to the server and tried to test it on the IE browser, the pop up window asks to download the file instead of playing it. I named the address on the script, “test.swf” not test.html as it stated. It has worked before on the browser.
Why is it asking to download the SWF this time?

View Replies !    View Related
Prompt Download Window For An MP3 File
Is there a way to prompt a download window that asks whether the you want to download/save an MP3 file? instead of it just starting to stream with quicktime/ media player.

THXN

View Replies !    View Related
PDF Download From Flash Opens Extra Window?
Hi i have a PDF that downloads from flash when button is clicked which is fine, but a extra blank browser window pop up with nothing appearing in it, i need to get rid of this pop up so the download works by itself. This is the code i am using is:
on (release) {
getURL("http://www.design8ed.com/pdf/hosting.pdf", "_blank");
}

I understand that the blank opperates this pop up but i don't understand what other option to use as i want the main web page to stay where it is.

For an example of what is happening go to
http://www.design8ed.com
Thanksselect services and then hosting on the left flash menu.


Help would be appreciated.

View Replies !    View Related
Open Window?
anyone know a bit of javascript that could help me here:

I've got a html page on which I need to have a button to open another page with my .swf on it, trouble is the movie is 800x600 and I've been asked to make it work on 640x480 aswell. How do I detect screen size? I'd really like to have a pop-up window with no browser buttons.menus, just a plain window.

I'm not a coder so be gentle, I appreciate that this is not really a flash problem, but...

???

View Replies !    View Related
Open New Window
im doing a game but i wanna to open it in another window like the one in the flashkit which u can choose to open in different size...
does anyone know how to do it can pls help me?
thank you

View Replies !    View Related
Open New Window
I have the following problem:
I want to open a new window, with no scrollbars, and toolbar, and with a fixed size..
I know it is possible with java-script, but how does it work in flash. I can't publish with the FS-Command because the script is used in a loaded movie into a main movie so I don't have an .html file!
Anyone can help ?

View Replies !    View Related
Open Window Like This?
Hello,

Can some please tell me how to open a window to the exact size of your desk top like this site:

http://www.egomedia.com/

Thanks

View Replies !    View Related
Open Window
How do I make flash open a window at a certain size ?

View Replies !    View Related
Open In New Window
I have various flash demos id like to put on a CD for clients. Id like them to run a flash executable file on the CD that will call various swf movies. Id like it to open each demo from the flash.exe file on a new separate window though, how can i do this?

mars

View Replies !    View Related
Open New Window
Could someone please help me to open a new browser window (containing another flash movie) by clicking a button in flash. I have tried using the fsCommand but it doesn`t work...

View Replies !    View Related
Open New Window
Hi
I would like a button to open a html page in a new window with a width of 500 and heighth of 650, without the toolbar at the top. Is this possible?
Thanks

View Replies !    View Related
Open Window
how do i open a new window in flash without my main window going to a blank screen that says [object]?

Thanks

View Replies !    View Related
Open New Window
Greetings,

I have created a button in Flash. I've assigned the "Get URL" action to it OnClick to open a new window which grabs an HTML page that has a QuickTime movie embedded. What I would like to happen is when the user clicks the button, the window that opens would be a specific size that is slightly larger than the QT movie. How do I do that?

Since I have got your attention, I have one more question—Dreamweaver related. Again, I have a button. I inserted a "rollover" button (from the tool pallette) into a layer. I've added the Behavior to open another window at a specific size. The problem is, the behavior options only allow this to happen OnMouseOver. I want it to happen OnClick. Do I need to acquire additonal Behaviors? Got any clues? I'd like to do this action without having to open the HTML and futz with the code but if I have to well...ok.

Thanks

View Replies !    View Related
Open Up A Window Again...plz Help Me
Hi, I have recently added a window with scrollable text in it, on my site that Im working on. I got it from a tutorial here on Flash Kit. What the tutorial explained was how to create a window with scrollable text, also with close and minimize buttons. What the tutorial did not explain was how to open the window again if someone wanted to!!That's what I really need to know now. Please can someone help?

PS: I have made the button to open the window, but dont know what actions to give it.

PSS: I'm not talking about a browser window, Im talking about re-opening a flash window.

Much Appreciation,
Vox

View Replies !    View Related
Open New Window
which are the script to open a new browser window from flash without toolbar in the center of the screen ...i dont know if i make myself clear

i want to open a browser window without toolbar in the center of the screen call it from flash..

View Replies !    View Related
Open Window
I created an introduction in flash and the rest of the page in html.
From the intro, there is this button. Clicking on it, it should open another window WITH FIXED WIDTH AND HEIGTH.
The problem is that I don't know where and how to set the size I want for the second window.

View Replies !    View Related
Open New Window
I want to create a link that opens a new window. I need to be able to controle the size of the new window and I don't want any menu items on top... just a plain window with the content and a close window button. I've seen a tutorial on the subject but I forget where I saw it. Can anybody direct me to a tutorial or some actionscript that would get the job done.
Thanx.

View Replies !    View Related
Open New Window
high everyone,

just a quick easy question im sure, i have a site and it has pop up HTML windows, these windows are sized and have no scroll bar and all the other stuff but........

when i try to open more than one it doesnt open a new window it just changes the HTML in the old pop up window thats already open, this looks really crappy as all the windows are at the right size

is there a way of gettting it to open more than one pop up window at a time.

im using the following java to size and open the new window

<SCRIPT LANGUAGE="JavaScript"> var javascript_version = 1.0; </SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.1"> javascript_version = 1.1; </SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
var newwin;
function launchwin(winurl,winname,winfeatures)
{
</SCRIPT>


this is placeed in the parent movies HTML with and

on (release) {
getURL ("javascript:launchwin('index.html' , 'newwindow' , 'height=800,width=1023')");
}

View Replies !    View Related
Open Window
hello flashkit,

I am trying to open a new window( w/ a swf inside) from inside of my main Flash movie.I a also want the window to have a width=200 and height=500. I have a button that is designed to open the new window. What is the actionscrpiting for this?

thanks

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved