Skip to content

Instantly share code, notes, and snippets.

View trxcllnt's full-sized avatar

Paul Taylor trxcllnt

View GitHub Profile
package org.tiny.tlf.interaction.gestures
{
import flash.events.Event;
import flash.events.IEventDispatcher;
import org.tiny.tlf.events.GestureEvent;
public class GestureBase implements IGesture
{
public function GestureBase()
override protected function initializeApplication():void
{
// Try to initialize mixins to the ReflexApplicationLoader
// (a well behaved mixin relies on a MovieClip),
// but if anything goes wrong, don't allow mixins to muck
// up our initialization.
var mixins:Array = info()["mixins"];
if(mixins && mixins.length > 0)
{
while(mixins.length > 0)
package com.pt.components.containers.data
{
import flash.utils.Dictionary;
import mx.utils.UIDUtil;
public class RepeaterData
{
public function RepeaterData()
{
package com.voyager.clubhouse.modules.admin.view.components.passage.display.interaction
{
import com.voyager.common.view.components.text.interaction.AbstractTextDispatcher;
import com.voyager.common.view.components.text.interaction.LineInfo;
import flash.events.MouseEvent;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.text.engine.TextLine;
import flash.ui.Mouse;
<?xml version="1.0" encoding="utf-8"?>
<rx:Skin
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:graphics="reflex.graphics.*"
xmlns:layout="reflex.layout.*"
xmlns:rx="http://rx.reflex.io/2010"
xmlns:s="library://ns.adobe.com/flex/spark"
>
<rx:states>
<s:State name="over"/>
<?xml version="1.0" encoding="utf-8"?>
<rx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:layouts="reflex.layouts.*" xmlns:rx="http://rx.reflex.io/2010" xmlns:s="library://ns.adobe.com/flex/spark">
<rx:layout>
<rx:VerticalLayout gap="10" hAlign="left" vAlign="middle">
<rx:padding>
<layouts:Padding bottom="10" left="10" right="10" top="10"/>
</rx:padding>
</rx:VerticalLayout>
</rx:layout>
<rx:Rect height="100%" width="25%" hAlign="right"/>
var css:String =
"global{
fontName: Calibri;
fontSize: 26;
}
#font1{
color: #00FF00;
}
#font1 #special1{
fontWeight: bold;
/**
* The MIT License
*
* Copyright (c) 2009 @author jessefreeman
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@trxcllnt
trxcllnt / reflect.as
Created February 9, 2011 00:55
caches the results from Flash's describeType() call
package org.tinytlf.utils
{
import flash.utils.*;
public function reflect(type:Object, refreshCache:Boolean = false):XML
{
const typeCache:Dictionary = ReflectionCache.cache;
if(!(type is Class))
{
package {
import flash.errors.IllegalOperationError;
import flash.utils.Dictionary;
import flash.utils.Proxy;
import flash.utils.flash_proxy;
use namespace flash_proxy;
public dynamic class ImmutableProxy extends Proxy {
private const propertyMap:Dictionary = new Dictionary();