     //  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;
     
     //--------------------------------------------------------------------------
     //

    //  layoutDirection
    //----------------------------------
    
    private var _layoutDirection:String = LayoutDirection.LTR;
    
    [Inspectable(category="General", enumeration="ltr,rtl")]
    

{
    include "../core/Version.as";

    // Softlink FlexVersion and MatrixUtil to remove dependencies of embeds on
    // framework classes. This helps to reduce swf size in AS-only projects.
    private static var FlexVersionClass:Class;
    private static var MatrixUtilClass:Class;
    
    //--------------------------------------------------------------------------
    //
    //  Constructor
