-
[RESOLVED] Code with no errors, but does not work?
Hello,
A code in a button component, was working, no error(s) whatsoever, until yesterday. Any update on the code, adding new action code lines (tested the code, the result no error in the trace window) ; the strange thing is that the new code bahaves, in terms of its function, like as if no new action-code-lines were added?!
Anyone facing such an issue before?
-
Without looking at anything the only thing I can think of is the fact you're using a component. To get anything more you'll have to provide more details.
-
Hello,
Let's say;
inside the btn. component, is this following code (represents the original code):
var x:Number;
//x=1
var y:Number;
//y=3
var z:Number;
//z = 4
z = x + y;
_root.OutPutTxtField.text = z; // 4
Now, the code was working well, no problem at all! Until the last two days,
Any update on the original code seems invisible to the interpreter when the file was tested; as if the new update was not there, to illustarate that;
Let's say;
the z = x + y; was changed to z= x * y; saved and tested the file, no errors.
now, the result was supposed to be as z = 1*3 = 3
However. when file tested, the result was (4).
To further show how strange what is happening; some code lines was removed. saved & tested the file; the result as if the original code was not altered in any way; as if some of the code lines was not removed.
-
Used an older copy of troubled-file, saved it on another location on the hard-drive, it has worked (no any of the weired stuff described above in the question).
Probably, the file was corrupted while saving, or, saved on a bad sector hard drive.
Thanks for anyone interacted/tried to interact with this thread!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|