flash native_classes_reusing_code

Reusing code

The drawing application that we created in the previous article was so good that an agency wanted to use it and adapt it for a new client. Thanks to the way it is constructed they can change the design without touching the code.

In a new Flash CS3 document we import a new graphic as shown here:

9.6.1.jpg

In the Linking properties panel we specify the pencil class developed in the previous article.

We are then ready to compile and here is the result:

9.6.2.jpg

The adaptation of our project only takes a couple of seconds, all MovieClip type symbols can be linked to the pencil class and benefit from all its functionality and behavior.








Adobe Training center


Mediabox Training Centre © 2000 - 2008 All rights reserved.
Adobe Authorized Training Centre. State convention under number 25 14 02167 14.
Mediabox : SARL au capital de 62.000€ - Activity number: 25 14 02167 14 - SIRET : 493 716 468 00027
MEDIABOX, 102 Avenue des Champs Elysées, 75008 PARIS - Tel. +33(0)2.31.91.96.89 - Fax. +33(0)2.72.68.56.42