mercredi 8 février 2017

Actionscript 3 Air for Android DatePicker Ane

I need a datepicker for my App build with Adobe Flash and AIR. I am using the following ANE (,but it does not show up a datepicker. Following is my code :

    function showDatePicker():void{
    var currentDate : Date = new Date();
    var callback : Function = function( selectedDate:String ) : void {
    trace("selected date = ", selectedDate.toString());
    // Native extension call
    //dp = new AirDatePicker();
    dp = AirDatePicker.getInstance();
    dp.displayDatePicker(currentDate, callback, new Rectangle(0,0,_width,_height));
    //gotoAndStop(1, "Home");

Aucun commentaire:

Enregistrer un commentaire