Flex 错误集合 5-28

又很久没有碰flex了,今天打开flexbuilder 新建一个新的 flex项目,但是在打开Design画面的时候,出现了

"An unknown item is declared as the root of your MXML document. Switch to source mode to correct it"

错误,在网上找到原因,原来是flex的sdk 没有添加,只要添加的本机上的flex sdk就好了。

 

 

出现错误 The prefix "mx" for element "mx:Script" is not bound.

 

从 http://blog.flashgen.com/2006/10/30/flex-2-mxml-component-development/  看到下面一段话

 

What if we need to add functionality to our component? Well we can do that too. However you must remember not to put your <mx:Script></Script> tag or any other come to that, outside of your base component tag otherwise it will error along these lines: “The prefix “mx” for element “mx:Script” is not bound”

 

大致意思是说,要把 <mx:Script> 添加组件当中在反观一下自己的代码发现确实没有包含组件中

 

你可能感兴趣的:(Blog,Flex)