Skip to main content
Inspiring
July 19, 2006
Question

open file URL actionscript

  • July 19, 2006
  • 5 replies
  • 744 views
I have designed a flash site and would like to have a button open a .pdf or .jpg file. I tried to use the getURL script to no avail. Can someone help me out and let me know what script i should use to get these files to open or if it is possible? I woudl like them to open in a separate browser also. Thanks for your time.
This topic has been closed for replies.

5 replies

Inspiring
July 19, 2006

> getURL(" http://download.macromedia.com/pub/documentation/en/studio/st8/st8_expl
> oring.pdf","target=_blank");
> }

second parameter is a target and you should not put that in get url string.

getURL(" http://download....t8/st8_exploring.pdf","_blank");



--
Regards

Urami


--



Happy New Year guys - all the best there is in the 2006 :)




<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
</web junk free>
July 19, 2006
can't seem to get it right the first time.
Try this.
Inspiring
July 19, 2006
thanks for the responses. One more question,

this movie is also going on a promo cd that can be handed out. the files won't necessarily be ftp'd to the web. What would the script look like for the file address? All the files would be contained in a folder on the CD. Thanks.
July 19, 2006
try this
July 19, 2006
Inspiring
July 19, 2006
on (release) {

getURL ("your.pdf" , "_self");

}

Should Work

Shane