package { import mx.core.UIComponent; //import com.example.programmingas3.newslayout.StoryLayout; public class actionscript_book_NewsLayout_com_example_programmingas3_newslayout_StoryLayoutComponent extends UIComponent { public var story:actionscript_book_NewsLayout_com_example_programmingas3_newslayout_StoryLayout; public var preferredWidth:Number = 400; public var preferredHeight:Number = 300; public var numColumns:int = 3; public var padding:int = 10; public function actionscript_book_NewsLayout_com_example_programmingas3_newslayout_StoryLayoutComponent():void { super(); } public function initStory():void { this.story = new actionscript_book_NewsLayout_com_example_programmingas3_newslayout_StoryLayout(this.preferredWidth, this.preferredHeight, this.numColumns, this.padding); this.addChild(story); } } }