actionscript Q
- Started
- Last post
- 5 Responses
- harlequino
Aloha.
If you wanted a button within a Flash app, to be NOT hardcoded to another url, but to be a variable that could be determined by the outside HTML, how would that go? So that when the button is clicked, sometimes it goes to this site, sometimes to that.
Is that as simple as, say, the clickTag code for banner work? Like this:on (release) {
getURL(clickTag, "_blank");
}Any advice? Thanks!!!!
- caseyc0
Check this, read the comments:
- fusionpixel0
you can also do:
function goToURL(theaddress) {
getURL(theaddress, "_blank");
}then on yoru button
button.onRelease = function(){
goToURL("http://www.whateve…...
}something like that...
- harlequino0
caseyc-
that looks like it might be just the ticket.
For the "myUrl", is there any limitation as to the length of the url? These will most likely be linked to dynamic forms with long ass url's.
Thanks!!
- fusionpixel0
me idea no good? :*(
- joyride0
I believe what your trying to do would require some javascript that will get the URL of the current page, then pass that into a flash var. Then you can use it from there.