Flex: Package is unexpected error

Posted by soden on Stack Overflow See other posts from Stack Overflow or by soden
Published on 2010-05-20T14:58:50Z Indexed on 2010/05/20 15:00 UTC
Read the original article Hit count: 254

Filed under:
|

import mx.controls.Alert;

package dbconfig // error line here { public class DBConn { private var dbConn:SQLConnection; private var dbFile:File;

    public function DBConn()
    {
         this.openConnection(); 
    }

    public function openConnection(){
           dbFile = File.applicationStorageDirectory.resolvePath("accounting.sqlite");
           dbConn = new SQLConnection();

           try 
           {
             dbConn.open(dbFile);
             Alert.show("asdf");
           }
           catch(e:SQLError)
           {
             Alert.show("SQL Error Occured: ", e.message);
           }
    }

}

}

© Stack Overflow or respective owner

Related posts about flex

Related posts about adobe-air