1046: Type was not found or was not a compile-time constant: ContentElement. TextLayoutFramework

Error Message

1046: Type was not found or was not a compile-time constant: ContentElement. TextLayoutFramework
[etc] ElementFormat. FontMetrics. TextElement. TextLine. Vector.

Cause
In this case the class was not found because I was specifying Flash Player 9 when the class was in Flash Player 10.

Solution
When I went into the Project Properties > Flex Compiler and changed the required version to 10.0.0 the errors went away.

Please note this is a case post. There are additional posts on this error.

Advertisements

4 thoughts on “1046: Type was not found or was not a compile-time constant: ContentElement. TextLayoutFramework

  1. this is usually an error related to a variable (e.g. file) not visible in the xml name space (xmlns). for instance, if you specify “jw:components.*” then you have to have a components folder one level beneath your compiled file in your source tree.
    create the folder if it´s not there, put the component there, that´s it.
    similar to (e.g.) java, where your referenced files have to be in the “package”-tree.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s