Hi Neil,
I usually put the Delegate Classes inside a "utility" package and import them to my project. Optionally, you can leave them inside your applications model package for testing purposes. As long as your imports work, thats fine...
in order to make use of the LocalDBDelegate you need to:
1. implement the IDelegateResponder interface ( as you already did )
2. implement the 3 methods, the last 2 defined by the IDelegateResonder interface, similar to this
public function loadPage( id:int ):void
{
new LocalDBDelegate( "CREATE TABLE 'users' .... ", LocalDBDelegate.MODE_SYNC, this, null ).execute();
}
public function onDelegateResult( serviceid:String, data:Object ):void
{
// this method is called by the Delegate after the query has been sucessfully executed
}
public function onDelegateFault( serviceid:String, data:Object ):void
{
// this method is called by the Delegate, if the query has caused an error
}
Your code is probably only missing the "onDelegateFault" method as stated in the error message you received.
Do not forget to call the static "init()" method of the LocalDBDelegate class prior to any db operations.
Good luck
Thomas