2013-07-21 46 views
0

我創建了包含代碼的下面一行簡單的Flex應用程序的VerifyError:錯誤#1014:類spark.components :: HGroup找不到

 


    <?xml version="1.0" encoding="utf-8"?> 
    <s:HGroup xmlns:fx="http://ns.adobe.com/mxml/2009" 
    xmlns:s="library://ns.adobe.com/flex/spark" 
    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> 
    <fx:Declarations> 
    <!-- Place non-visual elements (e.g., services, value objects) here --> 
    </fx:Declarations> 
    </s:HGroup> 

 

當我運行在柔性這個應用程序我得到了以下在瀏覽器上

 

    VerifyError: Error #1014: Class spark.components::HGroup could not be found. 

錯誤還有就是我的Flash Builder的控制檯上的警告跟隨

`This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.`

之後,我設置好的-static-鏈路運行時共享的庫=在下面

`Unable to locate specified base class 'spark.components.HGroup' for component class 'com.region.IRegion'.`

我的Flex SDK版本,上述警告成爲錯誤後額外的編譯器參數真選項撓曲4.6。 0 我也有在S中的情況下,同樣的問題:按鈕 你可以請建議對這個問題的解決方案?

回答

0

Flex應用程序不能有根作爲HGroup。它必須

Flex的web應用程序

<?xml version="1.0" encoding="utf-8"?> 
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
      xmlns:s="library://ns.adobe.com/flex/spark" 
      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> 
<fx:Declarations> 
    <!-- Place non-visual elements (e.g., services, value objects) here --> 
</fx:Declarations> 
</s:Application> 

而對於AIR應用程序:

<?xml version="1.0" encoding="utf-8"?> 
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
         xmlns:s="library://ns.adobe.com/flex/spark" 
         xmlns:mx="library://ns.adobe.com/flex/mx"> 
    <fx:Declarations> 
     <!-- Place non-visual elements (e.g., services, value objects) here --> 
    </fx:Declarations> 
</s:WindowedApplication> 
相關問題