Thanks for the info. I didn't know FF will automatically cache after a
period of time.
I use to use the
If (x) {
}
"pretty print" from my days as a PL/1 programmer. Lately, I've change
it to
If (x)
{
Do stuff
}
format. I went the first way for about 20 years and the current way for
about 15 years so I'll probably change it again in another 5 years. I
know the problem, I just can't make up my mind. <g>
But I will check that caching before I work on it again. I'm trying to
convince the user to let me build it as a smart phone (AIR) app and more
immediately I want to eliminate the goofy dots from an unordered list,
but that is in a different thread.
From: [email protected] [mailto:[email protected]] On
Behalf Of dorkie dork from dorktown
Sent: Thursday, March 29, 2012 10:05 AM
To: [email protected]
Subject: Re: [flexcoders] Debug Woes - Redux
It sounds like the SWF is cached. You'll need to find out if it is.
I suggest you add a build number to your project that you can check if
the swf is cached. There are ANT scripts online that increment a build
number automatically before each build. If you can't find it online I
can post an example when I get a chance.
If it's a cached SWF then there are a few things you can do for your
future development. BTW You don't need restart your browser or Flash
Builder. That wouldn't help anyway.
Use Firefox (not your normal browser) as your browser in Flash Builder
for this test and debug the project. Check if the SWF is cached (using
the build number or changing a background color or something). If it is
then go to Tools > Clear Recent History and make sure the cache option
is checked and time range is set to everything. Remember, Firefox will
start caching the swf after an hour automatically and if that happens
you need to clear the cache again. If the browser's not caching it but
it's still cached then it sounds like it's something up the line IE your
server etc.
BTW Personally, I don't like when if statements don't use brackets. For
kicks add brackets to your statement:
if (something < 0) {
something = 0; // put the break point here
}
If you see that you are setting the value but it doesn't stick then it
may be a rare case that has to do with double bindings and temp
variables. It's something along the lines of you assign a bindable
variable to a temporary variable and then when you try to assign a value
to that temporary variable it isn't assigned the value (or something
like that). The way to get passed this is to set the actual variable not
the temp variable. In my case I had to do something like this:
this.something = 0;
or
document['something'] = 0;
instead of
something = 0;
On Thu, Mar 29, 2012 at 5:51 AM, Paul Andrews <[email protected]> wrote:
On 28/03/2012 19:20, Davidson, Jerry wrote:
I"ve got old eyes (along with the rest of me). How are they different?
My bad - sort of.
if (adjInc < 0) // for
negatives
adjInc = 0;
I've pasted the above in from your earlier post and the adjInc text is
identical.
When I look at the original post in my email client the two variables
look different - the I looks like l.
Looking back and trying to edit the post I see that the " if (adjInc" is
in a different font to "adjInc = 0;" (just as they look now as I type
this line!), so I thought the names were different. Bizarre.
So, you're right they are the same but they look different in my mail
reader.
Paul
From: [email protected]
[mailto:[email protected]] On Behalf Of Paul Andrews
Sent: Wednesday, March 28, 2012 11:36 AM
To: [email protected]
Cc: John McCormack
Subject: Re: [flexcoders] Debug Woes - Redux
adjInc and adjInc
are different variables.
On 28/03/2012 17:03, John McCormack wrote:
Just wondering...
If you copy the variable's value to the variable 'temp'
and test that, what do you see?
John
On 27/03/2012 21:34, Davidson, Jerry wrote:
It's happening again. This never happened when I was
using Flex 3.5.
Make a change in the code. Do a Project | Clean. Make
sure the debugging session is over. Do a File |Refresh.
Start a debugging session and watch it go past a line:
if (adjInc < 0)
// for negatives
adjInc = 0;
Watch both lines (value at his point in this test is
-43) execute. After the assignment watch the value not change to zero,
but stay at -43.
Repeat above steps 2-3 times with no difference. Shut
down Flash Builder and start it again and repeat. No change.
I've only got a little hair left and don't think I can
pull any more out.
1) How can I force Flex to recognize code?
2) How can I force Flex (Flash Builder 4) to
execute - as in making an assignment - the code?
Jerry Davidson