mateuszmackowiak / NativeDialogs

Adobe Air Native Extension for mobile native dialogs (IOS,Andoid) - Toast, Text Input dialog, Progress dialog, Alert dialog, multi single choice dialog + DatePicker dialog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NativePickerDialog selectedIndex not working? by multi set.

egu20 opened this issue · comments

by iOS5.

selectedIndex working!

var _pickerDialog:NativePickerDialog = new NativePickerDialog();
var fruits:Vector.<String> = new Vector.<String>();
fruits[0] = "Apple";
fruits[1] = "Orange";
fruits[2] = "Strawberry";
var datas:Vector.<PickerList> = new Vector.<PickerList>();
datas[0] = new PickerList(fruits, 1);//selectedIndex = 1
_pickerDialog.dataProvider = datas;
_pickerDialog.show();

selectedIndex not working...

var pickerDialog:NativePickerDialog = new NativePickerDialog();
var fruits:Vector.<String> = new Vector.<String>();
fruits[0] = "Apple";
fruits[1] = "Orange";
fruits[2] = "Strawberry";
var datas:Vector.<PickerList> = new Vector.<PickerList>();
datas[0] = new PickerList(fruits, 1);//selectedIndex = 1
datas[1] = new PickerList(fruits, 0);//**
[ADDED 1 LINE]**_
_pickerDialog.dataProvider = datas;
_pickerDialog.show();