Adobe Dreamweaver Forums



Last 10 THreads :         Restate my problem - YET AGAIN (Last Post : Raymond Basque - Replies : 5 - Views : 6 )           »          How to find number of occurance of each number in biglist of numbers? (Last Post : Dan Bracuk - Replies : 3 - Views : 6 )           »          Suddenly can't see files on remote server (Last Post : Alan - Replies : 1 - Views : 2 )           »          files are one level too deep (Last Post : Alan - Replies : 6 - Views : 7 )           »          Moving custom tag registration between servers. (Last Post : nosredna - Replies : 0 - Views : 1 )           »          How to do this?. (Last Post : Dan Bracuk - Replies : 1 - Views : 2 )           »          Spry Menu Background (Last Post : ich_kann_schnell_laufen - Replies : 0 - Views : 1 )           »          Dreamweaver CS4 makes my fonts go mental? (Last Post : theRizzer - Replies : 3 - Views : 9 )           »          mpg video will play in FF but not in IE (Last Post : Old Shoe - Replies : 0 - Views : 1 )           »          Create A Rotator Banner in DW? (Last Post : BigScaryRobot - Replies : 2 - Views : 3 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: ,



Reply
  #1 (permalink)  
Old 07-09-2008, 08:56 PM
cputnam14
 
Posts: n/a
Diggs:
Default Loading modules from modules

I'm not even sure if this can be done.

I have a flex app that loads 2 modules.
<mx:ModuleLoader id ="MLoptions" x="200" y="0" url="modules/myoptions.swf"/>
<mx:ModuleLoader id="MLgraphs" x="0" y="0" url="modules/mypiechart.swf" />

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.






Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-31-2008, 06:33 PM
Greg Lafrance
 
Posts: n/a
Diggs:
Default Re: Loading modules from modules

BUMP - I was really hoping someone could respond to this post, as I'm interested in hearing possible solutions.
Reply With Quote
  #3 (permalink)  
Old 07-31-2008, 09:42 PM
batmitra
 
Posts: n/a
Diggs:
Default Re: Loading modules from modules

hi

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


Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 08:06 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk