IDE :: Swfobject - Get A 'clickTag' Variable To Work Within A Flash Banner Ad
Sep 21, 2008
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 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:
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 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 am using SWFobject.I am creating Banner Management System. I need to integrate Flash (SWF) banners and need to keep track of clicks and impressions.I tried to wrap flash object within anchor tag. Not working [URL]However, for simple things like clickable banners, all you may need is swfobject. how to create clickable banners with swfobjects?
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'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".
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?
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?
Developing an ASP MVC site which has a Flash Intro and encountered a strange behavior: it is impossible to go into full screen (in any browser). Flex application has this script to go in full screen (AS3):
I've tried to send some parameters to my flash app by flashvars. Unfortunently, it doesnt work. To embde flash I'm using SWFObject 2.2. I also use lib SWFAddress 2.4 (I'm stating this, because I've heard that some versions of swfobject and swfaddress are not compatible).Here is my html code:
I am trying to take a PHP variable and pass it along to Flash via Flash vars. My end goal is to pass a string formatted as XML to Flash, but because I'm struggling I've stripped everything down to the basics. I'm just trying to pass a simple PHP string variable to Flash via FlashVars with SWFObject but something isn't right. The page won't load when I try to pass the variable inside of php tags, but it will load if I just pass a hard coded string. The basic structure of my page is that I have some PHP declared at the top like so:[code]How do I pass a PHP variable using SWFObject and FlashVars?
I have been building a website in dreamweaver, but have flash buttons which work fine. But the banner I have made in the page just has a white background. When I export it in flash it works, and when I preview in the dreamweaver browser it still works. I do not know what I have done wrong. Is the coding in the server wrong for the flash?
why the buttons in the flash banner I created in Flash CS4 work when I preview it in either Flash or HTML in the Flash CS4 program, but when I go to load it into a html document in Dreamweaver CS4 and preview it in a firefox or IE browser, the banner comes up fine, but the buttons this time will not work. The buttons are displayed with there animation and sound, but the links will not work. I have tried scripts in AS2 and AS3.
Am I using the code improperly or is there a flaw in SWFObject? If you go to the URL below you can see that it the flash file (an MP3 player) shows up perfectly fine in Chrome. However, in both Firefox and IE8 it loads a blank white box. If you mouse over the box the pointer changes to a hand as if its registering the buttons, just not actually displaying them. Link: [URL] (MP3 player should be displaying in the right-hand empty column)
I've tried to send some parameters to my flash app by flashvars. Unfortunently, it doesnt work. To embde flash I'm using SWFObject 2.2. I also use lib SWFAddress 2.4 (I'm stating this, because I've heard that some versions of swfobject and swfaddress are not compatible).
[Code]...
I've tried many solutions and read many tutorial or forumposts, but I havent found any that solves my problem.
This has been driving me nuts. I've worked with SWFObject in the past which is great. However I have a requirement not to use JavaScript. So when I try to do flashvars examples all over the net, they don't seem to work for me. Steps to repeat:
1) Create a pure AS3 project using Flex or Flash Builder
2) In the index.html wherever there is a .swf, add a name value pair suffix. test.swf?foo=bar
3) In the constructor of the main class Sprite, trace(root.loaderInfo.parameters.foo).
Expected: bar but traces out as undefined I've tried setTimeout() to evaluate 5 seconds in the future, still doesn't work as if it's not loaded at all.
I have several variables which i use to call flash movie, but i dont want to include that on document.ready because first i need one variable from jquery ajax response.
With swfobject 2.2, how do you specify the desired version of flash you require? I need flash 10, but swfobject won't perform an upgrade install with the provided expressInstall. swf in the swfobject 2.2 distributable. How do I get an upgrade install to occur for flash 10?
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.