content is a DefaultProperty so I don't need to include it in the mxml ----- Original Message ----- From: Sherif Abdou To: flexcoders@yahoogroups.com Sent: Sunday, August 24, 2008 1:02 PM Subject: [flexcoders] Vectors/Getter And Setters
I am wondering is this allowed, and if it is How do i make it work since I keep getting Internal error: type for Property '{name}' is unreachable. private var contentVec:Vector.<UIComponent>; public function get content():Vector.<UIComponent> { return contentVec; } public function set content(value:Vector.<UIComponent>):void { contentVec.push(value); } <vadex:VadexFlow> <mx:Image source="@Embed('assets/album1.jpg')"/> <mx:Image source="@Embed('assets/album2.jpg')"/> <mx:Image source="@Embed('assets/album3.jpg')"/> </vadex:VadexFlow>