2 Replies Latest reply on Mar 3, 2008 11:13 AM by Handycam

    Panel with no edges?

    Handycam Level 1
      I'm trying to display a SWF Ad in my application. Whoever made it forgot to mask the stage, so I'm trying to mask it in my app. I found this snippet online:

      <mx:Panel title="Banner goes here" layout="absolute">
      <mx:Box id="box2" backgroundColor="red" width="{swfLdr.width}" height="{swfLdr.height}" />
      <mx:SWFLoader id="swfLdr" source="Banner.swf" width="468" height="60" mask="{box2}" />

      And it works -- problem is, the Panel has a thickness, so the Ad floats in this larger box. I want the ad to be "borderless".

      No other container supports layout=absolute (so the two items can overlap) other than Panel. I have tried setting the border of the panel to none, headerHeight to none, padding to 0. I can get the BORDER to go away, but the background puts like 10 pixels around my ad.

      I have also tried setting the W and H to match my ad, but this puts scrollbars. If I then turn the scrollpolicy off, I still have the frame, but the ad is croped.

      How so I make it flush?