//////////////////////////////////////////////////////////////////////////////// // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2.0 // (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // //////////////////////////////////////////////////////////////////////////////// package mx.core { import flash.geom.Rectangle; import mx.core.ISWFBridgeProvider; /** * The ISWFLoader interface defines an API with special properties * and method required when loading compatible applications and untrusted applications. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Flex 3 */ public interface ISWFLoader extends ISWFBridgeProvider { //-------------------------------------------------------------------------- // // Properties // //-------------------------------------------------------------------------- //---------------------------------- // loadForCompatibility //---------------------------------- /** * 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. * * @default false * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Flex 3 */ function get loadForCompatibility():Boolean; /** * @private */ function set loadForCompatibility(value:Boolean):void; /** * Get the bounds of the loaded application that are visible to the user * on the screen. * * @param allApplications 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. * * @return A Rectangle that includes the visible portion of this * object. The rectangle uses global coordinates. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Flex 3 */ function getVisibleApplicationRect(allApplications:Boolean=false):Rectangle; } }