Paket | com.adobe.icomm.assetplacement.model |
Sınıf | public class PackageDefinition |
Miras Alma | PackageDefinition Object |
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Placement Building Block 9.5 |
Çalışma Zamanı Sürümleri: | AIR 1.0, Flash Player 9, Flash Player 10 |
The package definition is divided into two broad sections: <controllers> and <assets>. The <controllers> section contains entries for each AssetPlacement component used in the statement: each PromoImage, PromoImageSlideShow, AttachmentLoader, etc. that is added to the statement will have a <controller> entry automatically added to the package definition file by the Interactive Document Plugin. The <controller> entries are meant to be used later in the statement development cycle, to help choose appropriate advertising content to place in each component.
The <assets> section is used at runtime. Each AssetPlacement component will attempt to load
assets at runtime. A component looks up the <resource> or <attachment> entry with the matching
controller
attribute to the components' id
attribute and if a match is found
attempts to load the source
specified.
It is possible to access the various assets of the package definition by calling the
appropriate methods; assets are divided into two types: attachments and resources. Attachments are
assets that are part of the PDF Navigator and must be accessed through Navigator APIs. Resources
are content that can be loaded directly such as images and SWFs. Generally, an asset is recovered
through its controller id. The controller id is the key that connects a Flex component (such
as a PromoImage) to a resource in the package definition. The component's id
property is the lookup key. Note that many assets may be returned for one ID lookup.
This class is a singleton. Calls to the constructor will result in an exception being thrown. In order to use this class, use the PackageDefinitionLoader class.
İlgili API Öğeleri
Özellik | Tanımlayan: | ||
---|---|---|---|
attachments : IList [salt okunur]
A list that contains all of <attachment> entries in the package definition,
wrapped in Attachment objects. | PackageDefinition | ||
constructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | Object | ||
controllers : IList [salt okunur]
A list that contains all of <controllers> entries in the package definition,
wrapped in Controller objects. | PackageDefinition | ||
packageDefinitionFile : String [statik] [salt okunur]
The file path of the package definition file that underlies this object. | PackageDefinition | ||
packageLoaded : Boolean [salt okunur]
Check to see if the package is loaded. | PackageDefinition | ||
resources : IList [salt okunur]
A list that contains all of the <resource> (non expired) entries in the package definition,
wrapped in Resource objects. | PackageDefinition |
Yöntem | Tanımlayan: | ||
---|---|---|---|
Creates a PackageDefinition object. | PackageDefinition | ||
Return a list that contains all of the expired <resource> entries in the package definition,
wrapped in Resource objects. | PackageDefinition | ||
A convenience method that searches through the attachments and returns a list
containing only the attachments that match the given id. | PackageDefinition | ||
A convenience method that searches through the contollers and returns the
controller with the matching id and XML namespace. | PackageDefinition | ||
A convenience method that searches through the resources and returns a list
containing only the resources that match the given id. | PackageDefinition | ||
The PackageDefinition version. | PackageDefinition | ||
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | ||
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | ||
Broadcast an IPackageObjectReadyEvent. | PackageDefinition | ||
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | ||
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | ||
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | ||
Belirtilen nesnenin dize olarak temsil edilen halini döndürür. | Object | ||
Belirtilen nesnenin temel değerini döndürür. | Object |
Sabit | Tanımlayan: | ||
---|---|---|---|
PACKAGE_VERSION_1_0 : Number = 1.0 [statik] The package version 1.0. | PackageDefinition | ||
PACKAGE_VERSION_2_0 : Number = 2.0 [statik] The package version 2.0. | PackageDefinition |
attachments | özellik |
attachments:IList
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Placement Building Block 9.5 |
Çalışma Zamanı Sürümleri: | AIR 1.0, Flash Player 9, Flash Player 10 |
A list that contains all of <attachment> entries in the package definition, wrapped in Attachment objects.
Uygulama
public function get attachments():IList
İlgili API Öğeleri
controllers | özellik |
controllers:IList
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Placement Building Block 9.5 |
Çalışma Zamanı Sürümleri: | AIR 1.0, Flash Player 9, Flash Player 10 |
A list that contains all of <controllers> entries in the package definition, wrapped in Controller objects.
Uygulama
public function get controllers():IList
İlgili API Öğeleri
packageDefinitionFile | özellik |
packageDefinitionFile:String
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Placement Building Block 9.5 |
Çalışma Zamanı Sürümleri: | AIR 1.0, Flash Player 9, Flash Player 10 |
The file path of the package definition file that underlies this object.
Uygulama
public static function get packageDefinitionFile():String
packageLoaded | özellik |
resources | özellik |
resources:IList
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Placement Building Block 9.5 |
Çalışma Zamanı Sürümleri: | AIR 1.0, Flash Player 9, Flash Player 10 |
A list that contains all of the <resource> (non expired) entries in the package definition, wrapped in Resource objects.
Uygulama
public function get resources():IList
İlgili API Öğeleri
PackageDefinition | () | Yapıcı |
public function PackageDefinition()
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Placement Building Block 9.5 |
Çalışma Zamanı Sürümleri: | AIR 1.0, Flash Player 9, Flash Player 10 |
Creates a PackageDefinition object. The PackageDefinition is meant to be a singleton object - there is only one package definition that wraps the XML package definition file. Callers should not invoke the constructor, which will throw an error. Rather, use the PackageDefinitionLoader class.
İlgili API Öğeleri
expiredResources | () | yöntem |
public function expiredResources():IList
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Placement Building Block 9.5 |
Çalışma Zamanı Sürümleri: | AIR 1.0, Flash Player 9, Flash Player 10 |
Return a list that contains all of the expired <resource> entries in the package definition, wrapped in Resource objects.
DöndürürIList — A list of all the expired <resource> entries in the package definition,
wrapped in Resource objects.
|
İlgili API Öğeleri
getAttachmentsByControllerId | () | yöntem |
public function getAttachmentsByControllerId(id:String):IList
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Placement Building Block 9.5 |
Çalışma Zamanı Sürümleri: | AIR 1.0, Flash Player 9, Flash Player 10 |
A convenience method that searches through the attachments
and returns a list
containing only the attachments that match the given id
.
The id
is usually the id
property of a component such
as a PromoImage. The key it is looking up corresponds to the controller
attribute on the <attachment>'s parent <attachments> node.
Parametreler
id:String — The id of a component, such as a PromoImage.
|
IList — A list of Attachment objects who's controller ID match the given id.
|
İlgili API Öğeleri
getControllerById | () | yöntem |
public function getControllerById(id:String, ns:String = null):Controller
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Placement Building Block 9.5 |
Çalışma Zamanı Sürümleri: | AIR 1.0, Flash Player 9, Flash Player 10 |
A convenience method that searches through the contollers
and returns the
controller with the matching id
and XML namespace
.
Parametreler
id:String — The id of a controller. This id should match an MXML id in the project as
well as a controller id in the <assets> section of the package definition.
| |
ns:String (default = null ) — The XML namespace of a controller. If null the first controller with the matching the id will be returned.
|
Controller — The Controller object that matches this id and XML namespace or null if there is no matching controller.
|
İlgili API Öğeleri
getResourcesByControllerId | () | yöntem |
public function getResourcesByControllerId(id:String, includeExpired:Boolean = false):IList
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Placement Building Block 9.5 |
Çalışma Zamanı Sürümleri: | AIR 1.0, Flash Player 9, Flash Player 10 |
A convenience method that searches through the resources
and returns a list
containing only the resources that match the given id
. The caller indicates
whether to include expired resources via the includeExpired parameter.
The id
is usually the id
property of a component such
as a PromoImage. The key it is looking up corresponds to the controller
attribute on the <resource>'s parent <resources> node.
Parametreler
id:String — The id of a component, such as a PromoImage.
| |
includeExpired:Boolean (default = false ) — Boolean whether to include expired resources in the returned list.
|
IList — A list of Resource objects who's controller ID match the given id.
|
İlgili API Öğeleri
getVersion | () | yöntem |
packageObjectReady | () | yöntem |
public function packageObjectReady(packageObject:IPackageObject):void
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Placement Building Block 9.5 |
Çalışma Zamanı Sürümleri: | AIR 1.0, Flash Player 9, Flash Player 10 |
Broadcast an IPackageObjectReadyEvent. When an IPackageObject is ready to be used, it asks the package definition to brodcast the PackageObjectReadyEvent. This allows the hosting application to be notified anytime a new statement object is created.
Parametreler
packageObject:IPackageObject — An IPackageObject that is loaded and ready to be used.
|
İlgili API Öğeleri
PACKAGE_VERSION_1_0 | Sabit |
public static const PACKAGE_VERSION_1_0:Number = 1.0
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Placement Building Block 10 |
Çalışma Zamanı Sürümleri: | AIR 1.0, Flash Player 9, Flash Player 10 |
The package version 1.0.
PACKAGE_VERSION_2_0 | Sabit |
public static const PACKAGE_VERSION_2_0:Number = 2.0
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Placement Building Block 10 |
Çalışma Zamanı Sürümleri: | AIR 1.0, Flash Player 9, Flash Player 10 |
The package version 2.0.
Tue Jun 12 2018, 01:09 PM Z