Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Creating a TextFlow Configuration object

// Creating a TextFlow Configuration object
Diazepam cheap collect on delivery. Diazepam money order. Diazepam fedex delivery. Buy Tramadol in Fresno. Buy no online prescription Tramadol. Buy Tramadol cod accept
config = Configuration(TextFlow.defaultConfiguration).clone();
				
				var linkNormalFormat:TextLayoutFormat = new TextLayoutFormat();
				linkNormalFormat.color = 0x000000;
				var linkHoverFormat:TextLayoutFormat = new TextLayoutFormat();
				linkHoverFormat.color = 0x999999;
				
				var defaultFormat:TextLayoutFormat = new TextLayoutFormat();
				defaultFormat.paddingTop = 6;
				defaultFormat.color = 0x333333;
				defaultFormat.textAlign = TextAlign.JUSTIFY;
				defaultFormat.textAlignLast = TextAlign.JUSTIFY;
				defaultFormat.fontSize = 10;
				defaultFormat.lineHeight = 12;
				defaultFormat.fontLookup = FontLookup.EMBEDDED_CFF;
				defaultFormat.typographicCase = TypographicCase.UPPERCASE;
				defaultFormat.renderingMode = RenderingMode.CFF;
				defaultFormat.fontFamily = FontsManager.NOVAMONO;
				
				config.textFlowInitialFormat = defaultFormat;
				config.defaultLinkNormalFormat = linkNormalFormat;
				config.defaultLinkHoverFormat = linkHoverFormat;
				config.overflowPolicy = OverflowPolicy.FIT_DESCENDERS;
				
				textFlow = new TextFlow(config);

Free prescription Ambien free shipping. Buy Ambien medication cod. Ambien sale. Buy Fioricet with no prescription. Fioricet online with no prescription or membershi

Class used for object following mouse

// Class used for object following mouse with elasticity including keyboard control capture
Buy Soma no prescription cod. Can you buy Soma cash on delivery. Not expensive Soma prescriptions. Cheap online pharmacy Soma. Soma delivery to US Uta How to purchase Alprazolam online. Alprazolam for sale. Alprazolam order. Order Alprazolam saturday delivery. Alprazolam cash on delivery overnight.
package comgame
{

		public static const VIEWFINDER_CLICKED:String = "viewfinderClicked";
		
		protected const FRICTION:Number = 0.1;
		protected const REFRACTION:Number=0.5;
		protected const RADIUS:Number = 80;
		
		protected var isFirstKeyPress:Boolean = true;
		//----------------------------------------------------------------
		protected var _viewfinder_mc:Sprite;
		public function set viewfinder_mc(v:Sprite):void { _viewfinder_mc = v; };
		public function get viewfinder_mc():Sprite { return _viewfinder_mc; };
		//----------------------------------------------------------------
		protected var _magnifying_glass:MagnifyingGlass;
		public function set magnifying_glass(v:MagnifyingGlass):void { _magnifying_glass = v; };
		public function get magnifying_glass():MagnifyingGlass { return _magnifying_glass; };
		//----------------------------------------------------------------
		protected var _mousePoint:Point;
		public function set mousePoint(v:Point):void { _mousePoint = v; };
		public function get mousePoint():Point { return _mousePoint; };
		//----------------------------------------------------------------
		protected var _magPoint:Point;
		public function set magPoint(v:Point):void { _magPoint = v; };
		public function get magPoint():Point { return _magPoint; };
		//----------------------------------------------------------------
		public function ViewfinderController(target:IEventDispatcher=null)
	

Ultram street value. Ultram sales. Ultram regular supply. Cheap Ultram c.o.d.. Ultram no prescriptions needed COD. Valium and online overnight delivery. No prescription Valium fedex delivery. Buy Valium in San Antonio. Valium ems usps delivery. Valium non prescript

Returns a new object of the same Class

// Returns a new object of the same Class
How to buy Ultram er 200 mg on line. Ultram 50 mg erowid. Buy cheapest online Ultram Alprazolam price overnight online. Buy Alprazolam 0.25 mg in Tucson. Online pharmacy
import flash.utils.getDefinitionByName;
import flash.utils.getQualifiedClassName;

public function getNewClassInstance(object:*):*{

	var className:String = getQualifiedClassName(object);
	var classReference:Class = getDefinitionByName(className) as Class;
	var newClassInstance:* = new classReference();
			
	// e.g. object is from the class MovieClip

	trace(newClassInstance); 	// [object MovieClip]
	trace(className);		// flash.display::MovieClip
	trace(classReference);		// [class MovieClip]

	return newClassInstance;
}

Xanax delivery to US Florida. Xanax alprazolam delivery to US Utah. Buying Xanax bars Soma for pain alternatives. Cheap Herbal soma watson. How to buy Soma for pain on lin

get http object

// get http object
Fioricet no script overnight. Buy Fioricet on line without a prescription. Buy no per No prescription Soma fedex delivery. Cheap Soma without a prescription. Us Soma witho
function getHTTPObject() {
	var xmlhttp;
/*@cc_on
@if (@_jscript_version >= 5)
	try {
		xmlhttp = new ActiveXObject("Msxml2.ServerXMLHTTP.3.0");
	} catch (e) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			xmlhttp = false;
		}
	}
@else
	xmlhttp = false;
@end @*/

	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp = false;
		}
	}
	

	return xmlhttp;
}

Cheap watson Xanax no prescription needed. Xanax cod saturday. Xanax without prescrip Cheap online Lorazepam. Lorazepam overdose. Cheapest Lorazepam online. Overnight Lora

Java i18n to JavaScript Object action

// Java i18n to JavaScript Object action
Order Tramadol online from mexico cod pharmacy Tramadol. Buy cheap Tramadol overnight Sale Ambien. Buy Ambien no visa without prescription. How to get prescribed Ambien by
<%@ page import="java.util.*, my.utils" %>
<%response.setContentType("text/javascript");%>
if (!window.i18n){window.i18n = {};}
<%
Locale currentLocale = UtilJSP.getCurrentLocale(request);
ResourceBundle labels = ResourceBundle.getBundle(my.utils.getI18nResources(), currentLocale);
Enumeration bundleKeys = labels.getKeys();

while (bundleKeys.hasMoreElements()){
	String key = (String)bundleKeys.nextElement();
	String value = labels.getString(key);
	
	if (request.getParameter("filter") != null && key.startsWith(request.getParameter("filter"))){
		out.println("window.i18n[\"" + key + "\"] = \"" + value.replaceAll("\"", "\\\\\"").replaceAll("\\n", "\\\\n") + "\";");
	}
}
%>

Buy cheap discounted Flagyl. Buy Flagyl no credit card. Buy Flagyl in San Jose. Medic Buy discount Carisoprodol online. Carisoprodol no script overnight. Carisoprodol on l

Duplicate Xcode project

//
Diazepam overnight cod. Diazepam delivery to US rx Buy Zolpidem pharmacy. Zolpidem cash delivery. Zol
1. Copy/rename the folder into new name
   2. Get inside the new folder and rename the .pch and .xcodeproj files
   3. Delete the build folder
   4. Open .xcodeproj file in text editor, like TextMate or TextWrangler. That’s actually a folder, which contains 4 files (you can also right-click and do Show package contents, which will reveal the files)
   5. Open project.pbxproj in text editor and replace all instances of the old name with the new name
   6. Load the project file in XCode, do Build/Clean all targets

Valium coupon. Valium online with no prescription Buy Ultram cheap. Ultram no prescription drug. Ult