ActionScript 3.0 :: Clicktag, Clicktarget To A Button?
Dec 10, 2009
I have a button with a link to my hompeage. but I want to insert a clicktag, clicktarget to y link. How do I do that in Actionscript 3? Right now, my code, without clicktag, looks like this:
I am making a Flash ad for my company. I am a beginner/intermediate Flash user. I need to add a clickTag, which is done. The issue is that I want the button to "shimmer" when it is rolled over. I cannot figure out how to make this work with the clickTag having to be the topmost layer in the file.
This is what I have so far: shinyButton.onRollOver = function() { this.glitter.play();};clicktag_but.onPress = function(){ getURL(_root.clickTAG, "_blank");};
We are having problem with one certain Flash banner. We need to insert an active transparent button or to be completely correct we would need the clickTag as an active transparent button and the next function as follows:
on (release) { getURL (_level0.clickTag, "_blank") }
We designed a banner with simple animation but the whole banner must be a clickable button with clickTag, so that our client can track the click and traffic.
I've got a movie clip which is the entire size of the stage and is activated on rollover and again on rollout to return to its original state. This works fine but now I need to add a clicktag over the top of the movie clip. The clicktag then disables the movie clip when published leaving it static.
Getting clickTAG to work should be simple (using CS4 to generate AS2), On the top layer of my swf in frame 1, I placed an invisible box, made it a MC and called it transpBox_mc. In another layer of frame 1, I placed the following code:
transpBox_mc.onMouseUp = function():Void { // with or without :Void it still doesn't work if (_root.clickTAG.substr(0,4) == "http") { getURL(_root.clickTAG, "_blank"); }} // also tried this as a transparent button with an onRelease event
In the HTML, I placed a Param tag in the Object section: <param name="flashvars" value="clickTAG=[URL]" /> And also placed the variable in the Embed section: embed src="movie.swf?clickTAG=[URL]" // also tried flashvars="clickTAG=[URL]"
In all cases, the movie plays fine, but the link doesn't work. I tried locally, on my server and also tried the tester at [URL] (though it isn't clear which part of the parameter to enter).
I am just about to pull my hair out - please help as I don't have that much hair to pull out. I created a flash file in Flash CS3 and was told I need to add a click tag for an agency who want to keep track of the click throughs for the ad.
I have created the invisible button layer and set up the 'hit' and tried and tried and tried to select the button and add some action script to it. (which I have seen three different codes to use)
Each time I export it or publish it I get the error message: mouse events are permitted only for button insances on release. I have read and understand I need to assign the code to the button and not the frame but for the life of me, I cannot figure out how to do that.
I select the button (which I have converted to a 'button') and F9 or left click to get the Actions panel and once I am there and try to use the '+' to add code, it automatically shows 'Current Select/Frame 1 in the left side of the Actions panel. I get that it is adding the code to the frame but how do I get it to add the code to the button???
I've created a flash banner that on rollover changes to a form and onrelease posts the variables - this works fine.My confusion is when I need to include the clickTAG script for adwords tracking.The code I've used is simple and is the following:[code]If I have both on codes one after the other will google track correctly? Is there another way that I can pass the variables to the URL that is defined in adwords via the clickTAG?
I made a banner ad and the site gave me this code to work with:
on (release) { if (clickTAG.substr(0,5) == "http:" ) { getURL(clickTAG, "_blank");[code].........
I made an invisible layer and put this code on it. The swf showed the hand, but when I clicked on the banner nothing happened, on my end or on the live site.Then I used this code:
on(release) {getURL(clickTag,"_blank")}
On my end it would open a blank page. On their end they got a 404 message.Why is it not connecting to the server and opening the link? Is there something in my file that could be preventing either clickTAG from working?I exported in Flash 9. I'm using a loop code. I have many layers and masks, but all are under the invis. layer.
I'm just finishing off my first bannerproject in AS3, but I'm having some issues with the clicktag. The code I've used works just fine on all browsers except IE, which blocks the popup window. I've figured I'm supposed to use the externalinterface call to work around my IE problems. Something like this...
I have an ad banner that the client says the clickTag layer must be the top most layer. The problem is I have movies below that layer that animate on rollOver:
Code: on (rollOver) { this.gotoAndPlay("bounce"); } These do not work unless they are above the clickTag layer. Is their a way I can adjust the rollOver code to acomodate for this? Both the clickTag and the movies are on the main time line but the rollOver animation is in its own movie.
I am designer and working on some Flash Banner design projects.client need it according to Google terms as it is going for google Adwords Program , so i am using this code:[code]but my probem is that i have done all the animation inside a Movie clip and i the button is inside the movie, can i paste the code on the insode button or i should create a button on main stage ?
In my flash, I created a transparent button in the first frame in the uppermost layer and in the timeline it spanned the entire flash. I'm running CS4 AS 2.0 and flash player 10 When I right click the button and add the code in actions on (release) { if (clickTAG.substr(0,5) == "http:") { getURL(clickTAG, "_blank"); } } and I try to export, I get a compiler error: Mouse Events Are Permitted Only For Button Instances.
I am trying to make a banner ad that allows me to tracks stats / click thrus.I thought I could use clickTags, but i don't know if I can since I need to have the MY link embedded in the fla.
I'm designing a Flash Ad that requires a specific clickTAG.
ActionScript Code: // this.onMouseDown = function() { var fo:LoadVars = new LoadVars(); fo.send(_root.clickTAG, "_top", "POST"); }
I want to implement user initiated sound, but I can't seem to define a certain region for the clickTAG. Also I'm using AS 2.0 I know the clickTAG won't take me to the proper location, but I uploaded it to my website to test the audio.[URL]I've attached 3 images or you can just go to my website and see it (click the link above).I tried placing an invisible movie clip over the location I want the clickTAG to work and attached the ActionScript to the mc.When I scroll over the audio button it changes, but when I click it, instead of playing the audio it just tries to go to the URL.I also tried using a button, but that didn't work either.
I've done a banner ad for my client. The marketing company is kicking it back saying the clickTAG variable is not working. Below is the required code and specs. The attached Zip file has the ad. I'm a newbie to AS2, which is required for the ad.
Click Tags:All Flash banner ads are required to support the clickTAG variable. The clickTAG is the tracking code assigned by the publisher to an individual ad. It allows the publisher to register where the ad was displayed when it was clicked and helps ReachLocal evaluate the effectiveness of the banner creative.
On any click, Flash ads should redirect to the URL specified in the clickTAG argument; there should be no other redirection in between.The variable name must be reflected exactly as follows: clickTAG (upper-case TAG; no space between click and TAG; not click tag, Click Tag, or any other form).The Flash banner ad should contain the following code for the clickTAG parameter:
on (release) { if (clickTAG.substr(0,5) == "http:") { getURL(clickTAG, "_blank"); } }
The above code should be copied and pasted into the banner ad�s code exactly
* as it appears above.The code should not specify the destination URL for the ad; this is a responsibility of ReachLocal.
*Additional Web Developer Information: Depending on the structure of your Flash ad, it may be necessary to prepend "_root." or "_level0." to the clickTAG above, resulting in "_root.clickTAG" or "_level0.clickTAG".
I am trying to make a banner ad that allows me to tracks stats / click thrus.I thought I could use clickTags, but i don't know if I can since I need to have the MY link embedded in the fla.
So what i did is made a new layer called it Click Tag and put a button on it and made the button invisible, then i added this Action script to it
on (release) { if (clickTAG.substr(0, 5) == "http://www.ozarksfederal.com/") { getURL(clickTAG); }}
Ozarks Federal is the company advertising on the banner i made...and that's there websiteI think this is right but i don't know how to test if it is right?
That and other information about the movie, like the width, height, duration, framerate and if it make other urlRequest. I need this for a banner management system.
We've been developing an affiliate system and would like to detect somehow that a compiled, SWF advert implements clickTAG or not. Is there any way to automate this process?
I`m trying to make use of the clickTag function in a website, but it doesn`t work, I`ve followed some tutorials and they just don`t work. How exactly should I do to make a clickTag function work?
In my flash, I created a transparent button in the first frame in the uppermost layer and in the timeline it spanned the entire flash.I'm running CS4 AS 2.0 and flash player 10When I right click the button and add the code
on (release) { if (clickTAG.substr(0,5) == "http:") { getURL(clickTAG, "_blank");
I've designed an as3 flash banner with 3 input fields. The user fills in these fields and clicks a button. The text from these fields are then stored as variables, which needs to be included in the target url - like this: websitestuff...?a=1&b=2&c=3 This is no problem. However, here's the issue: The banner needs to use clickTAG as it will be uploaded to Google Adwords. I can make the clickTAG part work, but have been unsuccessful in also adding the 3 variables after the url.