Wednesday, November 5, 2008

Hi Guys I hope every body doing great things in Flex. We all know that FLEX 3.0 has the feature of module. By Using module you can make your application in parts , I will discuss this concept later in my blog . right now i am awaring you about how to reload your module in Flex 3.0 , technically module reloading module is not possible but you can reload it each time at the time of Loading.

When you unload your module and again when you load your module you just have to add one random number with the module url. By Using the ramdom number each time module loads its data as Freash or wiht new swf. 
The Code is as follows Right now i am not posting the live example but soon i will post.

yeh!  code is 

ModuleLoader id="Mymodule" ready='somefunction'

when your assign the url to Module set url like this 

Mymodule.url='somepath/mymodule.swf?'+math.random();

this code load freash module or swf each time when you load the module or swf.




0 Comments:

Post a Comment