I have a flex app that loads 2 modules.
<mx:ModuleLoader id ="MLoptions" x="200" y="0"
<mx:ModuleLoader id="MLgraphs" x="0" y="0"
My second module "MLgraphs" loads a pie chart. What I want to
happen is when the user clicks the pie piece the "MLgraphs" url
changes to modules/mybargraph.swf. Basically, when the user clicks
the pie piece...the pie chart is replaced with a bar graph.
All of my modules work correctly, but I am unsure how to tell
FLEX to unload a module and load a different one from the module
that is going to be unloaded.
I hope that makes sense. Any help is greatly appreciated.
i don't know why will you want to change modules if what you
want is just to change graph from one type to another but you can
unload a module and then load another one in its place simply by
calling, inside your module
this.unload, and then you have to know where will it go from
there, so the best thing to do is
1st - set current state to a state you want
2nd-unload module using modulename.unload
3rd-load the new module