Graphics Reference
In-Depth Information
public class ReverseClipSample extends Sprite {
private var myBall:ball = new ball();
public function ReverseClipSample(){
addEventListener(ReverseClip.REVERSE_COMPLETE,reverseComplete
Handler,false,0,true);
myBall.addFrameScript(myBall.totalFrames - 1,
rewindBall);
addChild(myBall);
}
private function rewindBall():void {
trace( " rewindBall " );
ReverseClip.play(myBall,1);
}
private function
reverseCompleteHandler(e:DataEvent):void{
trace(
"
reverseCompleteHandler
"
);
}
}
}
The ClickTagger Class
ClickTagger is a class that was primarily built to solve for the case
sensitivity issue that Flash developers may run into when using the
clickTag variable in their banners. Without a current standard in
place for ad-serving companies, some use clickTag, while others
use clickTAG, and still others use ClickTag or even clicktag.
In ActionScript 2, this wasn
tanissue,butassoonasFlash
Platform developers or agencies start creating banners with Action-
Script 3, they may very quickly encounter the problem by having
their ads kicked back for not working correctly.
While writing ClickTagger, I also decided to add a bit of function-
ality to it to allow the developer to not only assign the clickTags to
the proper interactive elements but assign a fallback URL as well.
The fallback URL works for local testing from within the Flash IDE
(where clickTags aren
'
t/isn
'
'
t passed in) and is also used in the unfortunate
event that there
s a problem loading the clickTags at runtime. If the
clickTags fail to load, at least the user will still be taken to the URL
you provide.
'
ClickTagger Code
package com.flashadbook.utils{
import flash.display.LoaderInfo;
import flash.events.MouseEvent;
Search WWH ::




Custom Search