It seems that in Flash, you can load an SWF (CS-built) with Loader. To load the same (CS-built) SWF in Flex, you need SWFLoader.
The thing is, I am creating an SWF-loading framework and I want it to be cross-compatible, both with Flash CS and Flex. Is this possible, or do I need 2 versions of my code?
Yes it’s possible to use the SWFLoader class with (at least) CS5.5; you need to download the Flex SDK and declare the Flex libraries for use inside the authoring tool.
In other words, you have to add this path inside the “Library Paths”:
…\flexsdk\frameworks\libs
then you can use all Flex libraries with CS5.5.