Local/HTTP detection

Is it possible to detect whether an SWF file is launched locally or through a HTTP protocol? Any hints/tutorials?