From flash to flex

can some tell me the best way to create a flex component from Flash CS4 IDE,