PDA

View Full Version : banner.swf?var=http://www | dynamic??


GreasyPragma
03-12-2003, 08:05 PM
I have one banner and several different links. What would be awesome is to embed the link as a variable.

Like: banner.swf?var=http://www.link.com

Right now I'm just trying to get the button to pull it in using a text file. Although I prefer the above method. This is what I'm doing with the text file on the button but it's not working.

on (release) {
getURL(loadVariables("variables.txt"););
}

??

pinkaboo
03-12-2003, 09:12 PM
uhm, I'm not sure that I'm fully with you. Maybe if I have misunderstood you, you could elaborate a little more?

You are pulling the text file in on the button? I
think what you need to be doing is pulling the text
file in on the main timeline, making sure it is fully
loaded and then calling the getURL on the button with
the loaded variable.


thus, I guess the text file would look something like:

myVar=http://www.mywebsite.com&

and then on your button you would use:


on (release) {
getURL(myVar);
}


which would then take you to the URL as long as your text file variables had loaded fully.

pinK

GreasyPragma
03-13-2003, 04:28 PM
I actually found your prior post and it worked. thanks.

Do you think this would work as well?

on (release) {
getURL("variables.txt");
}

pinkaboo
03-13-2003, 08:45 PM
Cool.

As to your last question, well...have you tried it?

If you have you'll know that that just opens the txt file in the browser.

pinK