adds method for clearing containers in older flex versions