Hi Prakaz, I had not come across this problem before, but I can reproduce it. Don't have any idea why.
Rui --- In [email protected], Prakaz <[EMAIL PROTECTED]> wrote: > > Hi Everybody, > > I just came across this strange problem where errors in Flex code are not > shown as errors! > > Let me explain: > > 1. *Create a simple class [dummyClass.as]* > package com.some.package.path > { > public class dummyClass > { > private var str:String; > public function dummyClass():void{ // Constructor > str="test string"; > trace(str); // trace the text > } > } > } > *This works fine, lets go to the next step* > > 2. *Add some errors to the class* > package com.some.package.path > { > public class dummyClass > { > private var str:String; > public function dummyClass():void{ // Constructor > error_variable1="test string"; // Access of undefined > property error_variable1 > error_variable2="test string"; // Access of undefined > property error_variable2 > error_variable3="test string"; // 1 more error > str="test string"; > trace(str); // trace the text > } > } > } > *Flex Builder shows a red cross sign x preceding the > three indicating that there is something wrong there > > * > 3. *Now add a variable declaration ouside the scope of the class > *package com.some.package.path > { > * public var foo:Boolean; // Some declaration added outside the scope > of the class (by mistake) > * public class dummyClass > { > private var str:String; > public function dummyClass():void{ // Constructor > error_variable1="test string"; // This line is no more displayed as > an error by Flex Builder > error_variable2="test string"; // Neither is this one > error_variable3="test string"; // Nor this > str="test string"; > trace(str); // trace the text > } > } > } > > Now, here is where the problem starts > Those three lines of code are no more shown as errors. The red cross just > disappears as soon as you add the variable declaration outside the scope of > the class dummyClass. > > I happened to add that variable by mistake and everytime I ran the > application it would say that there are error(s). I ran through every class > and there was no indication(the red cross) whatsoever that there was a > problem anywhere. > > After losing some hair i managed to find that variable declaration. And as > soon as i commented that line, all red crosses re-appeared again! walla!! > > I dont know if its only me or if someone else has has come across this > issue. Could you guys let me know if the same thing happens at your end? > > > > Thanks > > P > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

