Posted By

scottwatkins on 03/22/11


remove background Flex

Versions (?)

UPDATED: Remove Flex Background

 / Published in: ActionScript 3

UPDATE: The original code posted produces an error in IE9 on Windows 7. Please use the following snippit instead.

If you need to embed a flex application inside another swf, the flex background (even if alpha=0) will not allow your cursor to interact with the containing application from within the bounds of the embedded application. This snippet removes that default flex background.

  1. // works in IE9
  2. Set borderSkin="{null}" in MXML
  5. // original code - doesn't work in IE9 on Windows 7 in some cases
  6. rawChildren.removeChildAt(0);

Report this snippet  

You need to login to post a comment.