Question: I'm editing an XML file in Flash Builder 4.6, the XML contains config data and is embedded into my application.

Flash Builder shows a long list of errors, the errors are linked to the project not the file.

The errors are just things like "*1086: Syntax error: expecting semicolon*" and "*1093: Syntax error*" which just shows that the file is not valid Actionscript.

They all look like this, with the error on line 1:

![Error Msg](https://i.stack.imgur.com/2RZot.png)

Is there a way that I can stop the parsing of the file, it's just an asset and not supposed to be parsed.

Answer: 
You should add [virtual](https://stackoverflow.com/questions/1306778/c-virtual-pure-virtual-explained/1306837#1306837) function `reproduce` to `Creature` class and implement it in `Bunny` or any other creature you may later add to the game. So that any creature will reproduce itself in it's own way. You don't even need to check creature type in this case. Since if you have some non reproducible creatures, you may just implement `reproduce` as empty method that will do nothing.
Ideally, your engine shouldn't need to care at all what kind of creature it's working with.

If you want the bunny to reproduce on each `ai()` step, why not do it in the bunny's `ai()`?  

After all, shouldn't it be the bunny's responsibility to decide when to reproduce, rather than some almighty external Engine? 

```
void Creature::Bunny::ai()
{
    if (niceMateNearby())
        reproduce();
    else
        eatCarrotsAndJumpAround();
}

```