What is the "Function Anonymous" ?
I´m getting a lot of errors when I use removeChild from AS3. And many of them display this "Function anonymous" like this:
Can´t I remove a child?
TypeError: Error #1034: Falha de coerção de tipo: não é possível converter Function em flash.display.DisplayObject.
at MethodInfo-490()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at bridge::Connection/handleMessage()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at bridge.utils::BinarySerializer/onMessage()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at MessageBuilder/AddValue()
at bridge.utils::BinarySerializer/onValue()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at TokenBuilder/AddByte()
at bridge.utils::BinarySerializer/AddByte()
at Function/<anonymous>()
I´m trying to go from one class to another (the menu screen to the game) and I´m getting the error above.