package components.Tools
{
import mx.containers.Canvas;
public class BannerPointer extends Canvas{
[Embed(source="../assets/cross.gif")]
public static var cross:Class;
[Embed(source="../assets/txt.gif")]
public static var txt:Class;
public function BannerPointer(){
setStyle("backgroundImage", cross);
setStyle("borderStyle", "none");
setStyle("backgroundColor", null);
setStyle("backgroundAlpha", 1);
width = 11;
height = 11;
}
public function changePointer(value:String):void{
switch (value){
case 'cross':
setStyle("backgroundImage", cross);
width = 11;
height = 11;
break;
case 'txt':
setStyle("backgroundImage", txt);
width = 11;
height = 20;
break;
}
}
}
}