# Adding custom components via actionscript

**URL:** https://forum.kirupa.com/t/adding-custom-components-via-actionscript/306663
**Category:** flash
**Created:** [March 19, 2010, 1:21pm UTC](https://forum.kirupa.com/t/adding-custom-components-via-actionscript/306663 "2010-03-19T13:21:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)
#### Post date: [March 19, 2010, 1:21pm UTC](https://forum.kirupa.com/t/adding-custom-components-via-actionscript/306663/1 "2010-03-19T13:21:01Z")

</div>

I know how to add components using the mx tag so \<custom:email\_cmp/\>

but States are really bothering me. So I would to add the component through actionscript, and delete it after
