5 Replies Latest reply on Aug 29, 2008 11:39 AM by 2JZ

    Binding a module's width to the caller

    2JZ Level 1
      I've been trying to bind a module's size to the caller's container's size. How do I do this correctly? Should I create an event listener in the module?

      I have the following fragment in the app.

      <mx:ModuleLoader id="myTrendChartModule" url="modules/MyChart.swf"
      width="{MyVBox.width}" height="350" verticalScrollPolicy="off"/>

      It does bind the width initially. But, it doesn't bind when I resize the app. I have to add " resize="OnResize()" " in the <mx:Application>. And, I have to call a chart function to resize it there.