Could not resolve <ResizablePanel> to a component implementation.用as做了一个resizablepanel的类是从panel扩展来的
package{
import mx.containers.Panel;
public dynamic class ResizeablePanel extends Panel
{
}
}
在mxml application中输入代码<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

<mx:Component className="ResizablePanel">
<mx:Panel>
<mx:Script>
[Bindable]
public var minimized:Boolean = false;
</mx:Script>
</mx:Panel>
</mx:Component>
<ResizablePanel title="The Panel" id="thePanel" minimized="false" height="{thePanel.minimized?thePanel.minHeight:thePanel.maxHeight}" width="99%"
minHeight="20" maxHeight="100" headerHeight="20"/>
<mx:HBox width="99%" horizontalAlign="right" paddingRight="2">
<mx:Label text="{thePanel.minimized?+’:’-’}" fontSize="16" width="20"
height="17" fontWeight="bold" id="minimizeActions" click="{thePanel.minimized=!thePanel.minimized}" />
</mx:HBox></mx:Application>
第一行是包的错误
还有一个是MXML class类没有报错
不太了解这三个文件应该放在那三个文件类型里