Basically what i am trying to do is, after login validations i have to show main screen to end user.
I thought that i can use in simple way like public var myMain:main = new main(); myMain.testFunc(); I am using eclipse with FB2 plug in. I know how to include those components using flex like <MyComp: But how to include those components in action script. If i use components, then i have to make single big main file and all other files are components. Am i right? Thank you so much for you prompt response. Chr --- In [email protected], Jeffry Houser <[EMAIL PROTECTED]> wrote: > > 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> >

