The only thing I'm trying to accomplish is an understanding of what's going
on. If it's a special-case in the compiler (and builder) I want to be aware
of it, if not I'd like to know how it works because it could be a useful
trick for my arsenal. I smell some sort of voodoo, because builder is
auto-completing the little-case <mx:operation/> tag -but won't let you
cmd-click it through to mx.rpc.soap.mxml.Operation.as

-Josh

On Wed, Aug 6, 2008 at 2:30 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>  public dynamic class WebService extends mx.rpc.soap.WebService implements
> IMXMLSupport, IMXMLObject
> Looks like there is some compiler magic too though.
>
> What are you trying to accomplish?
>
>  ------------------------------
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* Tuesday, August 05, 2008 9:10 PM
> *To:* [email protected]
> *Subject:* Re: [flexcoders] <mx:WebService> compilation - what's the
> secret sauce?
>
>   Nothing in the WebService hierarchy includes the [DefaultProperty]
> metadata, mxml.Operation does not implement IMXMLObject or extend
> UIComponent, and I can't see anywhere how the compiler makes the leap from
> <mx:operation> (lowercase "o") to the mx.rpc.soap.mxml.Operation class. Is
> it in some sort of manifest file?
>
> Is it hard-coded into the compiler, or is there another way to specify
> these things that I'm not aware of? Is it hard-coded to look for
> IMXMLSupport? Is there any actual documentation for IMXMLSupport?
>
> -Josh
>
> On Wed, Aug 6, 2008 at 1:45 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>>  mx:WebService is defined in the RPC.SWC manifest as
>> mx.rpc.soap.mxml.WebService, which implements IMXMLObject
>>
>> mx.rpc.soap.mxml.WebService has a default property which is a map of
>> mx:rpx.soap.mxml.Operation objects
>>
>> IMXMLObjects have an initialized() method
>>
>>  ------------------------------
>> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
>> Behalf Of *Josh McDonald
>> *Sent:* Tuesday, August 05, 2008 8:06 PM
>> *To:* [email protected]
>> *Subject:* [flexcoders] <mx:WebService> compilation - what's the secret
>> sauce?
>>
>>    A few questions -
>>
>> How does the compiler make the leap from this:
>>
>>     <mx:WebService id="service">
>>         <mx:operation name="VehicleOutOfRepair"/>
>>     </mx:WebService>
>>
>> to this:
>>
>> private function _main_WebService1_i() : mx.rpc.soap.mxml.WebService
>> {
>>     var temp : mx.rpc.soap.mxml.WebService = new
>> mx.rpc.soap.mxml.WebService();
>>     service = temp;
>>     temp.operations = {VehicleOutOfRepair: _main_Operation1_c()};
>>     temp.initialized(this, "service")
>>     return temp;
>> }
>>
>> private function _main_Operation1_c() : mx.rpc.soap.mxml.Operation
>> {
>>     var temp : mx.rpc.soap.mxml.Operation = new
>> mx.rpc.soap.mxml.Operation();
>>     temp.name = "VehicleOutOfRepair";
>>     return temp;
>> }
>>
>> ?? How does it know do create a mx.rpc.soap.mxml.Operation from
>> <mx:operation> which doesn't seem to be defined? How does it know to collect
>> these into a dynamic object and call it operations? I can't find any
>> appropriate metadata or anything to make this leap?
>>
>> Anybody who can clear this up would definitely be appreciated!
>>
>> -Josh
>>
>> --
>> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>>
>> :: Josh 'G-Funk' McDonald
>> :: 0437 221 380 :: [EMAIL PROTECTED]
>>
>>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>
> 
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to