With CS4 it is possible to do with ActionScript.
See Patchpanel and CSXS on Adobe Labs.
Can you use the CSXSInterface in just Flash and not Flex? What would your import statement be if you were importing it into an actionscript package? Everything I read just talks about Flex.