Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Responder in SQLLite

Guest
Sep 10, 2013 Sep 10, 2013

Hi guys

When using responder eg  new Responder(onSearchResult, searchFailed)  instead of a standard event listener, so you need to remove the Responder in some way once it's complete, as you would an event listener?

If so, how is that done?

Cherers for your help.

TOPICS
ActionScript
568
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Sep 11, 2013 Sep 11, 2013

I believe a Responder works in more of a singleton means. Just null your reference if it's not scoped. Typically I would scope responder to a class-level object and when I'm cleaning up after my app I simply null the object. You can also sort of anonymously use it in the SQL statements execute as well e.g. mysqlconn.execute(-1, new Responder(someFunction)); 

Just be careful that no more SQL statements execute if you expected a responder to pick up the update or error or you can encounter a runti

...
Translate
LEGEND ,
Sep 11, 2013 Sep 11, 2013

I believe a Responder works in more of a singleton means. Just null your reference if it's not scoped. Typically I would scope responder to a class-level object and when I'm cleaning up after my app I simply null the object. You can also sort of anonymously use it in the SQL statements execute as well e.g. mysqlconn.execute(-1, new Responder(someFunction)); 

Just be careful that no more SQL statements execute if you expected a responder to pick up the update or error or you can encounter a runtime error.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 22, 2013 Sep 22, 2013

Cheers Sinious - makes sense!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 23, 2013 Sep 23, 2013
LATEST

You're welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines