0 Replies Latest reply on Jul 23, 2006 11:41 PM by divyakedia

    scale popup according to the content

    divyakedia
      Hi,
      I am generating a popup thru actionscipt:
      myTW = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, false, {closeButton: true, title: _root.reqmessage1, _width: 610, _height: 232, _x: 120, _y: 240, color: 16711680,contentPath:radioButtonArray[_loc2].object.bkimage});
      where,
      bkimage represents any img/swf which comes from an xml file. Now, i have already specified the width& height in the properties. But, when the image is bigger or smaller, i would like to have the popup scale itself accordingly. What changes do i make to the script? pls help.