Adobe® Flash® Platform için ActionScript® 3.0 Başvurusu
Ana Sayfa  |  Paket ve Sınıf Listesini Gizle |  Paketler  |  Sınıflar  |  Yenilikler  |  Dizin  |  Ekler  |  Niçin İngilizce?
Filtreler: Sunucudan Veri Alınıyor...
Sunucudan Veri Alınıyor...
mx.core 

IFlexModuleFactory  - AS3 Flex

Paketmx.core
Arabirimpublic interface IFlexModuleFactory
Uygulayıcılar SystemManager

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

The IFlexModuleFactory interface represents the contract expected for bootstrapping Flex applications and dynamically loaded modules.

Calling the info() method is legal immediately after the complete event is dispatched.

A well-behaved module dispatches a ready event when it is safe to call the create() method.



Genel Özellikler
 ÖzellikTanımlayan:
  allowDomainsInNewRSLs : Boolean
Controls whether the domains allowed by calls to allowDomain() are also allowed by RSLs loaded after the call.
IFlexModuleFactory
  allowInsecureDomainsInNewRSLs : Boolean
Controls whether the domains allowed by calls to allowInsecureDomain() are also allowed by RSLs loaded after the call.
IFlexModuleFactory
  preloadedRSLs : Dictionary
[salt okunur] The RSLs loaded by this SystemManager or FlexModuleFactory before the application starts.
IFlexModuleFactory
Genel Yöntemler
 YöntemTanımlayan:
  
Adds an RSL to the preloadedRSLs list.
IFlexModuleFactory
  
Calls the Security.allowDomain() method for the SWF associated with this IFlexModuleFactory plus all the SWFs associated with RSLs preloaded by this IFlexModuleFactory.
IFlexModuleFactory
  
Calls the Security.allowInsecureDomain() method for the SWF associated with this IFlexModuleFactory plus all the SWFs associated with RSLs preloaded by this IFlexModuleFactory.
IFlexModuleFactory
  
callInContext(fn:Function, thisArg:Object, argArray:Array, returns:Boolean = true):*
A way to call a method in this IFlexModuleFactory's context
IFlexModuleFactory
  
create(... parameters):Object
A factory method that requests an instance of a definition known to the module.
IFlexModuleFactory
  
Get the implementation for an interface.
IFlexModuleFactory
  
Returns a block of key/value pairs that hold static data known to the module.
IFlexModuleFactory
  
Register an implementation for an interface.
IFlexModuleFactory
Özellik Ayrıntısı

allowDomainsInNewRSLs

özellik
allowDomainsInNewRSLs:Boolean

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4.5
Çalışma Zamanı Sürümleri: Flash Player 10.2, AIR 2.6

Controls whether the domains allowed by calls to allowDomain() are also allowed by RSLs loaded after the call. Additional RSLs may be loaded into this module factory by sub-applications or modules.

Varsayılan değer şudur true.



Uygulama
    public function get allowDomainsInNewRSLs():Boolean
    public function set allowDomainsInNewRSLs(value:Boolean):void

allowInsecureDomainsInNewRSLs

özellik 
allowInsecureDomainsInNewRSLs:Boolean

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4.5
Çalışma Zamanı Sürümleri: Flash Player 10.2, AIR 2.6

Controls whether the domains allowed by calls to allowInsecureDomain() are also allowed by RSLs loaded after the call. Additional RSLs may be added to this module factory by sub-applications or modules.

Varsayılan değer şudur true.



Uygulama
    public function get allowInsecureDomainsInNewRSLs():Boolean
    public function set allowInsecureDomainsInNewRSLs(value:Boolean):void

preloadedRSLs

özellik 
preloadedRSLs:Dictionary  [salt okunur]

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

The RSLs loaded by this SystemManager or FlexModuleFactory before the application starts. This dictionary may also include RSLs loaded into this module factory's application domain by other modules or sub-applications. When a new dictionary entry is added by a child module factory an RSLEvent.RSL_ADD_PRELOADED event is dispatched by module factory owning the dictionary. Information about preloadedRSLs is stored in a Dictionary. The key is the RSL's LoaderInfo. The value is the a Vector of RSLData where the first element is the primary RSL and the remaining elements are failover RSLs.



Uygulama
    public function get preloadedRSLs():Dictionary
Yöntem Ayrıntısı

addPreloadedRSL

()yöntem
public function addPreloadedRSL(loaderInfo:LoaderInfo, rsl:Vector.<RSLData>):void

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4.5
Çalışma Zamanı Sürümleri: Flash Player 10.2, AIR 2.6

Adds an RSL to the preloadedRSLs list. This method is called by child module factories when they add load an RSL into this module factory's application domain.

You do not call this method directly. This method is called by child module factories when they add load an RSL into this module factory's application domain.

Parametreler

loaderInfo:LoaderInfo — The loaderInfo of the loaded RSL.
 
rsl:Vector.<RSLData> — The RSL's configuration information. A Vector of RSLData. The first element in the array is the primary RSL. The remaining elements are failover RSLs.

allowDomain

()yöntem 
public function allowDomain(... domains):void

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4.5
Çalışma Zamanı Sürümleri: Flash Player 10.2, AIR 2.6

Calls the Security.allowDomain() method for the SWF associated with this IFlexModuleFactory plus all the SWFs associated with RSLs preloaded by this IFlexModuleFactory. RSLs loaded after this call will, by default, allow the same domains as have been allowed by previous calls to this method. This behavior is controlled by the allowDomainsInNewRSLs property.

Parametreler

... domains — One or more strings or URLRequest objects that name the domains from which you want to allow access. You can specify the special domain "*" to allow access from all domains.

İlgili API Öğeleri

allowInsecureDomain

()yöntem 
public function allowInsecureDomain(... domains):void

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4.5
Çalışma Zamanı Sürümleri: Flash Player 10.2, AIR 2.6

Calls the Security.allowInsecureDomain() method for the SWF associated with this IFlexModuleFactory plus all the SWFs associated with RSLs preloaded by this IFlexModuleFactory. RSLs loaded after this call will, by default, allow the same domains as have been allowed by previous calls to this method. This behavior is controlled by the allowInsecureDomainsInNewRSLs property.

Parametreler

... domains — One or more strings or URLRequest objects that name the domains from which you want to allow access. You can specify the special domain "*" to allow access from all domains.

İlgili API Öğeleri

callInContext

()yöntem 
public function callInContext(fn:Function, thisArg:Object, argArray:Array, returns:Boolean = true):*

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

A way to call a method in this IFlexModuleFactory's context

Parametreler

fn:Function — The function or method to call.
 
thisArg:Object — The this pointer for the function.
 
argArray:Array — The arguments for the function.
 
returns:Boolean (default = true) — If true, the function returns a value.

Döndürür
* — Whatever the function returns, if anything.

İlgili API Öğeleri

Function.apply

create

()yöntem 
public function create(... parameters):Object

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

A factory method that requests an instance of a definition known to the module.

You can provide an optional set of parameters to let building factories change what they create based on the input. Passing null indicates that the default definition is created, if possible.

Parametreler

... parameters — An optional list of arguments. You can pass any number of arguments, which are then stored in an Array called parameters.

Döndürür
Object — An instance of the module, or null.

getImplementation

()yöntem 
public function getImplementation(interfaceName:String):Object

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

Get the implementation for an interface. Similar to Singleton.getInstance() method, but per- IFlexModuleFactory.

Parametreler

interfaceName:String — The interface.

Döndürür
Object — The implementation for the interface.

info

()yöntem 
public function info():Object

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 3
Çalışma Zamanı Sürümleri: Flash Player 9, AIR 1.1

Returns a block of key/value pairs that hold static data known to the module. This method always succeeds, but can return an empty object.

Döndürür
Object — An object containing key/value pairs. Typically, this object contains information about the module or modules created by this factory; for example:
      return {"description": "This module returns 42."};
      
Other common values in the returned object include the following:
  • fonts: A list of embedded font faces.
  • rsls: A list of run-time shared libraries.
  • mixins: A list of classes initialized at startup.

registerImplementation

()yöntem 
public function registerImplementation(interfaceName:String, impl:Object):void

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

Register an implementation for an interface. Similar to the Singleton.registerClass() method, but per- IFlexModuleFactory, and takes an instance not a class.

Parametreler

interfaceName:String — The interface.
 
impl:Object — The implementation.





[ X ]Niçin İngilizce?
ActionScript 3.0 Başvurusu'ndaki içerik İngilizce görünür

ActionScript 3.0 Başvurusu'nun tüm bölümleri tüm dillere çevrilmemiştir. Bir dil öğesi çevrilmediğinde İngilizce görünür. Örneğin, ga.controls.HelpBox sınıfı hiçbir dile çevrilmez. Bu nedenle, başvurunun Türkçe versiyonunda ga.controls.HelpBox sınıfı İngilizce görünür.