Flex classes in Pure AS3 projects

According to this blog article , some Flex components such as the Flex WebService and HTTPService don't rely on the Flex framework, so it should be possible to import and use them in a pure AS3 project.

I often wonder if Adobe could have designed Flex with a modular approach similar to that of the Zend framework, whereby some of the classes could have been imported without having to load the full framework.

Do you know of any other Flex components/classes that could be used in such a way?


The Flex Compiler--which is used in pure ActionScript projects compiled w/ Flash Builder--will optimize itself. Only the classes you use go into the final SWF. So, the final file size will no be affected if you put 100 classes in your library path and never use them. So, feel free to add the Flex SWC information and just use the HTTPService and/or WebService.

I would assume if you are using Flash Pro that similar optimizations occur when creating the final SWF.

That said, Adobe does seem to be moving in the direction of separating out Flex. Flex 4 classes, for example, are located across 10 different SWCs. Mobile classes in Flex Hero are also isolated, adding at least one more SWC to the mix.

I suggest you take a look at the rpc.swc class, as I guess that is where the HTTPService and other related classes reside.

Need Your Help

Diffie-Hellman Library for c++ and java

java android c++ diffie-hellman

I want to exchange a public key between a c++ application and and android application.

Is it possible to create a new thread under a thread?

c++ multithreading boost

I have a question: can man create a new thread tt under a thread t? This new thread tt needs to use a member function memberfunction() in class A. The thread t calls a independent function D() out of