3

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

1120: Access of undefined property FlexGlobals.

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

This is weird, because I think Flex Globals are part of the Flex 3.5 Framework. How do I solve this?

Community
  • 1
  • 1
Vinzcent
  • 1,438
  • 6
  • 33
  • 59

3 Answers3

4

You should place import directive the following way:

import mx.core.FlexGlobals;

More information is over here.

Constantiner
  • 14,231
  • 4
  • 27
  • 34
2

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

Should read Migrating From Flex 3 to Flash Builder 4

Hopes that helps

Imran
  • 2,906
  • 1
  • 19
  • 20
1

FlexGlobals is part of 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.
user700284
  • 13,540
  • 8
  • 40
  • 74