Closed (fixed)
Project:
Ad Flash
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
23 Nov 2009 at 05:41 UTC
Updated:
2 Nov 2013 at 00:30 UTC
Jump to comment: Most recent
Flash object(swf) is not able to redirect to specified destination URL.
appreciating help!
Comments
Comment #1
jeremy commentedReassigning to the ad_flash module.
Comment #2
drupaltechie commentedby reasigning also same thing, not able to redirect to destination url.
can u please explain it?
Comment #3
mherchelDo you have your clicktag info within actionscript set up correctly?
Here's what I found works for me. You can also get this info off the bottom of my website at http://www.gatortailgating.com/content/advertise
For ActionScript 2.0, attach the following code to the instance of your button. This is the recommended method. This code is case sensitive.
on (release) {
if (clickTag.substr(0,5) == "http:") {
getURL(_root.clickTag, "_blank");
}
}
For ActionScript 3.0, you will need to create an action layer above the button where code will reside. The ActionScript for the button in your Flash file should look like this, except myButton needs to be the instance name of the button object. This code is case sensitive.
myButton.addEventListener(
MouseEvent.CLICK,
function():void
{
if (root.loaderInfo.parameters.clickTag.substr(0,5)=="http:")
{
navigateToURL(new URLRequest(root.loaderInfo.parameters.clickTag), "_blank");
}
}
);
Comment #4
Alex Andrascu commentedIs this still a problem ? Please test the official 6.x-2.1 release.
Comment #5
Alex Andrascu commentedComment #6
Alex Andrascu commentedComment #7
gregarios commentedActionscript 3 is not intended for clickTAG capability if you want compatibility with older versions of Flash. Use Actionscript 2. Also, this has nothing to do with the functionality of the ad_flash module... it is entirely the SWF designer who must insert the clicktag code correctly.
Unless I'm misunderstanding the question, this is fixed.
For more info on creating the ClickTAGs, see here: http://www.flashclicktag.com
Comment #8
Alex Andrascu commentedComment #9
kansaj commentedHi,
I have the problem that the click is working only in the node view. Once the banner is shown in block, than the link doesn't work.
Is it the same problem as described above?
----
a bit latter
I think that I found the problem, sorry for bothering you. The problem was not related to ad flash module.
Comment #10
irozner commentedi have the same problem and try clickTag, clickTAG and nothing works.
where i can find what i should use?
i'm using Actionscript 2.
thanks
Comment #11
irozner commentedComment #12
Alex Andrascu commentedChances are that this isn't Ad Flash related...see #7
Comment #13
irozner commentedI read it and follow the instructions one by one, but still nothing works.
For clarification: which one I should use? clickTag or clickTAG?
Comment #14
gregarios commentedThe instructions state specifically to use "clickTAG" only. Please read entirely and follow the directions precisely and I'm sure you'll have no problem.
Comment #15
gregarios commented