Flash object(swf) is not able to redirect to specified destination URL.

appreciating help!

Comments

jeremy’s picture

Project: Advertisement » Ad Flash
Version: 6.x-2.x-dev » 6.x-1.x-dev
Component: ad module » Code

Reassigning to the ad_flash module.

drupaltechie’s picture

by reasigning also same thing, not able to redirect to destination url.
can u please explain it?

mherchel’s picture

Do 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");
}
}
);

Alex Andrascu’s picture

Is this still a problem ? Please test the official 6.x-2.1 release.

Alex Andrascu’s picture

Assigned: Unassigned » Alex Andrascu
Status: Active » Needs review
Alex Andrascu’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
gregarios’s picture

Status: Needs review » Fixed

Actionscript 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

Alex Andrascu’s picture

Status: Fixed » Closed (fixed)
kansaj’s picture

Hi,

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.

irozner’s picture

i 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

irozner’s picture

Status: Closed (fixed) » Active
Alex Andrascu’s picture

Chances are that this isn't Ad Flash related...see #7

irozner’s picture

I read it and follow the instructions one by one, but still nothing works.
For clarification: which one I should use? clickTag or clickTAG?

gregarios’s picture

Status: Closed (fixed) » Fixed

The instructions state specifically to use "clickTAG" only. Please read entirely and follow the directions precisely and I'm sure you'll have no problem.

gregarios’s picture

Status: Active » Closed (fixed)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.