ActionScript 1/2 :: ClickTAG Code In A Flash Banner Be Changed If Only Have The .swf File And Not The .fla File?
Oct 26, 2009Can the clickTAG code in a flash banner be changed if you only have the .swf file and not the .fla file?
View 1 RepliesCan the clickTAG code in a flash banner be changed if you only have the .swf file and not the .fla file?
View 1 Replieshow to put the code into the HTML file to complete the clickTAG process for a banner ad.
I have put the following code onto the button (covers whole ad):
on (release) {
clickTAG = "http://" + clickTAG.slice(7);
if(clickTAG.substr(0,4)=="http") getURL(clickTAG,"_blank");
}
but I need to know what to do with the HTML doc....Is this how the ad goes to the intended location like a regular URL link would?
I'm having problems with the following code and need to merge the 2 following code together.
on(rollOver) {
getURL("javascript:expandCreative('ContainerDivID' );");
gotoAndStop(2);
} on(rollOut) {
getURL("javascript:collapseCreative('ContainerDivI D');");
gotoAndStop(1);
}
on (release) {
if (clickTag.substr(0,5) == "http:") {
getURL(clickTag, "_blank");
}}
Need the 2 following as above into one working code.
My ant buildfiles tell mxmlc.jar to recompile target mxml source. However, if the target mxml source file has not changed, either ant or mxmlc is ignoring the file and will not create a new swf. This is an annoyance because I'm editing files imported by the target mxml. I need it to rebuild when those files change. I'm guessing that the mxmlc is creating a cache file somewhere and comparing the target mxml (or maybe just a hash). Is this what is happening? What's the standard work-around? At the moment, I'm editing the target mxml just to cause a file change.
View 2 RepliesWe'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?
View 2 RepliesI 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.
View 1 RepliesI don't have access to the original Flash file [url]...
View 2 RepliesI working on a flashbanner. It is a dynamic textfield called "regnr" where the user is supposed to add a registration number (of their car) before clicking the send button. This code is on the button:
Code:
on(release){
//getURL("[URL]"+regnr.text);
getURL(_root.clickTag+regnr.text,"_blank");
}}
It works when the domain is hardcoded but doesn't work when I am using the clickTag. Is it possible to add variables like this to a clickTag? How could this be done to actually work?
i am trying to get a 'clickTag' variable to work within a flash banner ad which i didn't make.. i have been assured that within the flash file the variable is being 'expected'.. i am using swfobject to pass in the clickTag variable..
[Code]...
the flash banner displays fine.. but there is 'clicking' element of it is not working.. ie. there is no link on the banner.. can anyone see any problems with the way i am doing this...? or.. is the problem definitely within the swf....??
I'm trying to find out if there is a way of using clickTag and Google Analytics to track outgoing banner clicks. clickTag code:
on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG);
}
}
Maybe someone can tell me whether the following would work:
on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL("javascript:pageTracker._trackPageview('/somebannerad');");
getURL(clickTAG);
}
}
like a solution that worked with the standard clickTag code and didn't involve changing any code in the flash file.
I am working on a prototype or proof of concept for my company to adopt Flash as an alternative rather than conventional HTML. I've created my demo XML file locally and followed instructions on a YouTube video (yeah I'm that new) and it all works as it should. The problem is this... I have been looking literrally for hours for a way to get my Flash file to update when the XML gets changed. Either on the fly or via some sort of timer/auto-refresh. I simply cannot wrap my head around it.
Here's my AS3 code so far:
var xmlholder:URLLoader=new URLLoader(new URLRequest("test.xml"));
xmlholder.addEventListener(Event.COMPLETE,onload);
[code]......
I am trying to write a class file using a .as file instead of writing code into the script tab of a .fla file.When I write stage.addChild(img); I get an error that stage is null. When I take out stage, and just write addChild(img); the code runs fine, but nothing appears on stage. Do I need to do something to set a stage active?
Is this because I don't have a Main class? My class is named after the file and I don't have a file named Main.Here is the code. As it is, it runs and I get the two trace outputs, but no graphic on my screen.
package { import flash.display.DisplayObject; import flash.display.Sprite; import flash.display.Loader; import flash.events.*; import flash.net.*; public class HelloWorldImage extends Sprite { private var background:DisplayObject, foreground:DisplayObject; private var url:String = "hw_jpg.jpg"; private var loader:Loader = new Loader( ); public function
[code].....
I've been asked to add clickTAG to a banner ad. I used ActionScript 3 and my research shows it only works with ActionScript 2. Is this true?
View 3 RepliesI 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.
View 0 RepliesCan someone migrate to AS3 this very very useful code? Especially for Banner makers...
[code]...
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".
Not really resolved, just giving up
View 2 RepliesSo 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?
Is there a standard way to send variables through a banner ad? A client wants a banner that lets the user enter his mobile number, then receives a code by sms, and then enters the code into the banner. If the code then validates, the user is sent to a page with a login form with the phone number and code filled in. It must be possible to add the phone number and code as parameters to the clickTag somehow? I found that Adform supports using ";cppar=1&" and then variable=value pairs, but is this a standard, or a special feature of Adform?
View 1 RepliesI am trying to find out how to make one .as file code interact with another .as file's code.like, if I had one .as file that specified options of movies and then when the user clicks on a movie (loaded through xml) it uses code from another .as file to load the correct movie.
View 5 RepliesWe recently decided to add a flash banner to our site which calls an xml file which loads the price and name for 5 separate products and keeps looping through until a user clicks a product. Unfortunately, it appears each time the file loops it calls another iteration of the xml file -- so if a user opens our homepage and walks away the xml file could be called 100s of times. My question is, can we set up the actionscript so the xml file is called just once?
View 1 RepliesIs there a way to Check if the xml file that your loading in has changed since you loaded it in last? I want to check to see if it has changed before i reload it into flash.
ActionScript Code:
var myXML:XML;
var myLoader:URLLoader = new URLLoader();
I have trouble passing a variable from HTML to Flash.I use swf-object2.2.how to code the variable in the html-file and how to receive it in the as-file?Its a simple shopId = 110
View 3 RepliesI'm making a Flash animation in Flash CS4, using motion tweens to change positions and sizes of objects on stage. I frequently open the animation file and find a motion-tweened object has been moved to a new position from the one it was in when I last saved the file. All the frames in the tween seem to be affected. If I open the file again without saving, the object is still in the wrong position. I have had to redo or substantially correct a big tween several times. It's wasting time, and I can't rely on my work being in the state that I saved it last. I think the problem happens to the files when I open them after starting up Flash.
View 2 RepliesSo I have this code which loads an xml file
[Code].....
I want to have several buttons however load a different xml file, not just use one file. Would this mean I would have to recreate the above code for every button, or is there anyway I could reuse it?
right-click on a Windows folder, as an example, and to change its icon. Right-clicking on the .exe projector file icon doesn't bring up any such option. Can this icon be changed through ActionScript somehow?
View 1 RepliesCan the background color of the stage be changed from an external XML file?
View 5 RepliesI am converting all embed statements in my site with lazy loading. The code which was previously like this:
[Embed(source="/newswf.swf", symbol="kungfu")]
public static var Kungfu:Class;
has now been converted to this form:
private var _loader:Loader = new Loader();
public static var abcd:Class = null;
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoadComplete);
[code].....
I have one designign query in need the code of Swf file so first i need to convert it to fla then i need a script code of it.but didnt fine it on internet.
View 1 RepliesI am building a website, but am fairly new at it on flash... Am I able to add HTML code to the file? I am trying to add a code which creates a map from mapquest...?[code]
View 1 Replies