Search code examples
actionscript-2flash-cs5

AS2 Click tag for flash banner


I have been told that this is the way that i need to set up a specific URL link

on(release){
    getURL(_level0.clickTag, "_blank");}

How would i add this to my banner with a custom link? Also, how do i apply the code to the button itself which is called:

click_btn

any help is much appreciated

thanks!


Solution

  • 2 ways you can do this:

    1) click on the button, and enter your code exactly as you have it into the Actions panel.

    2) from the timeline, (convention is to use frame1 of the first layer), in the Actions panel:

    click_btn.onRelease = function() {
        getURL (_level0.clickTag, "_blank");
    }