| < Day Day Up > | 
| The bare bones of any subclass requires: 
 Hence, our ImageViewerDeluxe class starts out with the skeleton shown in Example 7-1. Refer to Example 5-8 for the ImageViewer class definition. Example 7-1. The ImageViewerDeluxe class skeleton /**  * The ImageViewerDeluxe class skeleton   */ class ImageViewerDeluxe extends ImageViewer {   public function ImageViewerDeluxe (target:MovieClip,                                  depth:Number,                                  x:Number,                                  y:Number,                                  w:Number,                                  h:Number,                                 borderThickness:Number,                                 borderColor:Number) {      // Invoke the   ImageViewer   constructor from Example 5-8     super(target, depth, x, y, w, h, borderThickness, borderColor);   } } Our ImageViewerDeluxe class does not alter the way an ImageViewer instance is constructed . It merely preserves the ImageViewer class constructor's behavior by accepting the same arguments as the ImageViewer constructor and forwarding them to it via super( ) . To create the ImageViewerDeluxe.as class file using Flash MX Professional 2004, follow these steps: 
 Already, our ImageViewerDeluxe class is ready for use. Instances of the ImageViewerDeluxe class have all the ImageViewer class's methods and can be used anywhere ImageViewer instances are used. | 
| < Day Day Up > | 
