mrthuanvn / gaforflash

Automatically exported from code.google.com/p/gaforflash
Apache License 2.0
0 stars 0 forks source link

Cursor pointer doesn't change for link #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a flash cs5 banner and implement tracking code (AnalyticsLibrary 
Component )
2. use the code snippets to implement "click to go to webpage"
3. test on live or a demo site

What is the expected output? What do you see instead?
As with other banners I've created and anything that has a link you notice the 
cursor usually changes to a hand icon or something different so you can tell 
it's a clickable link/image etc
The cursor doen't change from a pointer at all but if you click the banner it 
still goes to the destination url

What version of the product are you using? On what operating system?
Flash CS5 - V1.0.1.234

Please provide any additional information below.

ACTIONS LAYER CODE:
tlmovie.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_3);

function fl_ClickToGoToWebPage_3(event:MouseEvent):void
{
    navigateToURL(new URLRequest("http://www.(URL).co.uk"), "_blank");
}

LAYER WITH ANALYTICS CODE:
import com.google.analytics.AnalyticsTracker;
import com.google.analytics.GATracker;
var tracker:AnalyticsTracker = new GATracker( tlbk, "UA-XXXXXX-X", "AS3", false 
);
tlmovie.addEventListener( MouseEvent.CLICK, onButtonClick );
function onButtonClick ( event:Event ):void
{
   tracker.trackPageview("/TrainlkBKN");
} 

Original issue reported on code.google.com by g.hups...@training-link.co.uk on 23 Apr 2012 at 2:24

GoogleCodeExporter commented 9 years ago
RTFM

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display
/Sprite.html#buttonMode

Original comment by zwetan on 30 Apr 2012 at 10:14