On 4/29/16, 5:37 PM, "dhwanishah85" <dhwanisha...@gmail.com> wrote:
>Hi, > >I wanted to extend VerticalColumnLayout and listen "sizeChanged" event in >it. > >I have created an .as file :here is few lines of code from it: > >public class ResponsiveVerticalColumnLayout extends VerticalColumnLayout { > >public function ResponsiveVerticalColumnLayout(minColumnWidth:int) { > > this.minColumnWidth = minColumnWidth; > app.addEventListener("sizeChanged", > calculateNumColumns); > } > >How can I achieve a listener call in this file? Is there any way that I >can >get InitialView in this file? Layouts are beads. The strand passed into the strand setter is probably a container in the tree of objects. There is a "topMostEventDispatcher" property which is essentially what the stage is in Flash. You might need to adjust BrowserResizeListener to dispatch an event from the topMostEventDispatcher. HTH, -Alex