I assume your extended Button is in a package of some kind, so just do this -
<my:Button xmlns:my="my.package.components" text="hello world" /> The xmlns:my attribute lets Flex know which button you are referring to, and using the my: prefix tells Flex which package to look in. You can add the xmlns statement to the root MXML tag to avoid typing it again and again. But if you're looking for something similar in AS, I think you're out of luck - http://www.sephiroth.it/weblog/archives/2007/03/actionscript_4_import_alias_where_is.php 2009/2/18 dorkie dork from dorktown <[email protected]>: > During the discussion of the Fx prefix thing I was reminded when I was > creating my own classes of the same name. For example, I think I was > extending button and didn't want to change the name to anything else besides > "button" so I had: > > public class Button extends mx.controls.Button > > Then in my application code hinting would always throw a disambiguity error. > > So I was trying to remember if there was a way to alias my Button from the > mx Button and the not have the compiler throw errors or make me write out > the full class names each time (to get around the error). > > > > >

