all groups > flash actionscript > february 2006 >
You're in the

flash actionscript

group:

buttons with dynamic links


buttons with dynamic links rohai
2/7/2006 10:38:01 PM
flash actionscript: Hi
what I'm trying to figure out is how to add dynamic hyperlinks to buttons
(articles.asp?articleID=...). I'm using Access DB and ASP: Is the best way to
create XML for each button (there are only six buutons and the number will stay
the same) or is there a better way? Please help. THX for any help
Re: buttons with dynamic links blemmo
2/7/2006 10:55:21 PM
If you use ASP to generate the site with the swf, have a look at
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.htm?hr
ef=00001205.html.
I guess that's the easiest way in that case.

cheers,
blemmo
Re: buttons with dynamic links rohai
2/8/2006 12:00:00 AM
Blemmo, thx for your reply. Does this also work when I need to load six
different links at the same time?I have six buttons, each is for one authors
showing his/her last article. So the articleID is changed after new article is
added into DB. I don't see in the case you've shown me how can I add at the
same time six different links.

THX for the help
Re: buttons with dynamic links blemmo
2/8/2006 12:57:59 PM
Yes, it should work also with more than 1 variable. But remember that this are
variables, not instance names, so for the button links, it would be something
like
button1.onRelease = function(){ getURL(_level0.myURL1); }

greetings,
blemmo
AddThis Social Bookmark Button