Return to Snippet

Revision: 41082
at February 11, 2011 19:12 by RubenBristian


Initial Code
public function isStolen():Boolean {
			var _domain : String = (new LocalConnection()).domain;
			var _allowedDomainList : Array = new Array();

			//------- add here all strings that would have to be found in allowed domain names --------o
			_allowedDomainList.push("localhost");
			_allowedDomainList.push("domain1");
			_allowedDomainList.push("domain2");
			//--------------------------------------------o

			for (var i : Number = 0; i < _allowedDomainList.length; i++) {
				if (_domain.toLowerCase().indexOf(_allowedDomainList[i].toString().toLowerCase())>-1) {
					return false;
				}
			}
			return true;
		}

Initial URL

                                

Initial Description

                                

Initial Title
domain restriction on preview files

Initial Tags

                                

Initial Language
ActionScript 3