skin specifies a skin library.
A skin library may be imported into the Viewer for the purpose of skinning. The path to the skin library file must be specified using the source attribute.
| Name | Description | |
|---|---|---|
| source | Specifies the URL to the skin library file | The value of this attribute can be a relative or absolute URL. Relative URLs are resolved using the URL of the layout descriptor file containing the skin element as the base |
| type | Specifies the type (format) of the skin library | A skin library may be either SWF-based or image-based; correspondingly, the value of this attribute can be either swf (default) or image |
<?xml version="1.0"?> <viewer xmlns="http://issuu.com/viewer/1.0" backgroundColor="#111111"> <skin type="swf" source="graphics/skins.swf"/> <button action="index" upState="#IndexButton_up" overState="#IndexButton_over" downState="#IndexButton_down"/> ... </viewer>
In the example above, the file skins.swf from the graphics directory is imported into the Viewer. The index button is then skinned using the skins IndexButton_up, IndexButton_over, and IndexButton_down from the file.
Multiple skin libraries may be imported by repeating the skin element.
Copyright © 2009 Issuu Inc. All rights reserved.