Access keys

LocationUtil

Kind of class: class
Inherits from: none
Version: 9/22/06
Author: Aaron Clinger
Classpath: org.casaframework.util.LocationUtil
File last modified: Monday, 08 January 2007, 09:57:51
Util functions for detecting SWF's file location.

Summary

Class methods

isDomain

static function isDomain (
location:MovieClip, domain:String) : Boolean
Detects if MovieClip's embed location matches passed domain.
Parameters:
location:
MovieClip to compare location of.
domain :
Web domain.
Returns:
Returns true if file's embed location matched passed domain; otherwise false.
Usage:
To check for domain:
trace(LocationUtil.isDomain(this, "google.com"));
trace(LocationUtil.isDomain(this, "bbc.co.uk"));

You can even check for subdomains:
trace(LocationUtil.isDomain(this, "subdomain.aaronclinger.com"))

isIDE

static function isIDE (
) : Boolean

isPlugin

static function isPlugin (
) : Boolean

isStandalone

static function isStandalone (
) : Boolean

isWeb

static function isWeb (
location:MovieClip) : Boolean