Issue:
When you edit a actionscript, you may got following error.
Error:
<span style="color:#000099;"></span><pre class="java" name="code">declaration must be contained within the <Declarations> tag, since it is not assignable to the default property’s element type ‘mx.core.IVisualElement’.
Solution:
Please check if there is a typing mistaken in your code. Especially for a extra or unecessary letter.