view stack method is more easy to use... i would recommend you to use view
stack....
which ide are you using to code......
flex builder will automatically add the namespace for you.........

Akshar Kaul


On Tue, Apr 13, 2010 at 20:47, Kiran Kumar Reddy <[email protected]> wrote:

> Dear Swapna/Raj,
>
> I have one more solution for you requirement, might not be the best but
> works for me.
> If you are displaying other mxml components in main mxml .... create the
> other mxml components as MXML Modules.
> and on click event callback in your main mxml of some button or link load
> the MXML module as bellow
>
> var currentModule:IModuleInfo = ModuleManager.getModule("OtherMxml1.swf");
> currentModule.addEventListener(ModuleEvent.READY, OtherMxml1EventHandlers);
> //you can have event listeners for each otherMxml component.
>
> And in OtherMxmlEventHandlers function
> ============================================
> private function OtherMxml1EventHandler (e:ModuleEvent):void {
>     var currentScreenForm:Object = currentModule.factory.create() as
> OtherMxml1;
>     mainPanel.removeAllChildren(); // Main Panel is Panel in the Maim mxml
> file.
>     mainPanel.addChild(currentScreenForm as DisplayObject);
> }
>
> If you are using Flex Builder then creating mxml modules is very easy and
> will be loaded only when required. You can also unload the module to free up
> the memory.The compilation of modules would be taken care by FB and can be
> optimized to Main MXML.
>
> I am sorry if I am not very clear. I posted some snippet of code from my
> project. Hope this helps you a bit.
>
>
> On Tue, Apr 13, 2010 at 3:09 PM, 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]<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.

Reply via email to