Password protect a flash site

I am building a flash site where I would like to password protect a certain page. I’ve tried this in html/java and the passwords could easily be viewed by right-clicking and viewing the source. Is there a way to password protect a page on a flash site and prevent the code from being seen?