joshtynjala Sorry I din't get you
this my code :
public static function showToast(text:String, tstColor:uint = Color.YELLOW, txtColor:uint = Color.BLACK, delay:Number = 2):void {
function skinnedToastFactory():Toast {
var toast:Toast = new Toast();
toast.backgroundSkin = new Quad(Main.screenWidth, Main.screenHeight / 10, tstColor);
toast.fontStyles = new TextFormat("KomikaAxis", 28, txtColor);
toast.close(true);
return toast;
}
Toast.showMessage(text.toUpperCase(), delay, skinnedToastFactory);
}
showToast("YOUR BONUS IS READY!"); // Called to display a toast