RE: [Flashcoders] How to get Arrays from a web service call into a menu nav?

2007-02-13 Thread Merrill, Jason
I'll try and shoot real straight with you here.  I don't know what the
data is on your other end.  I don't know WDSL or SOAP packets that well.
In my world, we develop in C# .NET and formulate objects and arrays.
The c# developer sends me an object, which has arrays, strings, numbers,
etc.  Since C# is an ECMA language, the object looks the same on his end
as it does on mine.  When I receive the SOAP message with the Webservice
component, I can immediately drill down through the object and get what
I need using standard Actionscript syntax. We keep a Word document of
the object model - both of us refer to it. Him, to create the object, me
to read from it, moidify it, and send changes back to him via SOAP. 

What is it you need out of the object?  You haven't given a real
concrete example of one data item you're trying to reach, other than "it
works in the Text Area component".  Sorry, but I don't know enough about
your project to answer your question effectively.  

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Andy Andersson
>>Sent: Tuesday, February 13, 2007 3:37 PM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] How to get Arrays from a web 
>>service call into a menu nav?
>>
>>Hi Jason,
>>Thanks again,
>>
>>One last try,
>>The snippet of code I gave you were the raw WSDL, when 
>>looking at it through the web browser, but I'll give you the 
>>structure of it how it looks returning into flash using the 
>>wsconn instead of writing the complete as code it for now. 
>>This is the first nav item.
>>
>>Identities : NavItem
>>Name : Sring
>>SubNav : Array
>>[n] : NavItem
>>
>>
>>Like I said earlier there are no problem to get the arrays to 
>>show the exact info inside an TextArea Comp, but to use the 
>>same info inside for example, a menu button or xml menu with 
>>dynamic text??
>>
>>Andy
>>
>>
>>On 2/13/07 12:18 PM, "Merrill, Jason" 
>><[EMAIL PROTECTED]>
>>wrote:
>>
>>>>> [Identities:( [Name] =>
>>>>> IDENTITIES [SubNav] => Array ( [0] => Array ( [Name] => 
>>ME [SubNav] 
>>>>> => Array ( ) ) [1] => Array ( [Name] => PUBLIC MESSAGES 
>>[SubNav] => 
>>>>> Array ( ) ) ) ),
>>> 
>>> I'm lost translating that to an Actionscript object based on that 
>>> description, sorry.  Perhaps you can do a loop through the 
>>object to 
>>> see what it looks like:
>>> 
>>> for(var i in myObject){
>>> trace(i)
>>> }
>>> 
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organizational Effectiveness
>>>  
>>>  
>>>  
>>>  
>>> ___
>>> Flashcoders@chattyfig.figleaf.com
>>> 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
>>
>>
>>___
>>Flashcoders@chattyfig.figleaf.com
>>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
>>
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] How to get Arrays from a web service call into a menu nav?

2007-02-13 Thread Andy Andersson
Hi Jason,
Thanks again,

One last try, 
The snippet of code I gave you were the raw WSDL, when looking at it through
the web browser, but I'll give you the structure of it how it looks
returning into flash using the wsconn instead of writing the complete as
code it for now. This is the first nav item.

Identities : NavItem
Name : Sring
SubNav : Array
[n] : NavItem


Like I said earlier there are no problem to get the arrays to show the exact
info inside an TextArea Comp, but to use the same info inside for example, a
menu button or xml menu with dynamic text??

Andy


On 2/13/07 12:18 PM, "Merrill, Jason" <[EMAIL PROTECTED]>
wrote:

>>> [Identities:( [Name] =>
>>> IDENTITIES [SubNav] => Array ( [0] => Array ( [Name] => ME
>>> [SubNav] => Array ( ) ) [1] => Array ( [Name] => PUBLIC
>>> MESSAGES [SubNav] => Array ( ) ) ) ),
> 
> I'm lost translating that to an Actionscript object based on that
> description, sorry.  Perhaps you can do a loop through the object to see
> what it looks like:
> 
> for(var i in myObject){
> trace(i)
> }
> 
> Jason Merrill
> Bank of America 
> Learning & Organizational Effectiveness
>  
>  
>  
>  
> ___
> Flashcoders@chattyfig.figleaf.com
> 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


___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] How to get Arrays from a web service call into a menu nav?

2007-02-13 Thread Merrill, Jason
>> [Identities:( [Name] => 
>>IDENTITIES [SubNav] => Array ( [0] => Array ( [Name] => ME 
>>[SubNav] => Array ( ) ) [1] => Array ( [Name] => PUBLIC 
>>MESSAGES [SubNav] => Array ( ) ) ) ),

I'm lost translating that to an Actionscript object based on that
description, sorry.  Perhaps you can do a loop through the object to see
what it looks like:

for(var i in myObject){
trace(i)
}

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
 
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] How to get Arrays from a web service call into a menu nav?

2007-02-13 Thread Andy Andersson
Hi Jason,
Thanks for your quick reply,

Example would be like: from their side,

[navigation] => Array ( [Identities] => Array ( [Name] => IDENTITIES
[SubNav] => Array ( [0] => Array ( [Name] => ME [SubNav] => Array ( ) ) [1]
=> Array ( [Name] => PUBLIC MESSAGES [SubNav] => Array ( ) ) ) ),

(This is an example of the first nav item and the sub nav )

What would be the best way to get the arrays inside my flash menu when
looking at his Array?

Andy


On 2/13/07 11:51 AM, "Merrill, Jason" <[EMAIL PROTECTED]>
wrote:

> You need to know the structure of the array and objects they are
> returning.  Likely, they are handing you an array of objects with
> properties - and you can grab the data by navigatinging the array object
> like,
> 
> myData[3].nav[2].name or something.  But they can structure that object
> you get from the webservice however they want, so you need to know what
> the object model is.
> 
> Jason Merrill
> Bank of America 
> Learning & Organizational Effectiveness
>  
>  
>  
>  
>  
>  
> 
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf
>>> Of Andy Andersson
>>> Sent: Tuesday, February 13, 2007 2:45 PM
>>> To: Flashcoders mailing list
>>> Subject: [Flashcoders] How to get Arrays from a web service
>>> call into a menu nav?
>>> 
>>> Hi everybody!
>>> I have a problem that I don't know if it's even possible to solve!
>>> 
>>> 1. I want to create a menu that holds a main Nav and Sub Nav
>>> (Horizontal), no problem with that, but upon my clients
>>> request they want to use a web service call to get the data
>>> from the server (works fine, triggering etc..) but the
>>> problem is that the web service returns a long list of
>>> arrays, containing the NAV NAMES etc..
>>> 
>>> So my problem is to get the arrays into the menu, works fine
>>> if using TextArea comp, but it won't help me, cause I need
>>> the arrays to show up inside the (buttons) in the menu.
>>> 
>>> Anyone knows what I'm trying to say here?
>>> 
>>> 
>>> Thanks
>>> Andy
>>> 
>>> 
>>> ___
>>> Flashcoders@chattyfig.figleaf.com
>>> 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
>>> 
> ___
> Flashcoders@chattyfig.figleaf.com
> 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


___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] How to get Arrays from a web service call into a menu nav?

2007-02-13 Thread Merrill, Jason
You need to know the structure of the array and objects they are
returning.  Likely, they are handing you an array of objects with
properties - and you can grab the data by navigatinging the array object
like,

myData[3].nav[2].name or something.  But they can structure that object
you get from the webservice however they want, so you need to know what
the object model is.

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Andy Andersson
>>Sent: Tuesday, February 13, 2007 2:45 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] How to get Arrays from a web service 
>>call into a menu nav?
>>
>>Hi everybody!
>>I have a problem that I don't know if it's even possible to solve!
>>
>>1. I want to create a menu that holds a main Nav and Sub Nav 
>>(Horizontal), no problem with that, but upon my clients 
>>request they want to use a web service call to get the data 
>>from the server (works fine, triggering etc..) but the 
>>problem is that the web service returns a long list of 
>>arrays, containing the NAV NAMES etc..
>>
>>So my problem is to get the arrays into the menu, works fine 
>>if using TextArea comp, but it won't help me, cause I need 
>>the arrays to show up inside the (buttons) in the menu.
>>
>>Anyone knows what I'm trying to say here?
>>
>>
>>Thanks
>>Andy
>>
>>
>>___
>>Flashcoders@chattyfig.figleaf.com
>>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
>>
___
Flashcoders@chattyfig.figleaf.com
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


[Flashcoders] How to get Arrays from a web service call into a menu nav?

2007-02-13 Thread Andy Andersson
Hi everybody!
I have a problem that I don't know if it's even possible to solve!

1. I want to create a menu that holds a main Nav and Sub Nav (Horizontal),
no problem with that, but upon my clients request they want to use a web
service call to get the data from the server (works fine, triggering etc..)
but the problem is that the web service returns a long list of arrays,
containing the NAV NAMES etc..

So my problem is to get the arrays into the menu, works fine if using
TextArea comp, but it won't help me, cause I need the arrays to show up
inside the (buttons) in the menu.

Anyone knows what I'm trying to say here?


Thanks
Andy


___
Flashcoders@chattyfig.figleaf.com
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