Scenario:
You would like to create the visual portion of a GUI object in the Flash IDE, because it’s easier to draw with the tools provide than it is to “draw” with code. How do you then make this item functional? Extend it with a custom class, of course!
- Draw a rectangle with the rectangle tool.
- Convert the rectangle to a MovieClip symbol.
- Name it RectangleMC.
- Set the Class to RectangleMC (same as the name).
- Set the Base Class to your new custom class (i.e. com.miketmoore.gui.Rectangle).
- That’s it!
June 16 2009
0 Comments