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



Reply via email to