Title: Mercury Email Signature

Like Jimmy said, sounds like a job for ViewStack.

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of Shlomi Cohen
Sent: Thursday, June 09, 2005 11:48 AM
To: '[email protected]'
Subject: RE: [flexcoders] what is the best practice for dynamic content change.

 

Hi

 

Thanks for the reply , but the question was if there is a better way to do this than separated apps,  i have to use a tree cause its a design requirement.

i though that maybe there is a way to replace the content of the right frame with different panel each time.

 

 is it possible to do it dynamically ? , for example the right is defined like this, and upon a click in the tree the right panel should be replaced.

 

<mx:VBox id="mainPanel">

    <pv:someModuleView>

<mx:Vbox>

 

function switchView(view:String){
    if (view=="someOtherModuleName"){

            mainPanel.control??? = new someOtherModule();

    }

}

 

 

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of Dimitrios Gianninas
Sent: Thursday, June 09, 2005 03:11
To: [email protected]
Subject: RE: [flexcoders] what is the best practice for dynamic content change.

Hi Shlomi,

 

Yes, for each app you want to load using the Loader control, it must be in effect a standalone Flex app to begin with, so its root tag must be the Application tag.

I don't know how big all these sub applications are, but perhaps you can use a ViewStack instead and that should server your purpose. If all you want to do is display one sub-app at a time.

 

Hope that helps!

 

Dimitrios "Jimmy" Gianninas

RIA Developer

Optimal Payments Inc.

 

 


From: Shlomi Cohen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 08, 2005 12:52 PM
To: '[email protected]'
Subject: [flexcoders] what is the best practice for dynamic content change.

Hi

 

I have windows explorer like application , the left panel contain a tree with a list of sub applications (modules)

and the right panel is the main view .(which suppose to be used by each sub application)

 

i want to be able to load the right panel with the selected sub application .

 

I know that Flex Explorer sample implemented  something similar with the mx:Loader tag. where every application is loaded by the URL sent to the loader object.

the only design fault i can see here is that every module have to be in its own mx:Application tag otherwise the loader can't load it.

 

is there a better way ? what is the best practice here ?

 

 

thanks

 

Shlomi

 




______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________



Yahoo! Groups Links

Reply via email to