use flash api style to do android