Reputation: 9552
I'm having a very strange bug in Flex Builder where none of the changes I make are appearing when I debug/run my program. It only happens with a particular AS3 project, on others, it works fine.
For example, I have a line,var x:int = this.prevX + this.x;
, whose value is 400 if I don't make any changes. I change the line to var x:int = 0;
and set a breakpoint on the line. When I debug the program, it breakpoints just where it should, but the value is set to 400, even when the line is x = 0
! What gives!
I've tried cleaning the project and deleting the project and re-importing it. No matter what I do, it won't show any changes I make, even if I just toggle a boolean. It still won't let me compile with errors, but once its done compiling, it completely ignore whatever changes I made. It's like it has the bytecode for the swf cached somewhere and its just ignoring doing the actual build step.
Any ideas?
Upvotes: 0
Views: 1992
Reputation: 11
Right click the project in the Flex Navigator and then click Refresh. Refreshing the project worked for me.
Upvotes: 1
Reputation: 8117
I get this too. This is the first time I've found this referenced on the net. It's a BIG problem. I get it periodically. For me, it's not the html-template folder. I've got a couple of ways around the problem at the moment
This works - sometimes immediately sometimes after a few repetitions.
One other technique I tried today was to change the compiler options to -dump-config=somefile. This worked immediately, however, I'll need to wait next time to try again. It might be a situation of changing the -dump-config filename output when this happens.
Just tried another possible fix (which seems to be working really well) - Change the browser that Flex builder is using to a different one. This immediately fixed the problem. I'll post back here later if I find that this is a reliable fix. - Casp
Upvotes: 0
Reputation: 985
I was having trouble with this as well, and deleting the html-template folder didn't fix the problem for me. I then renamed the project and it worked after that.
Upvotes: 0
Reputation: 4019
Check if you have a copy of the swf in the html-template folder. The newly compiled swf will be overwritten by that old one after each build. Happened to me once.
Upvotes: 4