No, that is setting "_client".  You need to be setting "client".

 

Or change to:

client="{_client}"

 

You just need to debug this.  You reference passing methodology is
correct.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Dan Vega
Sent: Sunday, July 13, 2008 5:44 PM
To: [email protected]
Subject: Re: [flexcoders] Application Design

 

ON the first screen when a user picks a client from the data grid

            private function onClientSelect(event:ListEvent):void {
                _client = event.itemRenderer.data;
                btnNext.enabled = true;
                dispatchEvent(new
ClientSelectedEvent("clientSelected",_client));
            }



Thank You
Dan Vega
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
http://www.danvega.org <http://www.danvega.org>  

On Sun, Jul 13, 2008 at 5:51 PM, Tracy Spratt <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

How/when are you instantiating the "client" object?

 

Tracy

 

________________________________

From: [email protected] <mailto:[email protected]>
[mailto:[email protected] <mailto:[email protected]> ]
On Behalf Of Dan Vega
Sent: Sunday, July 13, 2008 5:30 PM


To: [email protected] <mailto:[email protected]> 
Subject: Re: [flexcoders] Application Design

 

at views::Review/init()[H:\Program
Files\Apache\htdocs\Uploader\src\views\Review.mxml:27]

which is this line
lblClientPhone.text = client.phone;

Thank You
Dan Vega
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
http://www.danvega.org <http://www.danvega.org>  

On Sun, Jul 13, 2008 at 5:38 PM, Tracy Spratt <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

You get that error on what line?

Tracy

 

________________________________

From: [email protected] <mailto:[email protected]>
[mailto:[email protected] <mailto:[email protected]> ]
On Behalf Of Dan Vega
Sent: Sunday, July 13, 2008 5:23 PM
To: [email protected] <mailto:[email protected]> 
Subject: Re: [flexcoders] Application Design

 

I am just passing vs so that my next and previous buttons can increment
or decrement the selectedIndex of the view state. Basically when I get
to my final review screen and pass the data / files / client I try and
output them and I get this error 

TypeError: Error #1009: Cannot access a property or method of a null
object reference.

I also put a breakpoint in the init method of the component and all of
the data is null at that point.

Here is a quick piece of the component.

    <mx:Script>
        <![CDATA[
            import mx.containers.ViewStack;
            import mx.collections.ArrayCollection;
            
            private var _totalBytes:int = 0;
            
            public var vs:ViewStack;
            public var client:Object;
            public var options:Object;
    
            [Bindable]
            public var files:ArrayCollection;
            
            private function init():void {    
                //client data
                lblClientName.text = client.client_name;
                lblClientCity.text = client.city;    
                lblClientState.text = client.state;    
                lblClientZip.text = client.zip;    
                lblClientPhone.text = client.phone;


Thank You
Dan Vega
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
http://www.danvega.org <http://www.danvega.org>  

 

 

 

Reply via email to