Hi coders,
This is a newbie question, finding its way to The enlightenment of
Best-Practices and Re-use. Consider this case:
Custom Component A
--+
mx:Script
![CDATA[
//...logic for comp A
private function getRecords():void{
var
-*will it be ok to create a class that
just handle the service?
Not just ok, but great!
*does it really worth considering we
are using the code just 2 times?
*why?
Just wait till you need to modify anything about that service, like the URL.
Who wants to track down multiple instances that
2 matches
Mail list logo