How to add link to flash banner

后端 未结 2 1804
遥遥无期
遥遥无期 2021-02-01 11:11

I am primarily a developer and dont know to use Adobe Flash CS4. Is there a simple way to add link to flash banner. I have .flv file with some items in Library and two layers.

相关标签:
2条回答
  • 2021-02-01 11:44

    @Michiel is correct to create a button but the code for ActionScript 3 it is a little different - where movieClipName is the name of your 'button'.

    movieClipName.addEventListener(MouseEvent.CLICK, callLink);
    function callLink:void {
      var url:String = "http://site";
      var request:URLRequest = new URLRequest(url);
      try {
        navigateToURL(request, '_blank');
      } catch (e:Error) {
        trace("Error occurred!");
      }
    }
    

    source: http://scriptplayground.com/tutorials/as/getURL-in-Actionscript-3/

    0 讨论(0)
  • 2021-02-01 11:47

    If you have a flash FLA file that shows the FLV movie you can add a button inside the FLA file. This button can be given an action to load the URL.

    on (release) {
      getURL("http://someurl/");
    }
    

    To make the button transparent you can place a square inside it that is moved to the hit-area frame of the button.

    I think it would go too far to explain into depth with pictures how to go about in stackoverflow.

    0 讨论(0)
提交回复
热议问题