IMO, using multiple design patterns = framework
Whether you throw them together on your own or use an existing one, it's still 
a framework.
Stuff like Cairngorm and ARP are just a step up from MVC.
IMO, you can read about them all day long.. the only thing that will help you 
grasp the concept is getting your hands dirty and 
actually use them (at least that's what works for me).

> But just to do a Webservice call on a large project you "probably should use 
> a framework"?

You really need to read that again..
Forget the webservice part and read out loud:

*on a large project you probably should use a framework*

repeat 100x ;-)

I rewrote your code because it was wrong/sloppy:

    var myGetResult:Object = new Object();
    myGetResult = myWS.getMyData();

Invoking a webservice method returns a PendingCall, not a generic Object, in 
AS3 you won't get away with it.
Plus, you don't need the first line (creating the object), because the method 
call "returns" something (PendingCall).
Hence:

var myData_pc:PendingCall = myWS.getMyData();

regards,
Muzak

----- Original Message ----- 
From: "Merrill, Jason" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, April 09, 2007 9:43 PM
Subject: RE: [Flashcoders] WebServices in Flash IDE ...


>>>Well, I guess it depends on what you call a large project ;-)
>>>I do know that without a proper framework (MVC at a mimimum,
>>>doesn't have to be ARP etc..) things get messy, fast..
>>>And I disagree that you have to be an advanced coder to learn
>>>and understand them and afterall, this is FlashCoders, not
>>>FlashNewbies.
>
> Really.  Glad you pointed that out.  Well then who?  An "intermediate"?
> Explain to an "intermediate" how to implement Caringorn, I read a lot on
> the site and couldn't for the life of me figure it out, though I don't
> consider myself just an intermediate, though maybe you do.  :)  I guess
> it depends on what you consider an "advanced" coder, that's a subjective
> definition.  I also think MVC is a design pattern, not a framework.  In
> my vantage point, I don't see those as the same thing.  We use design
> patterns like MVC, but not formal frameworks like Cairngorn on our RIAs.
> I don't think frameworks like you mentioned HAVE to be used to do large
> projects and keep it clean.   But just to do a Webservice call on a
> large project you "probably should use a framework"?  I still would
> disagree with you there.  Design patterns, yes.  Frameworks, maybe, if
> it makes sense and works for you, and doesn't take too much time to
> figure out an implement.
>
>>>    var myData_pc:PendingCall = myWS.getMyData();
>
> You re-wrote my example, but it does same thing I wrote, you just
> changed the names or the variables.  I'm confused as to why.
>
>>>That aside, I didn't say that if you want to use WebServices
>>>through ActionScript that you need some kind of framework.
>
> Well, OK, I guess if you're getting that technical, you actually instead
> said, "for large projects you probably should":
>
>>>For
>>>larger projects you probably should be using a framework
>>>(ARP/Cairngorn) in which case everything is written in code.
>
> Very slight semantic difference - "need" vs. "probably should".
>
> Jason Merrill


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to