/ Published in: ActionScript
URL: http://www.cannedbanners.com
This snippet will check for multiple spellings of clickTag variable. Some systems use clickTag and others use clickTAG. Using this code will allow your banner to be used on either type of system without having to re-edit the code. "clickable_button" is the instance name of a movieclip or button on the stage.
Expand |
Embed | Plain Text
clickable_button.onRelease = function() { if(_level0.clickTag!=undefined) { getURL(_level0.clickTag, "_blank"); } else if(_root.clickTAG!=undefined) { getURL(_level0.clickTAG, "_blank"); } else { trace("no clickTag or clickTAG specified!"); } }
You need to login to post a comment.
