A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: clicktag not working

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Location
    oakland, ca
    Posts
    2

    clicktag not working

    Hi, I'm pretty new to flash and have created some banner ads but the clicktags are apparently not working and i'm not sure what's missing/what i'm doing wrong. I'll post the .fla & .swf files here - any help would be oh so greatly appreciated!!! KamBanner160x600.flaKamBanner160x600.swf.zip

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    You are using an AS2 on (release)
    when your movie is publishing for AS3.

    check out addEventListener(MouseEvent.CLICK

  3. #3
    Junior Member
    Join Date
    Jun 2014
    Location
    oakland, ca
    Posts
    2
    ok thanks. I just added in this code: import flash.events.MouseEvent;
    import flash.net.URLRequest;
    import flash.net.navigateToURL;

    click_btn.addEventListener(MouseEvent.MOUSE_UP, onClick);
    function onClick(e:MouseEvent):void {
    var click_url:String = root.loaderInfo.parameters.clickTAG;
    if(click_url) {
    navigateToURL(new URLRequest(click_url), '_blank');
    }
    }

    ...hopefully that will do the trick!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center