Adobe FLEX 2-PROGRAMMING ACTIONSCRIPT 3.0 Manual page 437

Programming actionscript 3.0
Table of Contents

Advertisement

}
}
}
Other things to keep in mind when you work with application domains include the
following:
All code in a SWF file is defined to exist in an application domain. The current domain is
where your main application runs. The system domain contains all application domains,
including the current domain, which means that it contains all Flash Player classes.
All application domains, except the system domain, have an associated parent domain.
The parent domain for your main application's application domain is the system domain.
Loaded classes are defined only when their parent doesn't already define them. You cannot
override a loaded class definition with a newer definition.
The following diagram shows an application that loads content from various SWF files within
a single domain, domain1.com. Depending on the content you load, different application
domains can be used. The text that follows describes the logic used to set the appropriate
application domain for each SWF file in the application.
Stage
Application
Loader
Security domain: domain1.com
application1.swf
Loader
Loader
Loader
Application domain 2
mx.core.Application
application2.swf
Module
Application domain 1
mx.core.Application
module1.swf
Module
Application domain 3
module3.swf
Module
ApplicationDomain class
Usage B
Usage C
Usage A
437

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex

Table of Contents