Skip to content

Instantly share code, notes, and snippets.

View tpodhraski's full-sized avatar

Tomislav Podhraški tpodhraski

View GitHub Profile
@tpodhraski
tpodhraski / ComponentConstraint.as
Created September 26, 2012 22:50
Constrained Layout
package justpinegames
{
public class ComponentConstraint
{
public static const HORIZONTAL_CONSTRAINT_LEFT:String = "left";
public static const HORIZONTAL_CONSTRAINT_CENTER:String = "center";
public static const HORIZONTAL_CONSTRAINT_RIGHT:String = "right";
public static const VERTICAL_CONSTRAINT_TOP:String = "top";
public static const VERTICAL_CONSTRAINT_MIDDLE:String = "middle";
public static const VERTICAL_CONSTRAINT_BOTTOM:String = "bottom";
@tpodhraski
tpodhraski / AutosizeLayout.as
Created September 13, 2012 21:11
AutosizeLayout
package FoxholeYAML
{
import flash.geom.Point;
import flash.utils.Dictionary;
import org.josht.starling.foxhole.layout.ILayout;
import org.josht.starling.foxhole.layout.LayoutBoundsResult;
import org.josht.starling.foxhole.layout.ViewPortBounds;
import org.osflash.signals.ISignal;
import org.osflash.signals.Signal;
import starling.display.DisplayObject;