actionscript-book-NewsLayout-com-example-programmingas3-newslayout-StoryLayoutComponent.ax [swf] flex
package { import mx.core.UIComponent; //import com.example.programmingas3.newslayout.StoryLayout; public class @ax-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 @ax-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); } } }
(C) Æliens 27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.