I was asking about the required method overrides for AS3 components in
Flex to do some similar things, and Muzak posted this here back on Feb
2nd - even if you're not using Flex, much of this is likely still
relevant. Unfortunately, Adobe doesn't really have great documentation
on this:

Flexcoders can be a bit overwhelming and posts get lost in the masses.
Try FlexComponents on yahoo instead for component related posts.
http://tech.groups.yahoo.com/group/flexcomponents/

Does this have the information you need?
http://livedocs.adobe.com/flex/3/html/help.html?content=ascomponents_adv
anced_1.html
http://livedocs.adobe.com/flex/3/html/ascomponents_advanced_3.html#21410
4

Here's a summary from the docs:
http://livedocs.adobe.com/flex/3/html/ascomponents_advanced_2.html#21977
9

<quote>

To implement your component, follow these general steps:

   1. If necessary, create any skins for the component.
   2. Create an ActionScript class file.
         1. Extend one of the base classes, such as UIComponent or
another component class.
         2. Specify properties that the user can set by using an MXML
tag property.
         3. Embed any graphic and skin files.
         4. Implement the constructor.
         5. Implement the UIComponent.createChildren() method.
         6. Implement the UIComponent.commitProperties() method.
         7. Implement the UIComponent.measure() method.
         8. Implement the UIComponent.layoutChrome() method.
         9. Implement the UIComponent.updateDisplayList() method.
        10. Add properties, methods, styles, events, and metadata.
   3. Deploy the component as an ActionScript file or as a SWC file.

</quote>

regards,
Muzak


Jason Merrill 

Bank of  America   |  Learning Performance Solutions Instructional
Technology & Media   

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to