Flash Banners Click tag info wars AS2  or 3

I do a lot of Flash banners for clients, I have a situation where I had a client send me this article
http://www.flashclicktag.com/
and tell me that I should not be using Flash for banners in AS3.
I have click or clikTag info for AS2 and 3
AS2
on (release) {
if (_root.clickTAG.substr(0,5) == "http:") {
getURL(_root.clickTAG, "_blank");
CLICK TAG AS 3.0
myButton.addEventListener(  MouseEvent.CLICK, 
function():void { 
if (root.loaderInfo.parameters.clickTAG.substr(0,5)=="http:") { 
navigateToURL( 
new URLRequest(root.loaderInfo.parameters.clickTAG), 
"_blank" 
I even have the click tag code for Google Ad serve which just replaces the & with~
ButtonName.addEventListener(MouseEvent.CLICK, functionName)
function functionName(event:MouseEvent) : void
     if (root.loaderInfo.parameters.clickTAG.substr(0, 5) == "http:")
         Url = String(root.loaderInfo.parameters.clickTAG).split
("~").join("&");
         navigateToURL(new URLRequest(Url), "_blank");
     }// end if[/code]
In an honest opinion which format should I use? as I don't need to do double the work to re do from AS3 to AS2. Obviously some as services will only allow AS2 for clickTag info.
any help?

I'm in the same position, just starting to move from
intermediate comfort with AS2 to a fresh beginning with AS3...not
so easy for a guy who has so little logical thinking that I failed
algebra in high school! I too am a bit annoyed by all the extra
steps involved, such as having to add EventListeners for mouse
events, when these really ought to be simplified and there by
default, like in AS2. For example, why can't onMouseDown remain as
a built-in behavior rather than having to take up 2 lines of code
to insert it each and every time now?
On the other hand, I am delighted at the way a lot of the
inconsistencies in AS2 have been gotten rid of. No more having to
remember when to put .x and when ._x, and so on. And now that I'm
finally starting to learn how to use external classes, I see the
beauty in it, and AS3 is custom-made for this. It seems that if you
ever want to really advance in ActionScript programming, you need
to start working with creating your own classes, and as long as
you're going to learn those from scratch, may as well learn it in
AS3.
Putting AS on buttons was outdated practice years ago. It
makes much greater sense to place all script on the timeline, with
comments to separate it. Try programming the simplest game where
objects are moving around and colliding, all controlled by script,
and then a couple coded buttons control them. Bugs are inevitable,
and debugging script when it's partly on the timeline, some is
attached to main movie buttons, and some attached to movie clips
inside movie clips, is a nightmare. Once you do scripting on the
timeline, you'll never want to go back to the crude practice of
attaching script to objects.
Overall, it's a steeper climb than I'd have liked, to upgrade
my knowledge from AS2 to AS3. But ultimately I think it's the best
idea.

Similar Messages

  • Assigning multiple click tags to ONE banner

    Flash specs for ad agency are as follows
    Can someone let me know how I would add multiple clicktags to ONE banner based on this click tag info OR do I have to contact them?
    RD

    Here you go. This example has three clickTags. It's based off three buttons (clickBtn, clickBtn2, BTN) :
    function clickedb(e:MouseEvent):void { //function for SIPC
        var sURL: String;
        if ((sURL = root.loaderInfo.parameters.clickTag)) {
            openWindow(sURL);
        //navigateToURL(new URLRequest("http://www.sipc.org/"), "_blank");
    function clickedb1(e:MouseEvent):void { //function for SIPC
        var sURL: String;
        if ((sURL = root.loaderInfo.parameters.clickTag1)) {
            openWindow(sURL);
        //navigateToURL(new URLRequest("http://www.sipc.org/"), "_blank");
    function clickedb2(e:MouseEvent):void { //function for SIPC
        var sURL: String;
        if ((sURL = root.loaderInfo.parameters.clickTag2)) {
            openWindow(sURL);
        //navigateToURL(new URLRequest("http://www.sipc.org/"), "_blank");
    clickBtn.addEventListener(MouseEvent.CLICK, clickedb);
    clickBtn2.addEventListener(MouseEvent.CLICK, clickedb1);
    BTN.addEventListener(MouseEvent.CLICK, clickedb2);

  • Can't click newer Flash banners

    Hello.
    I'm a web developer for a small Danish marketing company, and get sent Flash banners from advertisers, but we don't own Flash ourselves, so I can't get official support. I'm also not very good at Flash myself, so bear with me.
    Problem is, that lately we have begun to receive banners that don't link. Actually, if I open them in Flash player / MPC locally, they link just fine, but as soon as I upload them to my banner system, they stop working. It's not the banner system's fault, though, as I've tried making a simple test page with nothing but the respective object/embed tags, and still no dice. The problem seems to occur when the banner is located on a different server than the displaying page. The advertisers also claim that other companies have no problem showing/linking the same banners.
    I talked one of the advertisers into sending me the .fla files for a campaign that didn't work, and have studied the actionscript, but found nothing out of the ordinary. It does seem that the non-working banners are made with Flash CS4, but I'm not sure about that.
    This is a huge problem for this small company, as we have been forced to ask advertisers to only send GIF-banners, which many, unsurprisingly, don't appreciate.
    I have attached (if this thing works, that is) one of the non-functioning banners' .fla file.
    Also, here are a couple of test pages to show the problem:
    http://elek-data.dk/test/flashtest.php
    http://odsgard.dk/test/flashtest.php
    - Notice the banner is the same, and in both cases it is loaded from odsgard.dk. The odsgard.dk test works fine, but the elek-data.dk one does not. You can click the banner all you want, but nothing happens.
    What to do, oh gurus?

    Actually when i embed your swf in my server it is working
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="140" height="140" id="test" align="middle">
        <param name="allowScriptAccess" value="always" />
        <param name="movie" value="http://odsgard.dk/test/test.swf" />
         <param name="quality" value="high" />
         <param name="bgcolor" value="#ffffff" /> 
         <embed src="http://odsgard.dk/test/test.swf" quality="high" allowScriptAccess="always" bgcolor="#ffffff" width="140" height="140" name="test"      align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash"      pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>
    and when I remove the   allowScriptAccess="always" not working.
    First you embed the movie like above and test it

  • FLASH CC AS3 CLICK TAG

    Hi,
    I recently switched over to Adobe cc, the flash no longer supports AS2 click tag codes. Is there a universal as3 click tag code I can drop into my actions and just rename my instance? I have googled and found a few items, but they are somewhat old and I am not confident they will work (I ran a few through a validator and there were errors). Any advice is appreciated.

    If they require you to use the AS2 code, then you can't use your AS3 code.  If you can use your AS3 code, then you just need to replace the url with the clickTag variable...
    myViewPackagesBtn.addEventListener(MouseEvent.MOUSE_UP,goSite1);
    function goSite1(evt:MouseEvent):void{
         navigateToURL(new URLRequest(clickTag), "_blank");
    To get the clickTag variable assigned you'll probably need to look into using FlashVars.  The clickTag value is usually assigned as part of the html code for embedding the swf in the web page.  That allows whoever to change the link via the html code rather than having to edit the swf file.  You may want to check with whoever is writing the rules for this.

  • Adding Click Tags to Flash and also reducing file size?

    Hi,
    I was wondering if anyone knows how to add a Click Tag to a Flash movie?
    I have the file finished but they require Click Tags added to each file.
    Also my file is currently around 100kb and they need it under 30kb (last time they got someone to reduce my file to 30kb from 110kb), so Im sure this can be done but not quite sure how. I am using Flash CS4,
    thanks,
    Paul

    I would recommend going to 15 if you are going to play with frame rate.
    If you want to know how data rate effects the size
    double-click the setting for your movie
    look at the inspector
    Under the summary tab compressor show you how big the file size will be at _ data rate etc.
    Changing the data rate will be reflected here.
    When a client doesn't want a file over 15mb I use this tool to know and understand how data rate and other settings effect the overall file. This works for h.264 but may not be the same for every setting.

  • Sync two flash banners in AS2?

    I was wondering of any methods to sync two flash banners? What I mean is  that when the page loads neither banner starts until both are ready?
    I will have two flash banners like this:
    |Banner 1|
    (something else between them, html css)
    |Banner 2|
    Both banners will contain video, that needs to be played in sync.
    Any ideas? I would prefer AS2, because the site I will run these two  banners on prefers AS2.
    I read something about LocalConnection in AS3, anything similiar in AS2?  And does it work on all OS / browsers? Can it be done with Javascript?

    Yeah I found a great article on it here:
    http://adspecs.yahoo.co.uk/guidelines/technical/lc
    Will download the sample files and go through it.
    Thanks!

  • Linking Flash Banners to a Web Page

    I've had a bunch of Flash banners created.
    In DW CS3 (on Mac OS X 10.5.8), they display just fine, but I can't link them to a web page, like I can with any other graphic.
    Some old info I saw (three years old) says I have to create an invisible button in Flash (which of course I don't have) and place it on top of the banner. Can that be true?
    It seems to me incomprehensible that there isn't a reasonably simple method to link ANYTHING in DW to a web site.
    Can anyone guide me? Thanks.

    I haven't seen any Flash affiliate banners.  But I'm not hugely active with affiliate advertising.
    Basically,  you want to give your  affiliates a  snippet of JavaScript or HTML code they can copy & paste into their web pages.  The  code retrieves an image (most often a Jpg or animated Gif) from your server.  When someone clicks the link, your site collects and tracks the   affiliate ID using cookies and most likely stores this info for later use.
    If you're new to "affiliate marketing,"  there are tools & services to help you.
    Commission Junction has been around for quite a while.
    http://www.cj.com/
    A Google search will reveal others.
    Good luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Click tag

    Hi all, can anybody please help me and give me some advice on inserting a click tag in a button.
    I have been told i need to insert the following text
    on (release)
    getURL(_root.clicktag, _root.target);
    Somewhere with in the code, But this doesn't seem to work!!
    I have a trial version of CS5 so not sure if thats the problem, i get some kind of warning that the root property is not excepted and supported! The info in the help says i need to insert different text but  i cant get that too work either!!
    My button script at the moment looks like this...
    Clicky.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_5);
    function fl_ClickToGoToWebPage_5(event:MouseEvent):void
        navigateToURL(new URLRequest("http://www.vetsonline.com/annonces/html/book-an-ad/book-an-ad.html"), "_blank");
    Any help would be appreciated!
    Thankyou

    The AS2 code you showed requires no instance name since it gets applied directly to the button.  As long as you have a variable named "clickTag" sitting in the main timeline, that code should work.  But for the record, placing code on objects is generally frowned upon and was discontinued in AS3.
    You can go the instance name route in AS2, but the code is fairly similar and doesn't get as wordy as AS3... for instance, using that button you named, the timeline code in AS2 would be...
    Clicky.onRlelease = function(){
         getURL(_root.clicktag, _root.target);
    AS3 doesn't allow placing code on objects, thus the need for the instance name.  THe button code you showed for the AS3 end of things appears to be fine. 
    In AS3, if you want to reference something in the root timeline you normally need to add some additional info they don't mention in the help docs... MovieClip(root).clickTag

  • Flash Banners not working in IE7

    Hi,
    On our websites we sell advertising space and allow our
    customers to use flash banners as advertising. We have had this
    system in place for several years, but all of a sudden it has
    stopped working in IE7, much to the displeasure of our customer.
    The system we have had in place is that we ask our customers to put
    the following action script in their banner:
    on (press)
    getURL("fscommand:click");
    When the banner is clicked it calls the associated java
    script:
    function Banner1234_DoFSCommand(command, args)
    if (command == 'click')
    window.open('
    http://www.website.com')
    This use to work in IE7, but doesn't seem to any more. This
    system still works in FireFox, Opera, Chrome, Safari and IE6. If
    anyone has any idea why this would no longer works in IE7 it would
    be much appreciated, and any kind of work around would be
    fantastic.
    Thanks in advance for any help you can provide.
    Ryan

    Hi,
    I have managed to solve my own problem and thought that I
    should share the solution for any one having a similar problem.
    The problem was that the flash file I was displaying was
    stored on a different domain to the website I wanted to display the
    flash file on. This activated a little documented (as far as I can
    tell anyway) and rather annoying feature of IE7 called
    "Cross-Domain Protection". This feature appears to prevent you from
    clicking flash files that are sourced from other domains, so to
    solve the problem I moved the file to the same domain and it works
    fine.
    We store many different file types and various pieces of
    content for our websites on different domains to the ones they are
    displayed on, and I have only encountered this problem with flash
    files, why this would be the case is beyond me, but there it is.
    Thanks,
    Ryan

  • Google Adwords compatible flash banners for n00bs.

    A small guide to a miserable evening of trying to make a google-adwords compatible banner in Flash CC by a miserable designer who is _not_ an actionscript pro. Or actionscript anything, really. Probably could be done smarter, but that's how I did it - with the help of the internet and some friends.
    Google adwords policy:
    https://support.google.com/adwordspolicy/answer/176108?hl=en
    The issues I had to deal with when publishing, the rest, so far, seem to be default in Flash CC:
    Animation length must be 30 seconds or shorter
    Solved by looping the animation twice, or however is needed to have the length below 30s. 
    Why 2 loops and not actually 30 seconds and then stop? So the banner won't freeze in the middle of the animation once reached 30 seconds.
    How it's done (step by step for utter actionscript noobs like myself):
    Select an animation symbol instance (not in the library).
    Go inside.
    Add a new empty layer on top of all the other layers inside the symbol
    Make a blank keyframe at the end of the animation sequence
    Select it
    Click F9 to call the Actions menu
    Paste this code inside:
    if(!this.loops_played) this.loops_played = 1;
    if(this.loops_played >= 2) stop(); else play();
    this.loops_played++;
    Repeat for every animation symbol + if there is animation out in timeline, there too. Can copy/paste the code layer.-----------
    AdWords currently supports only Adobe Flash Player versions 4 through 10.1. If your ad uses any other version (such as 10.2), it cannot be uploaded. 
    Flash CC - for some obscure reason - is built to publish down to Flash 10.3, no less. It is solved by installing two files in the Flash directory:
    C:\Program Files\Adobe\Adobe Flash CC\Common\Configuration\Players\FlashPlayer9_0.xml
    C:\Program Files\Adobe\Adobe Flash CC\Common\Configuration\ActionScript 3.0\FP9\playerglobal.swc
    Files, courtesy of user kglad:
    https://forums.adobe.com/servlet/JiveServlet/download/5510986-147068/playerglobal.swc.zip
    https://forums.adobe.com/servlet/JiveServlet/download/5510986-147069/FlashPlayer9_0.xml
    How to use: After installing, go to File > Publish Settings, and select Flash Player 9.0 in "target" (top right corner) of the swf file format.
    Google doesn't allow Flash ads that don't support the clickTAG variable. The clickTAG is the tracking code assigned by Google to an individual ad. It allows Google to register where the ad was displayed when it was clicked and helps advertisers determine the effectiveness of their campaign.
    Note that it's not necessary to specify the landing page URL for the ad anywhere in this code; this is taken care of through the usage of clickTAG.
    The code, provided by google for ActionScript 3:
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    someButton_or_displayObject_to_receive_mouseClick.addEventListener(
       MouseEvent.CLICK,
       function(event: MouseEvent) : void {
         flash.net.navigateToURL(new URLRequest( root.loaderInfo.parameters.clickTAG), "_blank");
    The blue text replaced with your instance name. Make sure that every instance of the button has the name.
    How it's done:
    Find the animation symbol your button is sitting in and go inside.
    Click on the button once.
    See "Properties" (it's a tab next to "Library" for me).
    Where it says <Instance Name> - write a name you like.
    Make a new layer if there isn't one already for code. There probably is for the loop code beforehand.
    Click F9 while on the first frame where the button appears.
    Paste the above code.
    Replace the blue text with the name you wrote.
    And finally:
    Publish.
    Upload to Google Adwords to check if it bloody works.
    PROFIT.
    If you think I got anything wrong, or you know a better way, let me know, this is all by trial and error, forum reading and a lot of frustration.
    Message was edited by: Dalia Kochnev

    that is not the correct AS 3.0 ClickTAG function. Please use this instead.
    //CLICK TAG
    function handleClick(mouseEvent:MouseEvent):void {
        var interactiveObject:InteractiveObject = mouseEvent.target as InteractiveObject;
        var li:LoaderInfo = LoaderInfo(interactiveObject.root.loaderInfo);
        var url:String = li.parameters.clickTag;
        if (url) {
            if (ExternalInterface.available) {
                var userAgent:String = ExternalInterface.call('function(){ return navigator.userAgent; }');
                if (userAgent.indexOf("MSIE") >= 0) {
                    ExternalInterface.call('window.open', url, '_blank');
                } else {
                    navigateToURL(new URLRequest(url), '_blank');
            } else {
                navigateToURL(new URLRequest(url), '_blank');
    clickTag_btn.addEventListener(MouseEvent.MOUSE_UP,handleClick);
    As well Google accepts up to Flash Player 11.2 as of Dec 2014.

  • Tag info problem

    Hello
    When I drop new music on my iPod touch 5G via iTunes 12.1.1.4 and start editing tag info (Artist, album, cover , e.t.c) , I see changes only in Itunes, but not in iPod, even when I push Sync button in right down corner.
    How can I fix it?
    ios 8.3.1, Windows 7

    If they are mp3s, try changing the ID3 tag version.
    Ctrl-click one of the files, click "Convert ID3 tags...", check "ID3 tag version", select "v2.4", press OK, and try playing the file.

  • Click Tag not working

    I am very new to Flash. I used a pre-exisitng file to create mine. The previous Click Tag worked fine, but this publication gave me a new one to use:
    on (release) {
    if (_root.clickTAG.substr(0,5) == "http://www.google.com") {
       getURL(_root.clickTAG, "_blank");
    i inserted the google URL to test and it does nothing.
    this is the click tag that worked fine:
    on(release){
    getURL("http://www.google.com", "_blank");
    Any advice?

    If the top set of code is what you are using, the conditional might be what's failing to allow the command to work...
    if (_root.clickTAG.substr(0,5) == "http://www.google.com") {
    The substr method you use will be creating a string that only has 5 characters in it, starting with the first, so chances are you need to use...
    if (_root.clickTAG.substr(0,5) == "http:") {

  • Can I get html tag info through actionscript?

    Hi,
    I want to know if there is any way to get the html tag info
    through
    actionscript when the swf file is played in a web browser?
    for example, if the html snippet is:
    <embed name="xx" id="99"
    type="application/x-shockwave-flash"
    src="my.swf" />
    can I get the 'name', 'id' attribute value of this html tag
    from my.swf
    through actionscript? or is there any other way? I know
    actionscript can
    call functions in the html page, but that cant' help me get
    the 'name',
    'id' attriubte value of the html tag.
    Any suggestion is highly appreciated, thanks in advance.

    Great! thanks, I will take a try of this.
    Gorka Ludlow wrote:
    > Use FlashVars:
    >
    > <embed name="xx" id="99"
    type="application/x-shockwave-flash"
    > src="my.swf" FlashVars="id=99&name=xx" />
    >
    > This will make two variables available at the main
    timeline of your movie.
    >
    > Cheers,
    > Gorka
    > www.AquiGorka.com
    >
    >

  • Click tag and btn instances AS 2.0 questions

    I have to do some banners for a client that meet yahoo standards. I have one question that I cannot find the answer to so I thought I could post here.
    Banner needs to be in AS 2.0  and need to know can I use one button with multiple instances and enter multiple click tags inside or do I need to have a button for each individual click tag?
    For instance:
    I need to have 12 different clicktags on one banner.
    Can I use one button and 12 instances of the same button?
    rd

    You can use twelve instances of the same button, but you cannot give them the same instance names if you use instance names for coding them.

  • Can anyone help me write a script that would click "get info" and then "enter" on each movie in my itunes library? I am asking because my itunes 11 repeatedly loses the artwork to my movies in my itunes library.

    Can anyone help me write a script that would click "get info" and then "enter" on each movie in my itunes library? I am asking because my itunes 11 repeatedly loses the artwork to my movies in my itunes library. I can restore the artwork (and make my apple tv see the movie exists as well) by going into the movie library and clicking on each movie by hand, slecting get info, and then selecting enter. Now doing this 10 times in 20 days was fun and all BUT I would really like to automate the process so everytime itunes screws it up I can fix it easier.
    I saw this example of an itunes script that restores artwork for music
    tell application "iTunes" set theSelection to selection repeat with i from 1 to count of theSelection tell (item i of theSelection) set artworkCount to count of artwork repeat artworkCount times set theArtwork to data of artwork 1 delete artwork 1 set data of artwork artworkCount to theArtwork end repeat end tell end repeat end tell
    but I need to tweak this to fit my needs for simply clicking the "get info" button and "enter" in the movie library rather than all the stuff this guy has listed. Any ideas or help on writing this? Thanks.

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

Maybe you are looking for

  • How can I script moving paths from one file to another?

    Hello. I have 1 image with various color correction layers. The other is the exact same size but only contains paths. How can I script moving paths from one file to another? Thanks, in advance, for any help you can offer. Thanks!

  • Most recently created row

    We have an error_log table which will log errors after the execution of a stored proc. We have a create_time field which stores the time of creation of the new record. How can i view the most recently created row? Is the below mentioned query(courtes

  • Why did my right click and drop down lists suddenly stopped working in firefox? How do get it fixed?

    I have the latest firefox there is and one day when i opened it, the right click button stopped working. Then even the drop down litsts stopped working. For example if i click on the firefox icon in the top left corner, nothing happens. I have tried

  • Application Logging questions, SLG0

    Hello all, I have a couple of generic questions I would like to ask the users of this forum. 1.  The people that are using application logging, in what types of situations do you use this functionality, interface programming, updating custom tables,

  • Create a report

    Hi to all; i need to create some report dynamically with a pl/sql procedure. My question is: it's possible? and if it's possible, can someone give me an example? Regards Jhon