If the same function is defined within conditional code, the whole program gets marked with red underlines because the syntax checker thinks that two functions have been declared with the same name.
package
{
public class TestClass
{
CONFIG::desktop {
public function Test() : void
{
trace( "I am desktop" );
}
} // end CONFIG::desktop
CONFIG::mobile {
public function Test() : void
{
trace( "I am mobile" );
}
} // end CONFIG::desktop
}
The asconfig.as file has only one of the conditions marked as true.
If the same function is defined within conditional code, the whole program gets marked with red underlines because the syntax checker thinks that two functions have been declared with the same name.
The asconfig.as file has only one of the conditions marked as true.
The compiler itself respects the condition and compiles the code.