FORUMS: list search recent posts

Action Script 2 for dowload PDF file

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
artpark
Action Script 2 for dowload PDF file
on Jul 30, 2007 at 11:30:27 pm

I'm trying to make Pressing the button and it downloads PDF file.
What should I write for AS 2?



Return to posts index

federico27
Re: Action Script 2 for dowload PDF file
on Jul 31, 2007 at 2:40:40 pm

on (release) {
getURL("your url/myfile.pdf","new")
}

"your url/myfile.pdf" should be the exact web address of the location of the pdf file (mentioned as well of course). Be careful, the address is case sensitive.

That script will open a new browser window (therefore the "new") with the pdf file on it. For a real download, the user will have to save the then opened pdf. That's because browser now can open pdf without dling them on disk.

federico



Return to posts index

artpark
Re: Action Script 2 for dowload PDF file
on Jul 31, 2007 at 3:07:48 pm

If the website name is http://www.blabla.com/demo,
it will be
on (release) {
getURL("http://www.blabla.com/demo/myfile.pdf","1")
}

Is this correct?
For the "new", is it "1"?



Return to posts index


federico27
Re: Action Script 2 for dowload PDF file
on Aug 1, 2007 at 5:59:30 pm

hi ,

it's correct for the URL path but the "new" has to be "new". It just tells the browser to open it in a new window, and not on the current one.
it should work...





Return to posts index

lalo beto
Re: Action script 2 to download pdf file
on Oct 19, 2009 at 5:38:05 pm

Everything is ok, GetURL worst of this only works on a pc that has the internet explorer, Worst does not work when you have a MAC, Or the same firework , But the fact xevere,


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]