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.

Similar Messages

  • 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.

  • 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.

  • Need help in screen capturing for flash CS4 AS3

    Hi, i need help!!!!!!!!!!!!!!!!!!!!!! URGENT!
    I am currently doing Augmented Reality.
    I got my marker to detect my model but my problem now is how to screen capture the content that is in swf.
    (As in capture the dae model shown in the comp not from webcam.)
    & also i just want to capture the swf window not the whole desktop.
    I read online, they say its impossible?
    Or is it possible to call screen capture function in javascript to flash CS4? (LIke external data)
    (Moreover, does anyone know how to detect multiple dae models with different markers?)
    Anyone can help??? Thanks in adv!!

    My current program (Flash CS4, AS3) only can capture what the webcam sees.
    How do i change it to screen capture (something like print screen) with my .DAE models?
    In the case, when i click on the capture button, it print screen.
    Here's part of the code that capture what the webcam sees.
    private function captureImage(e:MouseEvent):void
       bmd.draw(stage);
       bmp = new Bitmap(bmd);
       bmp.x = 140;
       bmp.y = 40;
       addChild(bmp);
       capture.visible = false;
       saveButton.visible = true;
       discardButton.visible = true;
    Really really need help! URGENT!
    Thanks!

  • How to open an .exe file in flash using AS3.0?

    hi all
    Iam trying to open  an notepad.exe file, when I click a button in flash file. I tryed navigateToURL methoad, it is getting but it is showing some alert with
    " save  -  run  -  cancel "   options, when I click run it will open the notepad. But my requirement is it will not show any alert messages it should open the notepad directly. So, pls help me it is posible in flash with AS3.0 or not. If not, pls tell me is there any alternative for the same.
    thanks in advance
    Santhosh .M

    hello..
       i just made a labview .exe file..i do it by application builder..
    It shows error..   missing of  file path of an  Icon.. it is in NI Library file..
    Why it is not taking the path from there...
     it also showing error that.it may be due to the moving or deleting the File..
    The program is running good before making buid..
    Please suggest a Solution to debugg this problem soon..
    TIJU
    Regards
    Tiju Thomas

  • 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:") {

  • 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

  • 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);

  • My assistant and I are using two Lightrooms (i.e. two serial numbers) and need to share between our two computers. I provide originals to her onto a flash drive. She tags them and returns them to me. I then copy the photos from her flash drive onto my com

    My assistant and I are using two Lightrooms (i.e. two serial numbers) and need to share between our two computers. I provide originals to her onto a flash drive. She tags them and returns them to me. I then copy the photos from her flash drive onto my computer and load them in my LR. The photos appear but witthout any editing or tagging. We need to be able to have her working on the photos on her computer with her copy of LR and me on my computer with my version of LR being able to access what is already tagged and given back to me. This seems hard. We need advice on if it is at all possible to have two computers simultaneously working on LR . I bought her her own version because I was told at the time of purchasing that that was the only way to share. Please advise urgently! Thanks.

    Sounds like your assistant isn't instructing Lightroom to write the tagging and editing to the files themselves, so wehn the files return to you, they don't have editing and tagging information. She need to select the photos in Lightroom and then Ctrl-S (Cmd-S on Mac). Or alternatively turn on the option to autmoatically write this information to the files.
    If you are using RAW photos, then this information will be written to a sidecar XMP file, and your assistant must provide you with the sidecar file. If these photos are not RAW photos, then the information is written directly into the photo file itself.
    Lightroom wasn't designed to be a multi-user program, and so it is truly not possible to have two people working on the same catalog at once. The way you are doing things, as modified above, is probably the way to go.
    As an alternative, you can transfer (portions of) catalogs as well as photos back and forth and then all of these issues disappear, but a catalog might be rather large for a flash drive (or maybe not, it depends)

  • (Help) Using Input text in Flash CS4 AS3

    I am trying to take a user's input (His Name) and then greet the user on the next frame using the name he previously entered. I googled for 2days and was unable to find a way to do this on flash CS4 AS3, i guess because im very new to flash (only 2-3weeks )
    Any help would be greatly appreciated, and i am sorry if this was already answered in the forums.
    thanks for reading.

    If your interested... here's some general "rules of the road" that are basically courtesies...
    Don't post the same question in different forums (crossposting).  Folks that help don't like that because they can waste their time providing the same response someone else already offered elsewhere, or their helpful info gets no attention because the OP (original poster) got wrapped up in the discussion elsewhere and never went back to the other forums.  I saw one time where the OP suffered from doing this... the first person to respond in one forum said what they wanted couldn't be done, while my response in another forum showed them how to do it... but they accepted that it couldn't be done and never returned.
    Don't post in someone else's posting unless the exact same situation applies to you and it is a current posting.  It is a bit rude to step into someone else's posting just to get attention, which some people do... some with totally unrelated problems.  Or if your problem is even slightly different, it can end up confusing matters for all involved... trying to juggle helping two people where different solutions are needed.
    If you get one problem resolved and have another you want help with that does not involve the first, start a new posting.  People search these forums so it helps to have topics match the postings, which will not apply if mutliple topics get resolved under one title.  I recently saw one person tell someone to start a new posting even though they were following up to clarify something of the solution they received... that's wrong and is more likely someone with a case of points greed... as useless as points are, it happens.

  • How can I NOT let collision happen in Flash CS4(AS3)?

    I have been playing with collisions for quite a while, but cannot seem to get it just the way i want it to be.
    I made a new rectangle into a Movie Clip, with an instance name : "block_mc"
    I made a sphere into a Movie Clip, with an instance name : "ball_mc"
    I made the sphere(ball_mc) movable with the arrow keys.(see post:http://forums.adobe.com/thread/491457?tstart=0 )
    Now I wanted to try and make the sphere(ball_mc) stop moving so it wont hit the rectangle(block_mc), so that the rectangle(block_mc) would act like a solid object.
    Meaning the sphere(ball_mc) would not be able to touch the rectangle(block_mc). It would act like a wall.
    Now my problem is I don't know if there is a way of not letting objects collide?
    I tried the ".hitTestObject()" but that did not work for me.
    ~ Thanks for Help and Advice~

    I apologize, for this confusing long question, I simply ment to ask:
    Is there a way Flash CS4(AS3.0) will not let Objects on stage collide?
    ~Thank you for any Tips, Advice and Help~

  • How link from html page to a specific frame in flash cs5 as3

    Hi!
    I'm kinda new around here. I am interested in knowing how to link from a specific html page to a specific frame in flash cs5 as3.
    I have a website that I originally began to design in flash but later started developing new pages for it in html. The flash part of it has several pages on different frames and I have created links from the flash part to the other html pages, but, I can only link the html pages back to the main flash home page, and not the other pages in the flash part of the website.
    I have read that in cs3 it was possible using the flashvars skip variable, but I don't know how to do it. I have not yet seen any working examples and I could not find any instructions / tutorials online for cs5.
    Can someone help here?

    add a query string, to the swf's embedding html, with variable/value indicating the frame you want to display in your swf.  add a javascript function to return the query string (or entire url), call the javascript function from flash using the externalinterface class.  and finally add code to your swf to parse the returned url or query string, parse it and then direct your timeline to the appropriate frame.

  • Flash Crashes on clicking import to stage

    I'm having an issue with a blank open document, clicking on 'import to stage' will crash the program or clicking on 'import to library' will crash the program.  I have tried uninstalling CS4 and re-installing CS4. The problem remains the same.
    Any ideas, I'm desparate.
    Thanks.
    Al

    Hi Peter,
    Thanks for the reply, and yes I can copy and paste. I did find a post that
    mentioned compatibility mode which I did try and it cleared everything up.
    The strange part to this is that everything worked fine until a few days
    ago. I think it may have to do with all the security patches that the
    company I work for jams down our systems on what seems like a weekly
    basis. But thanks for the reply, I do appreciate it.
    Al
    From:
    PJSB_DK <[email protected]>
    To:
    Alan Fiterman <[email protected]>
    Date:
    08/19/2010 02:54 PM
    Subject:
    Flash Crashes on clicking import to stage
    Hi
    Will it crash if you try copy/paste?
    Have you applied the latest patches/upgrades?
    Best regards
    Peter

  • Tried to open but was told to: Update Flash Player. Clicked on: Update Flash Player, then went back to open and got the same message to update Flash Player. Did I get malware from Flash Player??

    Tried to open a page but was told to update Flash Player. Clicked on update Flash Player, watched the blue bar fill in, went back to open page and it again said update Flash Player. Did I get malware instead of Flash Player? How do I know if I got malware?

    Just in case keep these links handy ..
    The Safe Mac » Adware Removal Guide
    The Safe Mac » Adware Removal Guide : Genieo
    The Safe Mac » Mac Malware Guide
    You can update Flash by opening System Preferences > Flash Player then select the Advanced tab.
    Click: Check Now

  • DateChooser Component for Flash CS3, AS3.0

    Where and how do I get the datechooser for Flash CS3, AS3.0?

    which version of flash cs3 do you have?

Maybe you are looking for

  • Create customer master record with reference to existing division

    how to create customer master record with reference to existing division?

  • Is there a maximum of pictures in Bridge gallery?

    Hi, I have 112 pictures in one of my galleries. but online there are only 100 viewable, is there a maximum of pictures in a gallery? Thanks

  • What will happen If I update my factory locked iphone 4 to iOS 7?

    I have a factory locked iphone.I just forgot the passcode now i want to restore it itunes are showing the message that it can restore & update only.i want to know that if i update ios7 what will happen.you can also help me how to restore my iphone wi

  • How to reduce render time?

    I have created two separate events in FCP X that are both completely done and fully rendered.  I now want to combine them onto one timeline and then send them to Compressor to burn a DVD for a client.  It is frustrating to have to wait for this new 3

  • Opening PDF and Word links

    Hello, How can I tell Safari too always download PDF and Wordfiles instead of trying too open them in a new tab ore window? And I mean too set that as a default, the CTRL click I know of. Kind regards.