It's possible within a Flex application, to declare elements, for example a HTTPService elements, both in XML and also in code.
That is, either: ...
or in code: var hs : HTTPService = ...
My question is when should I prefer which alternative? What are the advantages of having stuff in XML vs. plain old vars in code?