There aren’t code examples because each app is unique.  There is one example in 
the profiler post on my blog, but it may not relate to your app.


On 6/29/12 2:44 AM, "kannan Mugundan" <[email protected]> wrote:






Hi Alex,

Thanks for the information.
I read your blog and many others related to module unloading and it seem to be 
a lot of work.
I am  Java programmer, and I have decent knowledge in flex to create  a simple 
CRUD application.
But to unload the modules, I think it might require an expert knowledge in 
flex/Action Script.

Though many blogs list down the things to do. But I don't find any  code 
examples on how to do it (of course I understand It depends on what refrences 
is holding your module).

If you can point to further detail steps on handling the unloading, I can try 
it, else I have to give up the thought of module unloading due to time 
constraints.

Thanks
kannan






On Thu, Jun 28, 2012 at 8:31 PM, Alex Harui <[email protected]> wrote:

You have to get the module to successfully unload before making the new 
request.  Use the profiler to see why the module hasn't unloaded.



On 6/27/12 9:48 PM, "kannan Mugundan" <[email protected] 
<http://[email protected]> > wrote:






Hi,

I have a flex  application and I have designed each forms in my application as 
modules
On menu click I load my modules using module loader.

Now I have manged to avoid caching of my flex application using the general 
work around like adding  no cache tags and
 in the wrapper html  I modifled the  embed source like  below (adding a random 
number) and seems to be working.
<
embed src="${swf}.swf?"+Math.floor(Math.random()*10000);

I followed the same work around for loading modules, when I assign a URL to my 
ModuleLoader, I append the time stamp as a parameter .

url +
"?ts="+new Date().getTime();

and assign this URL to my ModuleLoader.

Charles Proxy says that a request is going to the server, I can see the 
relative URL and  the new time stamp.

But my changes in the swf/flex module is not reflected. The changes are 
reflected only when I reload my application.

My Environment is
Flex Version 3.5
Tomcat 6.20 running within my Flex builder 3
I running the application within my Flex Builder.
I try to access my application from another computer.



This kind of seem to be a show stopper for me, as we  often change things in 
our modules and it is accessed by heterogeneous users
Any suggestion on how to over come this problem would be very helpful.



 Regards
Kannan





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

Reply via email to