     //  Variables
     //
     //--------------------------------------------------------------------------
-    
-    private var layoutFeatures:AdvancedLayoutFeatures;
+
+    // Softlink AdvancedLayoutFeatures to remove dependencies of embeds on
+    // framework classes. This helps to reduce swf size in AS-only projects.
+    private var layoutFeaturesClass:Class;
+    private var layoutFeatures:IAssetLayoutFeatures;
     
     //--------------------------------------------------------------------------
     //

                if (mirror && layoutFeatures == null)
                {
                    initAdvancedLayoutFeatures();
                    layoutFeatures.mirror = mirror;
                    validateTransformMatrix();
                }
                else if (!mirror && layoutFeatures)
                {

    //  layoutDirection
    //----------------------------------
    
    // Use "ltr" instead of LayoutDirection.LTR to avoid depending
    // on that framework class.
    private var _layoutDirection:String = "ltr";
    
    [Inspectable(category="General", enumeration="ltr,rtl")]
    
