Access undefined mx.core: FlexGlobals

I would like to use FlexGlobals, but always get this error.

1120: Access undefined properties of the FlexGlobals property.

1172: Definition of mx.core: FlexGlobals could not be found.

This is strange because I think Flex Globals are part of the Flex 3.5 Framework. How to solve this?

+3
source share
3 answers

FlexGlobals released with Flash Builder SDK4, you can use mx.core.Application in Flex 3

Must Read Migrating from Flex 3 to Flash Builder 4

Hopes that help

+2
source

You should put the directive importas follows:

import mx.core.FlexGlobals;

.

+4

FlexGlobals Flex 4 SDK

Package mx.core
Class   public class FlexGlobals
Inheritance FlexGlobals Inheritance Object

Language Version:   ActionScript 3.0
Product Version:    Flex 4
Runtime Versions:   Flash Player 10, AIR 1.5

A class that contains variables that are global to all applications within the same ApplicationDomain.
+1

All Articles