Re: [flexcoders] Debug driving me crazy

2012-03-27 Thread John McCormack
I had something similar once, due to the fact that I thought I was 
including a certain AS3 file but was , in fact, using SWC code instead.

So perhaps your code isn't coming from the place you think it is.
John

On 27/03/2012 15:26, Davidson, Jerry wrote:



In debug mode of Flex (4.5) I have a variable that shows up in the 
variable view, but doesn't exist in the function I'm stepping 
through.  Further, one that does exist doesn't show up.


After the assignment failed (no errors):

*var*exemptFlg:Boolean = *false*;

*if*(inData.inpExemptFlg)

exemptFlg = inData.inpExemptFlg;

control jumps to the end of the function bypassing all the rest of the 
code.  Originally, this variable was exempt and that shows up in the 
Variables view despite it being changed to exemptFlg.  After that 
change, I cleaned the project, File | Refresh the project and closed 
Flash then reopened it.  The phantom variable still appears and the 
current one doesn't.


Help.

Jerry Davidson








RE: [flexcoders] Debug driving me crazy

2012-03-27 Thread Davidson, Jerry
After fighting this for several hours, it suddenly cleared up and the
non-existent variable didn't show up and the real one did.

 

But then the next feature struck.

This assignment seems to work...

  outData.resPotentialTopMsg =
langE.resultPassBenefitLabel;

 

looking in debug mode outData does have the proper value.  It points
to:

private var outData:ResultData = ResultData.getInstance();

 

in the component I am binding controls to 

public var getData:ResultData = ResultData.getInstance();

DHSclasses:AutoResizableTextArea 

  id=resultPotentialTopLabel 

  text={getData.resPotentialTopMsg}

  tabIndex=20

  styleName=labelStyle

  autoResize=true 

  wordWrap=true 

  width=50%

  editable=false

  textAlign=right 

  paddingRight=0 

  borderVisible=false 

  paddingTop=2/

 

The first time through this seems to work.  After that nothing appears
on the form.

 

1)  Can I change the textAlign from the script (external to this
component) and how do I do it?

2)  Can I step in debug in the form?

 

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Davidson, Jerry
Sent: Tuesday, March 27, 2012 9:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Debug driving me crazy

 

  

In debug mode of Flex (4.5) I have a variable that shows up in the
variable view, but doesn't exist in the function I'm stepping through.
Further, one that does exist doesn't show up.

 

After the assignment failed (no errors): 

  var exemptFlg:Boolean = false;

  if (inData.inpExemptFlg)

exemptFlg = inData.inpExemptFlg;

control jumps to the end of the function bypassing all the rest of the
code.  Originally, this variable was exempt and that shows up in the
Variables view despite it being changed to exemptFlg.  After that
change, I cleaned the project, File | Refresh the project and closed
Flash then reopened it.  The phantom variable still appears and the
current one doesn't.

 

Help.

 

 

Jerry Davidson





RE: [flexcoders] Debug driving me crazy

2012-03-27 Thread Davidson, Jerry
I think this problem can be filed under dumb programmer.  I found
repeating function attached to an updateComplete that would execute
every time the component was opened which is what I needed.   In there
was an early attempt to hide one of the two text areas at the top of the
code.  I removed it and it seems to be working.

 

Sorry to waste anyone's time.

 

Jerry

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Davidson, Jerry
Sent: Tuesday, March 27, 2012 11:03 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Debug driving me crazy

 

  

After fighting this for several hours, it suddenly cleared up and the
non-existent variable didn't show up and the real one did.

 

But then the next feature struck.

This assignment seems to work...

  outData.resPotentialTopMsg =
langE.resultPassBenefitLabel;

 

looking in debug mode outData does have the proper value.  It points
to:

private var outData:ResultData = ResultData.getInstance();

 

in the component I am binding controls to 

public var getData:ResultData = ResultData.getInstance();

DHSclasses:AutoResizableTextArea 

  id=resultPotentialTopLabel 

  text={getData.resPotentialTopMsg}

  tabIndex=20

  styleName=labelStyle

  autoResize=true 

  wordWrap=true 

  width=50%

  editable=false

  textAlign=right 

  paddingRight=0 

  borderVisible=false 

  paddingTop=2/

 

The first time through this seems to work.  After that nothing appears
on the form.

 

1)  Can I change the textAlign from the script (external to this
component) and how do I do it?

2)  Can I step in debug in the form?

 

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Davidson, Jerry
Sent: Tuesday, March 27, 2012 9:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Debug driving me crazy

 

  

In debug mode of Flex (4.5) I have a variable that shows up in the
variable view, but doesn't exist in the function I'm stepping through.
Further, one that does exist doesn't show up.

 

After the assignment failed (no errors): 

  var exemptFlg:Boolean = false;

  if (inData.inpExemptFlg)

exemptFlg = inData.inpExemptFlg;

control jumps to the end of the function bypassing all the rest of the
code.  Originally, this variable was exempt and that shows up in the
Variables view despite it being changed to exemptFlg.  After that
change, I cleaned the project, File | Refresh the project and closed
Flash then reopened it.  The phantom variable still appears and the
current one doesn't.

 

Help.

 

 

Jerry Davidson