# How does MXML and Actionscript 3 relate?

**URL:** <https://forum.kirupa.com/t/how-does-mxml-and-actionscript-3-relate/283599>\
**Category:** flash\
**Created:** [March 9, 2009, 1:04am UTC](https://forum.kirupa.com/t/how-does-mxml-and-actionscript-3-relate/283599 "2009-03-09T01:04:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grandpaw\_broon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/grandpaw_broon/32/3985_2.png) [@grandpaw\_broon](https://forum.kirupa.com/u/grandpaw_broon)\
**Post date:** [March 9, 2009, 1:04am UTC](https://forum.kirupa.com/t/how-does-mxml-and-actionscript-3-relate/283599/1 "2009-03-09T01:04:37Z")

</div>

Hi all,

I have been using Flex Builder for a while now, infact since i started coding in AS3 Projects.

One of the fundamental issues i have from experience of trying flex, is i dont see how MXML tags and AS3 is related.

Can someone try to explain to me from an Actionscript perspective?

If i create a PixelBackgroud.as class which extends sprite and draws a random pattern, then how can flex use that class? Does it automatically become \<PixelBackground /\> ?
