2 Replies Latest reply: Jan 2, 2013 7:21 AM by rabbit78 RSS

    flex 4.6 DropDownList...

    rabbit78 Community Member

      hi!!!

       

      i have problem with this code.....

       

      private function selectItemsPlaylist2(evt:MouseEvent):void{

                                              var stat:SQLStatement = new SQLStatement();

                                              stat.sqlConnection = connection;

                                              stat.text = "SELECT id, nome, base, testo, lista FROM playlist where lista = ?";

                                              if (DropDownList.selectedItem.combo == null) {

                                                        Alert.show("Selezionare la PlayList!", "Errore");

                                              }else{

                                              stat.parameters[0] = DropDownList.selectedItem.combo;

                                              stat.execute( -1, new Responder(onSelectedPlayList2));

        }

                                    }

      if don't select DropDownList, show error!!!! why???

       

      help me!!!!