Step 1: Add name space in mx:Application tag for example <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:*mycomponent *="*com.yourorg.yourdept.applicationname.subfolderifany.components.*"* backgroundColor="#AAAAAA" layout="vertical" top="0" left="0" bottom="0" right="0" paddingTop="0" paddingLeft="0" paddingBottom="0" paddingRight="0" horizontalGap="0" verticalGap="0" initialize="init()" applicationComplete="onApplicationComplete()" >
Step:2 Place your components (.mxmls) under path specified for example *com.yourorg.yourdept.applicationname.subfolderifany.components* ** Step 3: use the name space to invoke your components. For example: *mycomponent**:Header** id="yourId" visible="false" ... and assign the values to attributes/events etc myevent="onClickEventHandler(event)" />* ** *Here Header.mxml is defined under folder com.yourorg.yourdept.applicationname.subfolderifany.components and has an event named myevent. * ** Hope this will help. Thanks, Kaushal. On Tue, Apr 13, 2010 at 9:09 AM, swapna y <[email protected]> wrote: > i have same probem... > but if i write this viewstacks in mxml component then how to use these > components in main mxml file. do we need to compile before use them?? > > > On Tue, Apr 13, 2010 at 6:13 PM, Fehmina Kanuga < > [email protected]> wrote: > >> Hi u can achieve this using viewstack and tab navigator >> >> >> >> On Tue, Apr 13, 2010 at 4:09 PM, Raj <[email protected]> wrote: >> >>> Hi, >>> I have Main.mxml component and 5 mxml file. I want to access mxml >>> components features from main.mxml. >>> plz help me. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Flex India Community" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<flex_india%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/flex_india?hl=en. >>> >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Flex India Community" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<flex_india%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/flex_india?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

