transit some Flex API functions to Flex Widget (So called customized widget)