View Full Version : Loading external information
wjanney
01-28-2002, 06:11 PM
I am trying to find a way to load a group of links into a movieclip. I need to be able to pass the name of a .pdf along with a link to it from an external text file to a flash movie. Any Ideas how to do this
I believe that your answer is really quite simple!
All you need to do is either make some buttons, one per link and give them the "getURL" action with the whole path to the file:
on(release){
getURL("http://yoursite.com/yourfile.pdf");
}
or just type the link names where you want them and throw some invisible buttons over them with the same action.
I believe this should work.
Whoops!
I read your question wrong!
I don't think that you can pull a pdf into a text box - but maybe...
As for pulling regular text into a text box - check out the tutorials section, it's pretty easy from notepad and things like that.
Sorry about that!
wjanney
01-28-2002, 07:46 PM
Maybe I haven't been clear. What I have are about ten pdf's in a folder. More .pdfs will be added later so I want a text file with a list of the .pdf's and links to them. This way the person in charge of the .pdf's just has to add the name and path of the pdf to the text file.
What I want to be able to do is take that text file and load it into flash as a set of links. Where you would click on the title of the pdf to open the pdf externally.
I know how to use LoadVariable to load a text file, but how do I get the links into the movie?
you can set up your text file like this:
&link1=<a href='pathtomypdf1.pdf'>mypdfFile1</a>&
&link2=<a href='pathtomypdf2.pdf'>mypdfFile2</a>&
&link3=<a href='pathtomypdf3.pdf'>mypdfFile3</a>&
&link4=<a href='pathtomypdf4.pdf'>mypdfFile4</a>&
&link5=<a href='pathtomypdf5.pdf'>mypdfFile5</a>&
&eof=1&
make sure your textbox has the HTML option checked, and do a search on 'swonk' here in the forums to learn about loading the file and why there is "&eof=1&" in the file.
good luck
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.