Something like: <mx:script> include "myfile.as" </mx:script>
However, I do not think you can use this method to include one MXML file in another. When you compile an MXML file, you can save the AS that it generates; I believe the argument is 'keep generated content'. I would expect it to be tedious to maintain if you compile one file, then include it in another. Would you have to keep the files in separate projects? Perhaps you should consider some form of composition? Create each file as a component, then use one component in another. chr_nrt wrote: > > > Hi everybody, > > I want to include one mxml file in script block of another mxml file. > How to include that? > > I remember after we compile mxml file it converts into an action > script file, but i am not sure how to use that .as file. > > Please help me, thanks in advance. > > Thanks > chr > > -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: <http://www.dot-com-it.com> My Podcast: <http://www.theflexshow.com> My Blog: <http://www.jeffryhouser.com>

