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


i created simple flex application contains following line of codes

       <?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>   

when run application in flex got following error on browser

          verifyerror: error #1014: class spark.components::hgroup not found.  

also there warning on flash builder console follows

`this compilation unit did not have factoryclass specified in frame metadata load configured runtime shared libraries. compile without runtime shared libraries either set -static-link-runtime-shared-libraries option true or remove -runtime-shared-libraries option.`

after setted -static-link-runtime-shared-libraries=true option in additional compiler arguments after above warning become error follows

`unable locate specified base class 'spark.components.hgroup' component class 'com.region.iregion'.`

my flex sdk version flex 4.6.0 have same problem in case of s:button can please suggest solution problem?

your flex application cannot have root hgroup. need

for flex web apps

<?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> 

and air apps:

<?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> 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -