Search code examples
actionscript-3apache-flexflash-builder

Can't import mx.core.FlexGlobals with Flex SDK 4.6


I'm trying to access mx.core.FlexGlobals, but I keep getting the error that it can't be imported. I'm using the Flex 4.6.0 SDK and it should be part of it.

import mx.core.FlexGlobals;

Gives the error: The import FlexGlobals could not be found.

Using my IDE it also does not show up as an option after mx.core. CODE COMPLETION PICTURE

I can't seem to get it done either in Flash Builder 4.6 or Flash Builder 4.7. Am I overlooking something?


Solution

  • Your project is probably a pure actionscript project. enter image description here

    It needs to be converted to a Flex Project to use FlexGlobals.

    My guess is that you do not want to do that based on the fact that you are using Starling.