” declaration must be contained within the tag, since it is not assignable to the default property’s element type ‘mx.core.IVisualElement’.
” declaration must be contained within the <Declarations> tag, since it is not assignable to the default property’s element type ‘mx.core.IVisualElement’.
This is interesting! I pasted code in an ichat window then copied it out and pasted it back into the MXML application file. After that I started getting the error mentioned here. It turns out there are hidden invisible characters that are incompatible with the compiler.
So to fix this problem I had to erase the white space near where the error was. This fixed the problem. NOTE: It may be the error is on the line above or line below where it is being reported.
Please post your comments to help future visitors.
No comments yet. Be the first.
Leave a reply
Wrap MXML and ActionScript in [xml] [/xml] and [as] [/as] tags respectively