New to Flex/Intellij

    Hi All,

I am fairly new to Flex and Intellij. The problem I am having is that I am currently trying to bring open/run a project which is using mx:VBox. I am using the 4.5.1 Flex SDK. When I try and compile I get the warning below:

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.

When I attempt to run the application I receive the following runtime error:

VerifyError: Error #1014: Class mx.containers::VBox could not be found.

After some investigation I feel as if I'm using the wrong SDK or need to order my RSLs. Just looking from some confirmation and guidance from more experienced Flex/Intellij developers!

I appreciate any help in advance!

Thanks,

Tony

1 comment
Comment actions Permalink

Hi,
if you are using only Flex 3 components then probably you should use Flex SDK 3.x (3.6 is the latest). But you can get everything working with Flex SDK 4.x as well. The warning happens because your main class is not inherited from standard spark.components.Application (i.e. root tag of main mxml is not s:Application). So RSLs fail to load and you get 'class not found' error. The easiest way to fix it without touching the code is to follow warning message and to add -static-rsls=true as Additional compiler options at Project Structure | Modules | your module | Flex Compiler Settings tab.

0

Please sign in to leave a comment.