Flash actionscript and .htaccess

my Flash website calls a script to XML data that I dont want the user to have access to. When I try to use .htaccess and allow only the host to access (via an IP addess) I still get 500 errors…

do actionscript requests happen at the user level, and not the host level?

thanks

celticvfx