Of course. It's declaratively extending a class and everything
declaration enclosed is an instance of some (other) class. I totally
forgot that you can also extend classes in mxml.

Thanks Shaun. That's the answer I was look for.

On Dec 10, 2007 2:10 PM, shaun <[EMAIL PROTECTED]> wrote:
> Chris Velevitch wrote:
> > On Dec 10, 2007 12:07 PM, Bjorn Schultheiss
> > <[EMAIL PROTECTED]> wrote:
> >
> >>Add the -keep argument to the compiler options to see what goes on behind
> >>the scenes.
> >>
> >>This will give you your answer.
> >
> >
> > I'm looking for something at a higher level before I go for a deep
> > dive into the inner workings of the Flex compiler. Besides, the
> > compiler output won't explain the concepts and philosophy behind it.
> >
> > Chris
>
> I think(without looking at the generated code) its basically composition.
>
> As you are aware you have extended an existing class(ServiceLocator).
> The wrapped tag (a RemoteObject) is an instance variable contained in
> your ServiceLocator subclass.
> I don't think there is much more to it than that but i'm pretty much
> guessing as I havent actually looked at the generated code.
>
> <?xml version="1.0" encoding="utf-8"?>
> <cairngorm:ServiceLocator
>         xmlns:mx="http://www.adobe.com/2006/mxml";
>         xmlns:cairngorm="com.adobe.cairngorm.business.*">
>         <mx:RemoteObject
>                 id="addcontactService"
>                 destination="addcontactService"
>                 showBusyCursor="true"
>                 result="event.token.resultHandler( event );"
>                 fault="event.token.faultHandler( event );">
>      </mx:RemoteObject>
> </cairngorm:ServiceLocator>
>
> Your component is extending ServiceLocator and I image it will have a
> reference to a RemoteObject and the reference is called addcontactService.
>
> If it was as3 it might look something like:
>
> class Foo extends cairngorm.ServiceLocator{
>    protected var addcontactService:RemoteObject;
>    //etc. etc.
> }
>
>
> I suppose I should actually check this for myself.  :)
>
> HTH.
>    - shaun
>



-- 
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
m: 0415 469 095
www.flashdev.org.au

Reply via email to