Linking URL's from External TXT file

Is there a way to Link Buttons to URLS via .TXT files? This way it will be easier to update the buttons URLS. (just edit the .txt file, no need to open flash, anyone could update the links)

:slight_smile:

yes!
In the textfile type al the URLs like this:

URL1=http://www.url1.url
URL2=http://www.url1.url

sumthin like that! The first word (URL#) is a variable.

and for a button just add the action

on(release) {
getURL(URL1);
}

You can change the variable (URL#) but you have to make sure that in the textfile there’s the same variable

oh and let’s not forget in the first frame of yourmovie add the action:

loadVariables(“yourtextfile.txt”,0);

this loads the textfile so the variables can be used. Just replace yourtextfile with the name of your textfile.

URL1=http://www.asdfas.com
&URL2=http://www.www.com

including the “&” made it perfect!

Thx again!! :slight_smile: