Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.core 
ISWFLoader 
Packagemx.core
Interfacepublic interface ISWFLoader extends ISWFBridgeProvider
Implementors SWFLoader

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The ISWFLoader interface defines an API with special properties and method required when loading compatible applications and untrusted applications.



Public Properties
 PropertyDefined By
 InheritedchildAllowsParent : Boolean
[read-only] Tests if the child allows its parent to access its display objects or listen to messages that originate in the child.
ISWFBridgeProvider
  loadForCompatibility : Boolean
A flag that indicates whether the content is loaded so that it can interoperate with applications that were built with a different verion of Flex.
ISWFLoader
 InheritedparentAllowsChild : Boolean
[read-only] Tests if the parent allows its child to access its display objects or listen to messages that originate in the parent.
ISWFBridgeProvider
 InheritedswfBridge : IEventDispatcher
[read-only] A bridge to the application that is associated with the implementor of this interface.
ISWFBridgeProvider
Public Methods
 MethodDefined By
  
Get the bounds of the loaded application that are visible to the user on the screen.
ISWFLoader
Property Detail

loadForCompatibility

property
loadForCompatibility:Boolean

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

A flag that indicates whether the content is loaded so that it can interoperate with applications that were built with a different verion of Flex. Compatibility with other Flex Applications is accomplished by loading the application into a sibling (or peer) ApplicationDomain. This flag is ignored if the sub application is loaded into a different SecurityDomain than the main application. If true, the content loads into a sibling ApplicationDomain. If false, the content loaded into a child ApplicationDomain.

The default value is false.



Implementation
    public function get loadForCompatibility():Boolean
    public function set loadForCompatibility(value:Boolean):void
Method Detail

getVisibleApplicationRect

()method
public function getVisibleApplicationRect(allApplications:Boolean = false):Rectangle

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Get the bounds of the loaded application that are visible to the user on the screen.

Parameters

allApplications:Boolean (default = false) — Determine if the visible rectangle is calculated based only on the display objects in this application or all parent applications as well. Including more parent applications might reduce the visible area returned. If true, then all applications are used to find the visible area, otherwise only the display objects in this application are used.

Returns
Rectangle — A Rectangle that includes the visible portion of this object. The rectangle uses global coordinates.