Hi Venkat,
(i am splitting the project into several swfs for the sake of plug in
swfs for the usage...)
so the same swf file may load in tabnavigation from main module but
different viewstack state using model.swfoption...
i think u understand my problem..
the below code is from master.swf source i am loading different
modules using viewstack, passing model.swfoption from navigation that
u already seen the code.
private function init():void
{
CairngormEventDispatcher.getInstance().dispatchEvent(new
CairngormEvent(GetLanguageEvent.EVENT_LANGUAGE));
viewstackID.selectedIndex = model.swfoption;
}
]]>
</mx:Script>
<mx:Style source="/assets/styles.css"/>
<mx:Style source="/styles/SuperTabStyles.css"/>
<mx:ViewStack id="viewstackID" width="100%" height="100%">
<!--Menu Name0-->
<mx:Canvas label="TestMaster" width="100%"
height="100%">
<Module:TestMasterModule height="100%"
width="100%"/>
</mx:Canvas>
<!--1-->
<mx:Canvas label="Material" width="100%"
height="100%">
<Module1:MaterialModule height="100%"
width="100%"/>
</mx:Canvas>
<!--2-->
<mx:Canvas label="Material Category"
width="100%" height="100%">
<Module1:MaterialCategoryModule
height="100%" width="100%"/>
</mx:Canvas>
<!--3-->
<mx:Canvas label="Organization" width="100%"
height="100%">
<Module1:OrganizationModule
height="100%" width="100%"/>
</mx:Canvas>
......
.
.
.
.
.
.</mx:ViewStack>
<business:Services id="services" />
<control:MasterController id="controllerMaster" />
</mx:Application>
regards,
raaja
On Oct 22, 9:45 pm, "Venkat Viswanathan" <[EMAIL PROTECTED]>
wrote:
> Hi Raaja,
>
> Why are you loading the modules again? You can probably maintain an array to
> check the modules that are already loaded and not load them again if they
> are already loaded.
>
> If you could show the complete logic that you are using for loading the
> modules, we may be able to help you further.
>
> Regards,
> Venkatwww.venkatv.com
>
>
>
> On Wed, Oct 22, 2008 at 6:38 PM, raajasoft <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > Single swf file having multiple views in viewstack problem
>
> > 1. builded application that have several modules
>
> > 2. navigating modules using supertabnavigator,
>
> > 3. each module builded as swf file loaded in (navigate from) main swf
> > file,
>
> > i am facing problem that, like when i load (eg.) 'master.swf' file
> > that having different views so i should load whenever master related
> > form needed then i should load master.swf file is loaded several time
> > with different tabs.
> > that memory keeps on increasing is it not share the already loaded
> > 'master.swf' memory or it will create new instance of that swf file.
>
> > switch(menuName)
> > {
> > case "TestMasterModule":
> > swfURL =
> > "Masters.swf"
> > VBoxName = "Test ";
> > model.swfoption = 0;
> > break;
> > case "MaterialModule":
> > swfURL =
> > "Masters.swf"
> > VBoxName =
> > "Material";
> > model.swfoption = 1;
> > break;
> > case
> > "MaterialCategoryModule":
> > swfURL =
> > "Masters.swf"
> > VBoxName =
> > "Category";
> > model.swfoption = 2;
> > break;
> > case "OrganizationModule":
> > swfURL =
> > "Masters.swf"
> > VBoxName =
> > "Organization";
> > model.swfoption = 3;
> > break;
> > case "SupplierModule":
> > swfURL =
> > "Masters.swf"
> > VBoxName =
> > "Supplier";
> > model.swfoption = 4;
> > break;
> > }
> > if(menuName!="")
> > {
> > loadSWF = new
> > SWFLoader();
> > loadSWF.load( swfURL );
> > loadSWF.percentWidth = 100;
> > loadSWF.percentHeight =
> > 100;
> > newVBox = new VBox();
> > nav.addChild(
> > newVBox);
> > newVBox.label =
> > VBoxName;
> > newVBox.addChild(loadSWF );
> > nav.selectedIndex =
> > findComponent(str);
> > }
> > }
>
> > thanks
>
> > raaja- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---