Groups | Blog | Home
all groups > flash actionscript > april 2005 >

flash actionscript : Dynamically create Action Script for buttons?


Enrique Jimenez
4/22/2005 9:42:51 PM
I currently have a banner with 3 buttons that use the "Get URL" function. I
would like to be able to update the text for these buttons as well as change
the URL with the Get URL function by updating a text file or an XML file. Does
anyone know a good way to do this? I currently have 10-20 banners that rotate
but I have to change the text and the URL portion manually.
Any help would be greatly appreciated!

Enrique
cmorrissey
4/23/2005 12:00:00 AM
I would use the loadVariables(); function. You will then need to use an
onLoad(). At the onLoad call pass out the loaded variables to the buttons and
the getURL().

Check out the documentation on loadVariables, there should be enough code
there to get you started.
AddThis Social Bookmark Button