Jan 16
loader 一些列参数表
AS3 MINNI library
| Property name | Class constant | Data type | Description |
|---|---|---|---|
| preventCache | PREVENT_CACHING | Boolean | If true a random query string will be added to the url (or a post param in case of post reuquest). |
| id | ID | String | A string to identify this item. This id can be used in any method that uses the key parameter, such as pause, removeItem, resume, getContent, getBitmap, getBitmapData, getXML, getMovieClip and getText. |
| priority | PRIORITY | int | An int used to order which items till be downloaded first. Items with a higher priority will download first. For items with the same priority they will be loaded in the same order they've been added. |
| maxTries | MAX_TRIES | int | The number of retries in case the lading fails, defaults to 3. |
| weight | WEIGHT | int | A number that sets an arbitrary relative size for this item. See #weightPercent. |
| headers | HEADERS | Array | An array of RequestHeader objects to be used when constructing the URL. If the url parameter is passed as a string, BulkLoader will use these request headers to construct the url. |
| context | CONTEXT | LoaderContext or SoundLoaderContext | An object definig the loading context for this load operario. If this item is of TYPE_SOUND, a SoundLoaderContext is expected. If it's a TYPE_IMAGE a LoaderContext should be passed. |
| pausedAtStart | PAUSED_AT_START | Boolean | If true, the nestream will be paused when loading has begun. |
最新评论及回复