Hello hello

Good people is me again in the scene forgive me.
Is a silly question of to ask really, but the good thing is that I know you will bear with me. To cut long story short. My questions as follows:

How can I protect a Flash based webpages by passwords that reisde in a database server rather than on a flash movie.

The last and the foremost bit please, a code sample for these, and where to put this golden piece. I can't wait i tell you.

many thanks to you all for your goodies.