UPDATED: Remove Flex Background


/ Published in: ActionScript 3
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. // works in IE9
  2. Set borderSkin="{null}" in MXML
  3.  
  4.  
  5. // original code - doesn't work in IE9 on Windows 7 in some cases
  6. rawChildren.removeChildAt(0);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.