Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
ISWFLoader

Package | mx.core
Interface | public 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
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | childAllowsParent : 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
|  | parentAllowsChild : 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
|  | swfBridge : IEventDispatcher [read-only] A bridge to the application that is associated with the implementor of this interface. | ISWFBridgeProvider

Public Methods

| Method | Defined By
--- | --- | ---
|  | getVisibleApplicationRect(allApplications:Boolean = false):Rectangle 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.

Wed Nov 15 2017, 09:50 AM +01:00