You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Devesh Mishra <De...@mastek.com> on 2013/11/08 10:26:59 UTC

One of the parameters is invalid while loading a module

Hi,
I am facing the same issue which has been reported in the given URL (http://forums.adobe.com/message/2783233)
In this post, someone mentioned that this issue is coming because of different implementation of StyleManager in Flex 3 & Flex 4.
Need confirmation for the same.
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

RE: One of the parameters is invalid while loading a module

Posted by Devesh Mishra <De...@mastek.com>.
Hi,

I think, this issue was coming because of different implementation of StyleManager in Flex 3 & 4. So finally I got something and its working for me. Now no need to use compiler argument. I have written one this piece of code after getting ready event call i.e.

                                var sm:Object =  StyleManager.getStyleManager(_moduleLoader.moduleFactory);
                                var info1:Module = child as Module;
                                if(info1!=null)
                                {
                                        _moduleLoader.automationName = info1.className;
                                        var b:Object = info1.moduleFactory.getImplementation("mx.styles::IStyleManager2");
                                        if( b!=null)
                                                b.stylesRoot = sm.stylesRoot;
                                }

It works for me.


-----Original Message-----
From: Darrell Loverin [mailto:darrell.loverin@gmail.com]
Sent: 15 November 2013 23:04
To: users@flex.apache.org
Subject: Re: One of the parameters is invalid while loading a module

Without being able to see the issue for myself, I'm out of suggestions.


On Fri, Nov 15, 2013 at 12:38 AM, Devesh Mishra <De...@mastek.com>wrote:

> Hi Darrel,
>
> If I understood you correctly then I think you want to say that I should
> add _popUpWindow in the displayList before loading module. I have also
> tried it, but it didn't worked.
>
> Bad thing is that I have tried to load the same module & same way of
> loading module with a sample project, it's working there.
>
> -----Original Message-----
> From: Darrell Loverin [mailto:darrell.loverin@gmail.com]
> Sent: 15 November 2013 07:24
> To: users@flex.apache.org
> Subject: Re: One of the parameters is invalid while loading a module
>
> From what I see  _popUpWindow is not on the display list when
>  _moduleLoader.loadModule() is called. Therefore _moduleLoader is also not
> on the display list.
>
>
> On Thu, Nov 14, 2013 at 1:07 AM, Devesh Mishra <Devesh.Mishra@mastek.com
> >wrote:
>
> > Hi Darrel,
> >
> > I have also tried with ModuleManager, but getting same issue. I am bit
> > confused with your statement that ModuleLoader is not in display. I have
> > added moduleLoader instance into popupwindow before loading module. Can
> you
> > please clarify ?
> >
> > I'll try to upload a sample project. May be it'll help.
> >
> > -----Original Message-----
> > From: Darrell Loverin [mailto:darrell.loverin@gmail.com]
> > Sent: 13 November 2013 23:28
> > To: users@flex.apache.org
> > Subject: Re: One of the parameters is invalid while loading a module
> >
> > One issue I noticed with the way you are using ModuleLoader is it is not
> on
> > the display list when you are doing the load so the moduleFactory that
> > controls the selected StyleManager will not be set correctly unless you
> are
> > in the top level application. Based on the way you are using
> ModuleLoader I
> > think you would be better off using ModuleManager.
> >
> >
> > On Wed, Nov 13, 2013 at 9:55 AM, Darrell Loverin
> > <da...@gmail.com>wrote:
> >
> > > I wasn't able to reproduce your problem using Flex 4.6. You gave me
> some
> > > code but left me guessing about the code for testModule.swf and the
> > > application. As Alex mentioned, it would be best to create a bug in
> JIRA,
> > > attach a simple FB project that reproduces the problem, and link to it
> > from
> > > here. That would greatly improve your chances of  getting help.
> > >
> > >
> > > -Darrell Loverin
> > >
> > >
> > > On Wed, Nov 13, 2013 at 3:07 AM, Devesh Mishra <
> Devesh.Mishra@mastek.com
> > >wrote:
> > >
> > >> Hi,
> > >>
> > >> Thanks Alex to inform us. I am adding my same code below.
> > >>
> > >> // Sample Code Start
> > >> package com
> > >> {
> > >>         import mx.core.IFlexDisplayObject;
> > >>         import mx.events.CloseEvent;
> > >>         import mx.events.ModuleEvent;
> > >>         import mx.managers.PopUpManager;
> > >>         import mx.modules.ModuleLoader;
> > >>         import spark.components.TitleWindow;
> > >>
> > >>         public class LoadModule
> > >>         {
> > >>                 private var _moduleUrl:String;
> > >>                 private var _moduleLoader:ModuleLoader;
> > >>                 private var _popUpWindow:TitleWindow;
> > >>
> > >>                 public function LoadModule()
> > >>                 {
> > >>                         this.openModule();
> > >>                 }
> > >>
> > >>                 private function openModule():void
> > >>                 {
> > >>                         _moduleUrl = 'testModule.swf';
> > >>                          openModuleAsPopUp();
> > >>                 }
> > >>
> > >>                 private function openModuleAsPopUp():void
> > >>                 {
> > >>                         _moduleLoader = new ModuleLoader();
> > >>                         if(_popUpWindow == null){
> > >>                                 _popUpWindow = new TitleWindow();
> > >>
> > >> _popUpWindow.addEventListener(CloseEvent.CLOSE,moduleCloseHandler);
> > >>                         }
> > >>                         _popUpWindow.addElement(_moduleLoader);
> > >>                         loadModule(_moduleLoader);
> > >>                 }
> > >>
> > >>                 private function
> > >> loadModule(moduleLoader:ModuleLoader):void
> > >>                 {
> > >>
> > >> moduleLoader.addEventListener(ModuleEvent.READY,onModuleLoadHandler);
> > >>
> > >> moduleLoader.addEventListener(ModuleEvent.ERROR,onModuleLoadHandler);
> > >>
> > >> moduleLoader.addEventListener(ModuleEvent.SETUP,onModuleLoadHandler);
> > >>
> > >>
> moduleLoader.addEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler);
> > >>
> > >> moduleLoader.addEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler);
> > >>
> > >>
> > moduleLoader.addEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler);
> > >>                         moduleLoader.loadModule(_moduleUrl);
> > >>                 }
> > >>
> > >>                 private function
> > >> onModuleLoadHandler(event:ModuleEvent):void
> > >>                 {
> > >>                         switch(event.type)
> > >>                         {
> > >>                                 case ModuleEvent.READY:
> > >>
> > >>  onModuleLoadComplete(event.currentTarget.child);
> > >>                                          break;
> > >>
> > >>                                 case ModuleEvent.SETUP:
> > >>                                          trace("Module Setup");
> > >>                                          break;
> > >>
> > >>                                 case ModuleEvent.ERROR:
> > >>                                          trace("Error while loading
> > >> module");
> > >>                                          break;
> > >>
> > >>                                 case ModuleEvent.PROGRESS:
> > >>                                          trace("Module load in
> > progress");
> > >>                                          break;
> > >>
> > >>                                 case ModuleEvent.UNLOAD:
> > >>                                          onModuleUnloadComplete();
> > >>                                          trace("Unloading module");
> > >>                                          break;
> > >>                         }
> > >>                 }
> > >>
> > >>                 private function onModuleUnloadComplete():void
> > >>                 {
> > >>
> > >>
> >
> _moduleLoader.removeEventListener(ModuleEvent.READY,onModuleLoadHandler,false);
> > >>
> > >>
> >
> _moduleLoader.removeEventListener(ModuleEvent.ERROR,onModuleLoadHandler,false);
> > >>
> > >>
> >
> _moduleLoader.removeEventListener(ModuleEvent.SETUP,onModuleLoadHandler,false);
> > >>
> > >>
> >
> _moduleLoader.removeEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler,false);
> > >>
> > >>
> >
> _moduleLoader.removeEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler,false);
> > >>
> > >>
> >
> _moduleLoader.removeEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler,false);
> > >>                 }
> > >>
> > >>                 private function onModuleLoadComplete(child:*):void
> > >>                 {
> > >>                         _moduleLoader.addChild(child as
> DisplayObject);
> > >>                         PopUpManager.addPopUp(_popUpWindow as
> > >> IFlexDisplayObject,FlexGlobals.topLevelApplication as
> > DisplayObject,true);
> > >>                         PopUpManager.centerPopUp(_popUpWindow as
> > >> IFlexDisplayObject);
> > >>                 }
> > >>
> > >>                 private function moduleCloseHandler(event:Event):void
> > >>                 {
> > >>                         _moduleLoader.unloadModule();
> > >>                         PopUpManager.removePopUp(_popUpWindow);
> > >>                         _popUpWindow = null;
> > >>                 }
> > >>         }
> > >> }
> > >>
> > >> // Sample Code End
> > >>
> > >> -----Original Message-----
> > >> From: Devesh Mishra
> > >> Sent: 13 November 2013 12:24
> > >> To: users@flex.apache.org
> > >> Subject: RE: One of the parameters is invalid while loading a module
> > >>
> > >> Hi Darrel,
> > >>
> > >> Good to listen from you. I have attached my action script sample class
> > >> file in this email. Hope it'll give you a more clarification.
> > >>
> > >> Here are my explanation regarding your queries.
> > >>
> > >> 1) I have written PopUpManager.centerPopUp() on ready event, because I
> > >> want to display my popup only when my module get loads completely.
> > Anyways
> > >> i have already tried with something else i.e. I have tried, just after
> > the
> > >> initialization of popup window. But still getting same issue.
> > >>
> > >> 2) Yes, I am using moduleLoader.addChild(child), after ready event.
> > >> You'll get more clarification after looking into attached file.
> > >>
> > >> Note: Again repeating, this is happening with only one module. Apart
> > from
> > >> that, I have lots of module in my application and all are working
> fine.
> > >> Module where I am getting this issue, it contains only one <mx:Module>
> > and
> > >> inside module tag, there is one <s:VGroup width="100%" height="100%"
> > >> gap="10">
> > >>
> > >> That's it inside my module where I am getting error.
> > >>
> > >>
> > >> MASTEK LTD.
> > >> In the US, we're called MAJESCOMASTEK
> > >>
> > >>
> > >>
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >> Opinions expressed in this e-mail are those of the individual and not
> > >> that of Mastek Limited, unless specifically indicated to that effect.
> > >> Mastek Limited does not accept any responsibility or liability for it.
> > This
> > >> e-mail and attachments (if any) transmitted with it are confidential
> > and/or
> > >> privileged and solely for the use of the intended person or entity to
> > which
> > >> it is addressed. Any review, re-transmission, dissemination or other
> > use of
> > >> or taking of any action in reliance upon this information by persons
> or
> > >> entities other than the intended recipient is prohibited. This e-mail
> > and
> > >> its attachments have been scanned for the presence of computer
> viruses.
> > It
> > >> is the responsibility of the recipient to run the virus check on
> e-mails
> > >> and attachments before opening them. If you have received this e-mail
> in
> > >> error, kindly delete this e-mail from desktop and server.
> > >>
> > >>
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >>
> > >>
> > >
> > MASTEK LTD.
> > In the US, we're called MAJESCOMASTEK
> >
> >
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Opinions expressed in this e-mail are those of the individual and not
> that
> > of Mastek Limited, unless specifically indicated to that effect. Mastek
> > Limited does not accept any responsibility or liability for it. This
> e-mail
> > and attachments (if any) transmitted with it are confidential and/or
> > privileged and solely for the use of the intended person or entity to
> which
> > it is addressed. Any review, re-transmission, dissemination or other use
> of
> > or taking of any action in reliance upon this information by persons or
> > entities other than the intended recipient is prohibited. This e-mail and
> > its attachments have been scanned for the presence of computer viruses.
> It
> > is the responsibility of the recipient to run the virus check on e-mails
> > and attachments before opening them. If you have received this e-mail in
> > error, kindly delete this e-mail from desktop and server.
> >
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails
> and attachments before opening them. If you have received this e-mail in
> error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Re: One of the parameters is invalid while loading a module

Posted by Darrell Loverin <da...@gmail.com>.
Without being able to see the issue for myself, I'm out of suggestions.


On Fri, Nov 15, 2013 at 12:38 AM, Devesh Mishra <De...@mastek.com>wrote:

> Hi Darrel,
>
> If I understood you correctly then I think you want to say that I should
> add _popUpWindow in the displayList before loading module. I have also
> tried it, but it didn't worked.
>
> Bad thing is that I have tried to load the same module & same way of
> loading module with a sample project, it's working there.
>
> -----Original Message-----
> From: Darrell Loverin [mailto:darrell.loverin@gmail.com]
> Sent: 15 November 2013 07:24
> To: users@flex.apache.org
> Subject: Re: One of the parameters is invalid while loading a module
>
> From what I see  _popUpWindow is not on the display list when
>  _moduleLoader.loadModule() is called. Therefore _moduleLoader is also not
> on the display list.
>
>
> On Thu, Nov 14, 2013 at 1:07 AM, Devesh Mishra <Devesh.Mishra@mastek.com
> >wrote:
>
> > Hi Darrel,
> >
> > I have also tried with ModuleManager, but getting same issue. I am bit
> > confused with your statement that ModuleLoader is not in display. I have
> > added moduleLoader instance into popupwindow before loading module. Can
> you
> > please clarify ?
> >
> > I'll try to upload a sample project. May be it'll help.
> >
> > -----Original Message-----
> > From: Darrell Loverin [mailto:darrell.loverin@gmail.com]
> > Sent: 13 November 2013 23:28
> > To: users@flex.apache.org
> > Subject: Re: One of the parameters is invalid while loading a module
> >
> > One issue I noticed with the way you are using ModuleLoader is it is not
> on
> > the display list when you are doing the load so the moduleFactory that
> > controls the selected StyleManager will not be set correctly unless you
> are
> > in the top level application. Based on the way you are using
> ModuleLoader I
> > think you would be better off using ModuleManager.
> >
> >
> > On Wed, Nov 13, 2013 at 9:55 AM, Darrell Loverin
> > <da...@gmail.com>wrote:
> >
> > > I wasn't able to reproduce your problem using Flex 4.6. You gave me
> some
> > > code but left me guessing about the code for testModule.swf and the
> > > application. As Alex mentioned, it would be best to create a bug in
> JIRA,
> > > attach a simple FB project that reproduces the problem, and link to it
> > from
> > > here. That would greatly improve your chances of  getting help.
> > >
> > >
> > > -Darrell Loverin
> > >
> > >
> > > On Wed, Nov 13, 2013 at 3:07 AM, Devesh Mishra <
> Devesh.Mishra@mastek.com
> > >wrote:
> > >
> > >> Hi,
> > >>
> > >> Thanks Alex to inform us. I am adding my same code below.
> > >>
> > >> // Sample Code Start
> > >> package com
> > >> {
> > >>         import mx.core.IFlexDisplayObject;
> > >>         import mx.events.CloseEvent;
> > >>         import mx.events.ModuleEvent;
> > >>         import mx.managers.PopUpManager;
> > >>         import mx.modules.ModuleLoader;
> > >>         import spark.components.TitleWindow;
> > >>
> > >>         public class LoadModule
> > >>         {
> > >>                 private var _moduleUrl:String;
> > >>                 private var _moduleLoader:ModuleLoader;
> > >>                 private var _popUpWindow:TitleWindow;
> > >>
> > >>                 public function LoadModule()
> > >>                 {
> > >>                         this.openModule();
> > >>                 }
> > >>
> > >>                 private function openModule():void
> > >>                 {
> > >>                         _moduleUrl = 'testModule.swf';
> > >>                          openModuleAsPopUp();
> > >>                 }
> > >>
> > >>                 private function openModuleAsPopUp():void
> > >>                 {
> > >>                         _moduleLoader = new ModuleLoader();
> > >>                         if(_popUpWindow == null){
> > >>                                 _popUpWindow = new TitleWindow();
> > >>
> > >> _popUpWindow.addEventListener(CloseEvent.CLOSE,moduleCloseHandler);
> > >>                         }
> > >>                         _popUpWindow.addElement(_moduleLoader);
> > >>                         loadModule(_moduleLoader);
> > >>                 }
> > >>
> > >>                 private function
> > >> loadModule(moduleLoader:ModuleLoader):void
> > >>                 {
> > >>
> > >> moduleLoader.addEventListener(ModuleEvent.READY,onModuleLoadHandler);
> > >>
> > >> moduleLoader.addEventListener(ModuleEvent.ERROR,onModuleLoadHandler);
> > >>
> > >> moduleLoader.addEventListener(ModuleEvent.SETUP,onModuleLoadHandler);
> > >>
> > >>
> moduleLoader.addEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler);
> > >>
> > >> moduleLoader.addEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler);
> > >>
> > >>
> > moduleLoader.addEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler);
> > >>                         moduleLoader.loadModule(_moduleUrl);
> > >>                 }
> > >>
> > >>                 private function
> > >> onModuleLoadHandler(event:ModuleEvent):void
> > >>                 {
> > >>                         switch(event.type)
> > >>                         {
> > >>                                 case ModuleEvent.READY:
> > >>
> > >>  onModuleLoadComplete(event.currentTarget.child);
> > >>                                          break;
> > >>
> > >>                                 case ModuleEvent.SETUP:
> > >>                                          trace("Module Setup");
> > >>                                          break;
> > >>
> > >>                                 case ModuleEvent.ERROR:
> > >>                                          trace("Error while loading
> > >> module");
> > >>                                          break;
> > >>
> > >>                                 case ModuleEvent.PROGRESS:
> > >>                                          trace("Module load in
> > progress");
> > >>                                          break;
> > >>
> > >>                                 case ModuleEvent.UNLOAD:
> > >>                                          onModuleUnloadComplete();
> > >>                                          trace("Unloading module");
> > >>                                          break;
> > >>                         }
> > >>                 }
> > >>
> > >>                 private function onModuleUnloadComplete():void
> > >>                 {
> > >>
> > >>
> >
> _moduleLoader.removeEventListener(ModuleEvent.READY,onModuleLoadHandler,false);
> > >>
> > >>
> >
> _moduleLoader.removeEventListener(ModuleEvent.ERROR,onModuleLoadHandler,false);
> > >>
> > >>
> >
> _moduleLoader.removeEventListener(ModuleEvent.SETUP,onModuleLoadHandler,false);
> > >>
> > >>
> >
> _moduleLoader.removeEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler,false);
> > >>
> > >>
> >
> _moduleLoader.removeEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler,false);
> > >>
> > >>
> >
> _moduleLoader.removeEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler,false);
> > >>                 }
> > >>
> > >>                 private function onModuleLoadComplete(child:*):void
> > >>                 {
> > >>                         _moduleLoader.addChild(child as
> DisplayObject);
> > >>                         PopUpManager.addPopUp(_popUpWindow as
> > >> IFlexDisplayObject,FlexGlobals.topLevelApplication as
> > DisplayObject,true);
> > >>                         PopUpManager.centerPopUp(_popUpWindow as
> > >> IFlexDisplayObject);
> > >>                 }
> > >>
> > >>                 private function moduleCloseHandler(event:Event):void
> > >>                 {
> > >>                         _moduleLoader.unloadModule();
> > >>                         PopUpManager.removePopUp(_popUpWindow);
> > >>                         _popUpWindow = null;
> > >>                 }
> > >>         }
> > >> }
> > >>
> > >> // Sample Code End
> > >>
> > >> -----Original Message-----
> > >> From: Devesh Mishra
> > >> Sent: 13 November 2013 12:24
> > >> To: users@flex.apache.org
> > >> Subject: RE: One of the parameters is invalid while loading a module
> > >>
> > >> Hi Darrel,
> > >>
> > >> Good to listen from you. I have attached my action script sample class
> > >> file in this email. Hope it'll give you a more clarification.
> > >>
> > >> Here are my explanation regarding your queries.
> > >>
> > >> 1) I have written PopUpManager.centerPopUp() on ready event, because I
> > >> want to display my popup only when my module get loads completely.
> > Anyways
> > >> i have already tried with something else i.e. I have tried, just after
> > the
> > >> initialization of popup window. But still getting same issue.
> > >>
> > >> 2) Yes, I am using moduleLoader.addChild(child), after ready event.
> > >> You'll get more clarification after looking into attached file.
> > >>
> > >> Note: Again repeating, this is happening with only one module. Apart
> > from
> > >> that, I have lots of module in my application and all are working
> fine.
> > >> Module where I am getting this issue, it contains only one <mx:Module>
> > and
> > >> inside module tag, there is one <s:VGroup width="100%" height="100%"
> > >> gap="10">
> > >>
> > >> That's it inside my module where I am getting error.
> > >>
> > >>
> > >> MASTEK LTD.
> > >> In the US, we're called MAJESCOMASTEK
> > >>
> > >>
> > >>
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >> Opinions expressed in this e-mail are those of the individual and not
> > >> that of Mastek Limited, unless specifically indicated to that effect.
> > >> Mastek Limited does not accept any responsibility or liability for it.
> > This
> > >> e-mail and attachments (if any) transmitted with it are confidential
> > and/or
> > >> privileged and solely for the use of the intended person or entity to
> > which
> > >> it is addressed. Any review, re-transmission, dissemination or other
> > use of
> > >> or taking of any action in reliance upon this information by persons
> or
> > >> entities other than the intended recipient is prohibited. This e-mail
> > and
> > >> its attachments have been scanned for the presence of computer
> viruses.
> > It
> > >> is the responsibility of the recipient to run the virus check on
> e-mails
> > >> and attachments before opening them. If you have received this e-mail
> in
> > >> error, kindly delete this e-mail from desktop and server.
> > >>
> > >>
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >>
> > >>
> > >
> > MASTEK LTD.
> > In the US, we're called MAJESCOMASTEK
> >
> >
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Opinions expressed in this e-mail are those of the individual and not
> that
> > of Mastek Limited, unless specifically indicated to that effect. Mastek
> > Limited does not accept any responsibility or liability for it. This
> e-mail
> > and attachments (if any) transmitted with it are confidential and/or
> > privileged and solely for the use of the intended person or entity to
> which
> > it is addressed. Any review, re-transmission, dissemination or other use
> of
> > or taking of any action in reliance upon this information by persons or
> > entities other than the intended recipient is prohibited. This e-mail and
> > its attachments have been scanned for the presence of computer viruses.
> It
> > is the responsibility of the recipient to run the virus check on e-mails
> > and attachments before opening them. If you have received this e-mail in
> > error, kindly delete this e-mail from desktop and server.
> >
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails
> and attachments before opening them. If you have received this e-mail in
> error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>

RE: One of the parameters is invalid while loading a module

Posted by Devesh Mishra <De...@mastek.com>.
Hi Darrel,

If I understood you correctly then I think you want to say that I should add _popUpWindow in the displayList before loading module. I have also tried it, but it didn't worked.

Bad thing is that I have tried to load the same module & same way of loading module with a sample project, it's working there.

-----Original Message-----
From: Darrell Loverin [mailto:darrell.loverin@gmail.com] 
Sent: 15 November 2013 07:24
To: users@flex.apache.org
Subject: Re: One of the parameters is invalid while loading a module

From what I see  _popUpWindow is not on the display list when
 _moduleLoader.loadModule() is called. Therefore _moduleLoader is also not
on the display list.


On Thu, Nov 14, 2013 at 1:07 AM, Devesh Mishra <De...@mastek.com>wrote:

> Hi Darrel,
>
> I have also tried with ModuleManager, but getting same issue. I am bit
> confused with your statement that ModuleLoader is not in display. I have
> added moduleLoader instance into popupwindow before loading module. Can you
> please clarify ?
>
> I'll try to upload a sample project. May be it'll help.
>
> -----Original Message-----
> From: Darrell Loverin [mailto:darrell.loverin@gmail.com]
> Sent: 13 November 2013 23:28
> To: users@flex.apache.org
> Subject: Re: One of the parameters is invalid while loading a module
>
> One issue I noticed with the way you are using ModuleLoader is it is not on
> the display list when you are doing the load so the moduleFactory that
> controls the selected StyleManager will not be set correctly unless you are
> in the top level application. Based on the way you are using ModuleLoader I
> think you would be better off using ModuleManager.
>
>
> On Wed, Nov 13, 2013 at 9:55 AM, Darrell Loverin
> <da...@gmail.com>wrote:
>
> > I wasn't able to reproduce your problem using Flex 4.6. You gave me some
> > code but left me guessing about the code for testModule.swf and the
> > application. As Alex mentioned, it would be best to create a bug in JIRA,
> > attach a simple FB project that reproduces the problem, and link to it
> from
> > here. That would greatly improve your chances of  getting help.
> >
> >
> > -Darrell Loverin
> >
> >
> > On Wed, Nov 13, 2013 at 3:07 AM, Devesh Mishra <Devesh.Mishra@mastek.com
> >wrote:
> >
> >> Hi,
> >>
> >> Thanks Alex to inform us. I am adding my same code below.
> >>
> >> // Sample Code Start
> >> package com
> >> {
> >>         import mx.core.IFlexDisplayObject;
> >>         import mx.events.CloseEvent;
> >>         import mx.events.ModuleEvent;
> >>         import mx.managers.PopUpManager;
> >>         import mx.modules.ModuleLoader;
> >>         import spark.components.TitleWindow;
> >>
> >>         public class LoadModule
> >>         {
> >>                 private var _moduleUrl:String;
> >>                 private var _moduleLoader:ModuleLoader;
> >>                 private var _popUpWindow:TitleWindow;
> >>
> >>                 public function LoadModule()
> >>                 {
> >>                         this.openModule();
> >>                 }
> >>
> >>                 private function openModule():void
> >>                 {
> >>                         _moduleUrl = 'testModule.swf';
> >>                          openModuleAsPopUp();
> >>                 }
> >>
> >>                 private function openModuleAsPopUp():void
> >>                 {
> >>                         _moduleLoader = new ModuleLoader();
> >>                         if(_popUpWindow == null){
> >>                                 _popUpWindow = new TitleWindow();
> >>
> >> _popUpWindow.addEventListener(CloseEvent.CLOSE,moduleCloseHandler);
> >>                         }
> >>                         _popUpWindow.addElement(_moduleLoader);
> >>                         loadModule(_moduleLoader);
> >>                 }
> >>
> >>                 private function
> >> loadModule(moduleLoader:ModuleLoader):void
> >>                 {
> >>
> >> moduleLoader.addEventListener(ModuleEvent.READY,onModuleLoadHandler);
> >>
> >> moduleLoader.addEventListener(ModuleEvent.ERROR,onModuleLoadHandler);
> >>
> >> moduleLoader.addEventListener(ModuleEvent.SETUP,onModuleLoadHandler);
> >>
> >> moduleLoader.addEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler);
> >>
> >> moduleLoader.addEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler);
> >>
> >>
> moduleLoader.addEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler);
> >>                         moduleLoader.loadModule(_moduleUrl);
> >>                 }
> >>
> >>                 private function
> >> onModuleLoadHandler(event:ModuleEvent):void
> >>                 {
> >>                         switch(event.type)
> >>                         {
> >>                                 case ModuleEvent.READY:
> >>
> >>  onModuleLoadComplete(event.currentTarget.child);
> >>                                          break;
> >>
> >>                                 case ModuleEvent.SETUP:
> >>                                          trace("Module Setup");
> >>                                          break;
> >>
> >>                                 case ModuleEvent.ERROR:
> >>                                          trace("Error while loading
> >> module");
> >>                                          break;
> >>
> >>                                 case ModuleEvent.PROGRESS:
> >>                                          trace("Module load in
> progress");
> >>                                          break;
> >>
> >>                                 case ModuleEvent.UNLOAD:
> >>                                          onModuleUnloadComplete();
> >>                                          trace("Unloading module");
> >>                                          break;
> >>                         }
> >>                 }
> >>
> >>                 private function onModuleUnloadComplete():void
> >>                 {
> >>
> >>
> _moduleLoader.removeEventListener(ModuleEvent.READY,onModuleLoadHandler,false);
> >>
> >>
> _moduleLoader.removeEventListener(ModuleEvent.ERROR,onModuleLoadHandler,false);
> >>
> >>
> _moduleLoader.removeEventListener(ModuleEvent.SETUP,onModuleLoadHandler,false);
> >>
> >>
> _moduleLoader.removeEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler,false);
> >>
> >>
> _moduleLoader.removeEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler,false);
> >>
> >>
> _moduleLoader.removeEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler,false);
> >>                 }
> >>
> >>                 private function onModuleLoadComplete(child:*):void
> >>                 {
> >>                         _moduleLoader.addChild(child as DisplayObject);
> >>                         PopUpManager.addPopUp(_popUpWindow as
> >> IFlexDisplayObject,FlexGlobals.topLevelApplication as
> DisplayObject,true);
> >>                         PopUpManager.centerPopUp(_popUpWindow as
> >> IFlexDisplayObject);
> >>                 }
> >>
> >>                 private function moduleCloseHandler(event:Event):void
> >>                 {
> >>                         _moduleLoader.unloadModule();
> >>                         PopUpManager.removePopUp(_popUpWindow);
> >>                         _popUpWindow = null;
> >>                 }
> >>         }
> >> }
> >>
> >> // Sample Code End
> >>
> >> -----Original Message-----
> >> From: Devesh Mishra
> >> Sent: 13 November 2013 12:24
> >> To: users@flex.apache.org
> >> Subject: RE: One of the parameters is invalid while loading a module
> >>
> >> Hi Darrel,
> >>
> >> Good to listen from you. I have attached my action script sample class
> >> file in this email. Hope it'll give you a more clarification.
> >>
> >> Here are my explanation regarding your queries.
> >>
> >> 1) I have written PopUpManager.centerPopUp() on ready event, because I
> >> want to display my popup only when my module get loads completely.
> Anyways
> >> i have already tried with something else i.e. I have tried, just after
> the
> >> initialization of popup window. But still getting same issue.
> >>
> >> 2) Yes, I am using moduleLoader.addChild(child), after ready event.
> >> You'll get more clarification after looking into attached file.
> >>
> >> Note: Again repeating, this is happening with only one module. Apart
> from
> >> that, I have lots of module in my application and all are working fine.
> >> Module where I am getting this issue, it contains only one <mx:Module>
> and
> >> inside module tag, there is one <s:VGroup width="100%" height="100%"
> >> gap="10">
> >>
> >> That's it inside my module where I am getting error.
> >>
> >>
> >> MASTEK LTD.
> >> In the US, we're called MAJESCOMASTEK
> >>
> >>
> >>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >> Opinions expressed in this e-mail are those of the individual and not
> >> that of Mastek Limited, unless specifically indicated to that effect.
> >> Mastek Limited does not accept any responsibility or liability for it.
> This
> >> e-mail and attachments (if any) transmitted with it are confidential
> and/or
> >> privileged and solely for the use of the intended person or entity to
> which
> >> it is addressed. Any review, re-transmission, dissemination or other
> use of
> >> or taking of any action in reliance upon this information by persons or
> >> entities other than the intended recipient is prohibited. This e-mail
> and
> >> its attachments have been scanned for the presence of computer viruses.
> It
> >> is the responsibility of the recipient to run the virus check on e-mails
> >> and attachments before opening them. If you have received this e-mail in
> >> error, kindly delete this e-mail from desktop and server.
> >>
> >>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>
> >>
> >
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails
> and attachments before opening them. If you have received this e-mail in
> error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Re: One of the parameters is invalid while loading a module

Posted by Darrell Loverin <da...@gmail.com>.
>From what I see  _popUpWindow is not on the display list when
 _moduleLoader.loadModule() is called. Therefore _moduleLoader is also not
on the display list.


On Thu, Nov 14, 2013 at 1:07 AM, Devesh Mishra <De...@mastek.com>wrote:

> Hi Darrel,
>
> I have also tried with ModuleManager, but getting same issue. I am bit
> confused with your statement that ModuleLoader is not in display. I have
> added moduleLoader instance into popupwindow before loading module. Can you
> please clarify ?
>
> I'll try to upload a sample project. May be it'll help.
>
> -----Original Message-----
> From: Darrell Loverin [mailto:darrell.loverin@gmail.com]
> Sent: 13 November 2013 23:28
> To: users@flex.apache.org
> Subject: Re: One of the parameters is invalid while loading a module
>
> One issue I noticed with the way you are using ModuleLoader is it is not on
> the display list when you are doing the load so the moduleFactory that
> controls the selected StyleManager will not be set correctly unless you are
> in the top level application. Based on the way you are using ModuleLoader I
> think you would be better off using ModuleManager.
>
>
> On Wed, Nov 13, 2013 at 9:55 AM, Darrell Loverin
> <da...@gmail.com>wrote:
>
> > I wasn't able to reproduce your problem using Flex 4.6. You gave me some
> > code but left me guessing about the code for testModule.swf and the
> > application. As Alex mentioned, it would be best to create a bug in JIRA,
> > attach a simple FB project that reproduces the problem, and link to it
> from
> > here. That would greatly improve your chances of  getting help.
> >
> >
> > -Darrell Loverin
> >
> >
> > On Wed, Nov 13, 2013 at 3:07 AM, Devesh Mishra <Devesh.Mishra@mastek.com
> >wrote:
> >
> >> Hi,
> >>
> >> Thanks Alex to inform us. I am adding my same code below.
> >>
> >> // Sample Code Start
> >> package com
> >> {
> >>         import mx.core.IFlexDisplayObject;
> >>         import mx.events.CloseEvent;
> >>         import mx.events.ModuleEvent;
> >>         import mx.managers.PopUpManager;
> >>         import mx.modules.ModuleLoader;
> >>         import spark.components.TitleWindow;
> >>
> >>         public class LoadModule
> >>         {
> >>                 private var _moduleUrl:String;
> >>                 private var _moduleLoader:ModuleLoader;
> >>                 private var _popUpWindow:TitleWindow;
> >>
> >>                 public function LoadModule()
> >>                 {
> >>                         this.openModule();
> >>                 }
> >>
> >>                 private function openModule():void
> >>                 {
> >>                         _moduleUrl = 'testModule.swf';
> >>                          openModuleAsPopUp();
> >>                 }
> >>
> >>                 private function openModuleAsPopUp():void
> >>                 {
> >>                         _moduleLoader = new ModuleLoader();
> >>                         if(_popUpWindow == null){
> >>                                 _popUpWindow = new TitleWindow();
> >>
> >> _popUpWindow.addEventListener(CloseEvent.CLOSE,moduleCloseHandler);
> >>                         }
> >>                         _popUpWindow.addElement(_moduleLoader);
> >>                         loadModule(_moduleLoader);
> >>                 }
> >>
> >>                 private function
> >> loadModule(moduleLoader:ModuleLoader):void
> >>                 {
> >>
> >> moduleLoader.addEventListener(ModuleEvent.READY,onModuleLoadHandler);
> >>
> >> moduleLoader.addEventListener(ModuleEvent.ERROR,onModuleLoadHandler);
> >>
> >> moduleLoader.addEventListener(ModuleEvent.SETUP,onModuleLoadHandler);
> >>
> >> moduleLoader.addEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler);
> >>
> >> moduleLoader.addEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler);
> >>
> >>
> moduleLoader.addEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler);
> >>                         moduleLoader.loadModule(_moduleUrl);
> >>                 }
> >>
> >>                 private function
> >> onModuleLoadHandler(event:ModuleEvent):void
> >>                 {
> >>                         switch(event.type)
> >>                         {
> >>                                 case ModuleEvent.READY:
> >>
> >>  onModuleLoadComplete(event.currentTarget.child);
> >>                                          break;
> >>
> >>                                 case ModuleEvent.SETUP:
> >>                                          trace("Module Setup");
> >>                                          break;
> >>
> >>                                 case ModuleEvent.ERROR:
> >>                                          trace("Error while loading
> >> module");
> >>                                          break;
> >>
> >>                                 case ModuleEvent.PROGRESS:
> >>                                          trace("Module load in
> progress");
> >>                                          break;
> >>
> >>                                 case ModuleEvent.UNLOAD:
> >>                                          onModuleUnloadComplete();
> >>                                          trace("Unloading module");
> >>                                          break;
> >>                         }
> >>                 }
> >>
> >>                 private function onModuleUnloadComplete():void
> >>                 {
> >>
> >>
> _moduleLoader.removeEventListener(ModuleEvent.READY,onModuleLoadHandler,false);
> >>
> >>
> _moduleLoader.removeEventListener(ModuleEvent.ERROR,onModuleLoadHandler,false);
> >>
> >>
> _moduleLoader.removeEventListener(ModuleEvent.SETUP,onModuleLoadHandler,false);
> >>
> >>
> _moduleLoader.removeEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler,false);
> >>
> >>
> _moduleLoader.removeEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler,false);
> >>
> >>
> _moduleLoader.removeEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler,false);
> >>                 }
> >>
> >>                 private function onModuleLoadComplete(child:*):void
> >>                 {
> >>                         _moduleLoader.addChild(child as DisplayObject);
> >>                         PopUpManager.addPopUp(_popUpWindow as
> >> IFlexDisplayObject,FlexGlobals.topLevelApplication as
> DisplayObject,true);
> >>                         PopUpManager.centerPopUp(_popUpWindow as
> >> IFlexDisplayObject);
> >>                 }
> >>
> >>                 private function moduleCloseHandler(event:Event):void
> >>                 {
> >>                         _moduleLoader.unloadModule();
> >>                         PopUpManager.removePopUp(_popUpWindow);
> >>                         _popUpWindow = null;
> >>                 }
> >>         }
> >> }
> >>
> >> // Sample Code End
> >>
> >> -----Original Message-----
> >> From: Devesh Mishra
> >> Sent: 13 November 2013 12:24
> >> To: users@flex.apache.org
> >> Subject: RE: One of the parameters is invalid while loading a module
> >>
> >> Hi Darrel,
> >>
> >> Good to listen from you. I have attached my action script sample class
> >> file in this email. Hope it'll give you a more clarification.
> >>
> >> Here are my explanation regarding your queries.
> >>
> >> 1) I have written PopUpManager.centerPopUp() on ready event, because I
> >> want to display my popup only when my module get loads completely.
> Anyways
> >> i have already tried with something else i.e. I have tried, just after
> the
> >> initialization of popup window. But still getting same issue.
> >>
> >> 2) Yes, I am using moduleLoader.addChild(child), after ready event.
> >> You'll get more clarification after looking into attached file.
> >>
> >> Note: Again repeating, this is happening with only one module. Apart
> from
> >> that, I have lots of module in my application and all are working fine.
> >> Module where I am getting this issue, it contains only one <mx:Module>
> and
> >> inside module tag, there is one <s:VGroup width="100%" height="100%"
> >> gap="10">
> >>
> >> That's it inside my module where I am getting error.
> >>
> >>
> >> MASTEK LTD.
> >> In the US, we're called MAJESCOMASTEK
> >>
> >>
> >>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >> Opinions expressed in this e-mail are those of the individual and not
> >> that of Mastek Limited, unless specifically indicated to that effect.
> >> Mastek Limited does not accept any responsibility or liability for it.
> This
> >> e-mail and attachments (if any) transmitted with it are confidential
> and/or
> >> privileged and solely for the use of the intended person or entity to
> which
> >> it is addressed. Any review, re-transmission, dissemination or other
> use of
> >> or taking of any action in reliance upon this information by persons or
> >> entities other than the intended recipient is prohibited. This e-mail
> and
> >> its attachments have been scanned for the presence of computer viruses.
> It
> >> is the responsibility of the recipient to run the virus check on e-mails
> >> and attachments before opening them. If you have received this e-mail in
> >> error, kindly delete this e-mail from desktop and server.
> >>
> >>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>
> >>
> >
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails
> and attachments before opening them. If you have received this e-mail in
> error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>

RE: One of the parameters is invalid while loading a module

Posted by Devesh Mishra <De...@mastek.com>.
Hi Darrel,

I have also tried with ModuleManager, but getting same issue. I am bit confused with your statement that ModuleLoader is not in display. I have added moduleLoader instance into popupwindow before loading module. Can you please clarify ?

I'll try to upload a sample project. May be it'll help.

-----Original Message-----
From: Darrell Loverin [mailto:darrell.loverin@gmail.com] 
Sent: 13 November 2013 23:28
To: users@flex.apache.org
Subject: Re: One of the parameters is invalid while loading a module

One issue I noticed with the way you are using ModuleLoader is it is not on
the display list when you are doing the load so the moduleFactory that
controls the selected StyleManager will not be set correctly unless you are
in the top level application. Based on the way you are using ModuleLoader I
think you would be better off using ModuleManager.


On Wed, Nov 13, 2013 at 9:55 AM, Darrell Loverin
<da...@gmail.com>wrote:

> I wasn't able to reproduce your problem using Flex 4.6. You gave me some
> code but left me guessing about the code for testModule.swf and the
> application. As Alex mentioned, it would be best to create a bug in JIRA,
> attach a simple FB project that reproduces the problem, and link to it from
> here. That would greatly improve your chances of  getting help.
>
>
> -Darrell Loverin
>
>
> On Wed, Nov 13, 2013 at 3:07 AM, Devesh Mishra <De...@mastek.com>wrote:
>
>> Hi,
>>
>> Thanks Alex to inform us. I am adding my same code below.
>>
>> // Sample Code Start
>> package com
>> {
>>         import mx.core.IFlexDisplayObject;
>>         import mx.events.CloseEvent;
>>         import mx.events.ModuleEvent;
>>         import mx.managers.PopUpManager;
>>         import mx.modules.ModuleLoader;
>>         import spark.components.TitleWindow;
>>
>>         public class LoadModule
>>         {
>>                 private var _moduleUrl:String;
>>                 private var _moduleLoader:ModuleLoader;
>>                 private var _popUpWindow:TitleWindow;
>>
>>                 public function LoadModule()
>>                 {
>>                         this.openModule();
>>                 }
>>
>>                 private function openModule():void
>>                 {
>>                         _moduleUrl = 'testModule.swf';
>>                          openModuleAsPopUp();
>>                 }
>>
>>                 private function openModuleAsPopUp():void
>>                 {
>>                         _moduleLoader = new ModuleLoader();
>>                         if(_popUpWindow == null){
>>                                 _popUpWindow = new TitleWindow();
>>
>> _popUpWindow.addEventListener(CloseEvent.CLOSE,moduleCloseHandler);
>>                         }
>>                         _popUpWindow.addElement(_moduleLoader);
>>                         loadModule(_moduleLoader);
>>                 }
>>
>>                 private function
>> loadModule(moduleLoader:ModuleLoader):void
>>                 {
>>
>> moduleLoader.addEventListener(ModuleEvent.READY,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(ModuleEvent.ERROR,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(ModuleEvent.SETUP,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler);
>>                         moduleLoader.loadModule(_moduleUrl);
>>                 }
>>
>>                 private function
>> onModuleLoadHandler(event:ModuleEvent):void
>>                 {
>>                         switch(event.type)
>>                         {
>>                                 case ModuleEvent.READY:
>>
>>  onModuleLoadComplete(event.currentTarget.child);
>>                                          break;
>>
>>                                 case ModuleEvent.SETUP:
>>                                          trace("Module Setup");
>>                                          break;
>>
>>                                 case ModuleEvent.ERROR:
>>                                          trace("Error while loading
>> module");
>>                                          break;
>>
>>                                 case ModuleEvent.PROGRESS:
>>                                          trace("Module load in progress");
>>                                          break;
>>
>>                                 case ModuleEvent.UNLOAD:
>>                                          onModuleUnloadComplete();
>>                                          trace("Unloading module");
>>                                          break;
>>                         }
>>                 }
>>
>>                 private function onModuleUnloadComplete():void
>>                 {
>>
>> _moduleLoader.removeEventListener(ModuleEvent.READY,onModuleLoadHandler,false);
>>
>> _moduleLoader.removeEventListener(ModuleEvent.ERROR,onModuleLoadHandler,false);
>>
>> _moduleLoader.removeEventListener(ModuleEvent.SETUP,onModuleLoadHandler,false);
>>
>> _moduleLoader.removeEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler,false);
>>
>> _moduleLoader.removeEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler,false);
>>
>> _moduleLoader.removeEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler,false);
>>                 }
>>
>>                 private function onModuleLoadComplete(child:*):void
>>                 {
>>                         _moduleLoader.addChild(child as DisplayObject);
>>                         PopUpManager.addPopUp(_popUpWindow as
>> IFlexDisplayObject,FlexGlobals.topLevelApplication as DisplayObject,true);
>>                         PopUpManager.centerPopUp(_popUpWindow as
>> IFlexDisplayObject);
>>                 }
>>
>>                 private function moduleCloseHandler(event:Event):void
>>                 {
>>                         _moduleLoader.unloadModule();
>>                         PopUpManager.removePopUp(_popUpWindow);
>>                         _popUpWindow = null;
>>                 }
>>         }
>> }
>>
>> // Sample Code End
>>
>> -----Original Message-----
>> From: Devesh Mishra
>> Sent: 13 November 2013 12:24
>> To: users@flex.apache.org
>> Subject: RE: One of the parameters is invalid while loading a module
>>
>> Hi Darrel,
>>
>> Good to listen from you. I have attached my action script sample class
>> file in this email. Hope it'll give you a more clarification.
>>
>> Here are my explanation regarding your queries.
>>
>> 1) I have written PopUpManager.centerPopUp() on ready event, because I
>> want to display my popup only when my module get loads completely. Anyways
>> i have already tried with something else i.e. I have tried, just after the
>> initialization of popup window. But still getting same issue.
>>
>> 2) Yes, I am using moduleLoader.addChild(child), after ready event.
>> You'll get more clarification after looking into attached file.
>>
>> Note: Again repeating, this is happening with only one module. Apart from
>> that, I have lots of module in my application and all are working fine.
>> Module where I am getting this issue, it contains only one <mx:Module> and
>> inside module tag, there is one <s:VGroup width="100%" height="100%"
>> gap="10">
>>
>> That's it inside my module where I am getting error.
>>
>>
>> MASTEK LTD.
>> In the US, we're called MAJESCOMASTEK
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Opinions expressed in this e-mail are those of the individual and not
>> that of Mastek Limited, unless specifically indicated to that effect.
>> Mastek Limited does not accept any responsibility or liability for it. This
>> e-mail and attachments (if any) transmitted with it are confidential and/or
>> privileged and solely for the use of the intended person or entity to which
>> it is addressed. Any review, re-transmission, dissemination or other use of
>> or taking of any action in reliance upon this information by persons or
>> entities other than the intended recipient is prohibited. This e-mail and
>> its attachments have been scanned for the presence of computer viruses. It
>> is the responsibility of the recipient to run the virus check on e-mails
>> and attachments before opening them. If you have received this e-mail in
>> error, kindly delete this e-mail from desktop and server.
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>
>
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Re: One of the parameters is invalid while loading a module

Posted by Darrell Loverin <da...@gmail.com>.
One issue I noticed with the way you are using ModuleLoader is it is not on
the display list when you are doing the load so the moduleFactory that
controls the selected StyleManager will not be set correctly unless you are
in the top level application. Based on the way you are using ModuleLoader I
think you would be better off using ModuleManager.


On Wed, Nov 13, 2013 at 9:55 AM, Darrell Loverin
<da...@gmail.com>wrote:

> I wasn't able to reproduce your problem using Flex 4.6. You gave me some
> code but left me guessing about the code for testModule.swf and the
> application. As Alex mentioned, it would be best to create a bug in JIRA,
> attach a simple FB project that reproduces the problem, and link to it from
> here. That would greatly improve your chances of  getting help.
>
>
> -Darrell Loverin
>
>
> On Wed, Nov 13, 2013 at 3:07 AM, Devesh Mishra <De...@mastek.com>wrote:
>
>> Hi,
>>
>> Thanks Alex to inform us. I am adding my same code below.
>>
>> // Sample Code Start
>> package com
>> {
>>         import mx.core.IFlexDisplayObject;
>>         import mx.events.CloseEvent;
>>         import mx.events.ModuleEvent;
>>         import mx.managers.PopUpManager;
>>         import mx.modules.ModuleLoader;
>>         import spark.components.TitleWindow;
>>
>>         public class LoadModule
>>         {
>>                 private var _moduleUrl:String;
>>                 private var _moduleLoader:ModuleLoader;
>>                 private var _popUpWindow:TitleWindow;
>>
>>                 public function LoadModule()
>>                 {
>>                         this.openModule();
>>                 }
>>
>>                 private function openModule():void
>>                 {
>>                         _moduleUrl = 'testModule.swf';
>>                          openModuleAsPopUp();
>>                 }
>>
>>                 private function openModuleAsPopUp():void
>>                 {
>>                         _moduleLoader = new ModuleLoader();
>>                         if(_popUpWindow == null){
>>                                 _popUpWindow = new TitleWindow();
>>
>> _popUpWindow.addEventListener(CloseEvent.CLOSE,moduleCloseHandler);
>>                         }
>>                         _popUpWindow.addElement(_moduleLoader);
>>                         loadModule(_moduleLoader);
>>                 }
>>
>>                 private function
>> loadModule(moduleLoader:ModuleLoader):void
>>                 {
>>
>> moduleLoader.addEventListener(ModuleEvent.READY,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(ModuleEvent.ERROR,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(ModuleEvent.SETUP,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler);
>>                         moduleLoader.loadModule(_moduleUrl);
>>                 }
>>
>>                 private function
>> onModuleLoadHandler(event:ModuleEvent):void
>>                 {
>>                         switch(event.type)
>>                         {
>>                                 case ModuleEvent.READY:
>>
>>  onModuleLoadComplete(event.currentTarget.child);
>>                                          break;
>>
>>                                 case ModuleEvent.SETUP:
>>                                          trace("Module Setup");
>>                                          break;
>>
>>                                 case ModuleEvent.ERROR:
>>                                          trace("Error while loading
>> module");
>>                                          break;
>>
>>                                 case ModuleEvent.PROGRESS:
>>                                          trace("Module load in progress");
>>                                          break;
>>
>>                                 case ModuleEvent.UNLOAD:
>>                                          onModuleUnloadComplete();
>>                                          trace("Unloading module");
>>                                          break;
>>                         }
>>                 }
>>
>>                 private function onModuleUnloadComplete():void
>>                 {
>>
>> _moduleLoader.removeEventListener(ModuleEvent.READY,onModuleLoadHandler,false);
>>
>> _moduleLoader.removeEventListener(ModuleEvent.ERROR,onModuleLoadHandler,false);
>>
>> _moduleLoader.removeEventListener(ModuleEvent.SETUP,onModuleLoadHandler,false);
>>
>> _moduleLoader.removeEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler,false);
>>
>> _moduleLoader.removeEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler,false);
>>
>> _moduleLoader.removeEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler,false);
>>                 }
>>
>>                 private function onModuleLoadComplete(child:*):void
>>                 {
>>                         _moduleLoader.addChild(child as DisplayObject);
>>                         PopUpManager.addPopUp(_popUpWindow as
>> IFlexDisplayObject,FlexGlobals.topLevelApplication as DisplayObject,true);
>>                         PopUpManager.centerPopUp(_popUpWindow as
>> IFlexDisplayObject);
>>                 }
>>
>>                 private function moduleCloseHandler(event:Event):void
>>                 {
>>                         _moduleLoader.unloadModule();
>>                         PopUpManager.removePopUp(_popUpWindow);
>>                         _popUpWindow = null;
>>                 }
>>         }
>> }
>>
>> // Sample Code End
>>
>> -----Original Message-----
>> From: Devesh Mishra
>> Sent: 13 November 2013 12:24
>> To: users@flex.apache.org
>> Subject: RE: One of the parameters is invalid while loading a module
>>
>> Hi Darrel,
>>
>> Good to listen from you. I have attached my action script sample class
>> file in this email. Hope it'll give you a more clarification.
>>
>> Here are my explanation regarding your queries.
>>
>> 1) I have written PopUpManager.centerPopUp() on ready event, because I
>> want to display my popup only when my module get loads completely. Anyways
>> i have already tried with something else i.e. I have tried, just after the
>> initialization of popup window. But still getting same issue.
>>
>> 2) Yes, I am using moduleLoader.addChild(child), after ready event.
>> You'll get more clarification after looking into attached file.
>>
>> Note: Again repeating, this is happening with only one module. Apart from
>> that, I have lots of module in my application and all are working fine.
>> Module where I am getting this issue, it contains only one <mx:Module> and
>> inside module tag, there is one <s:VGroup width="100%" height="100%"
>> gap="10">
>>
>> That's it inside my module where I am getting error.
>>
>>
>> MASTEK LTD.
>> In the US, we're called MAJESCOMASTEK
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Opinions expressed in this e-mail are those of the individual and not
>> that of Mastek Limited, unless specifically indicated to that effect.
>> Mastek Limited does not accept any responsibility or liability for it. This
>> e-mail and attachments (if any) transmitted with it are confidential and/or
>> privileged and solely for the use of the intended person or entity to which
>> it is addressed. Any review, re-transmission, dissemination or other use of
>> or taking of any action in reliance upon this information by persons or
>> entities other than the intended recipient is prohibited. This e-mail and
>> its attachments have been scanned for the presence of computer viruses. It
>> is the responsibility of the recipient to run the virus check on e-mails
>> and attachments before opening them. If you have received this e-mail in
>> error, kindly delete this e-mail from desktop and server.
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>
>

Re: One of the parameters is invalid while loading a module

Posted by Darrell Loverin <da...@gmail.com>.
I wasn't able to reproduce your problem using Flex 4.6. You gave me some
code but left me guessing about the code for testModule.swf and the
application. As Alex mentioned, it would be best to create a bug in JIRA,
attach a simple FB project that reproduces the problem, and link to it from
here. That would greatly improve your chances of  getting help.


-Darrell Loverin


On Wed, Nov 13, 2013 at 3:07 AM, Devesh Mishra <De...@mastek.com>wrote:

> Hi,
>
> Thanks Alex to inform us. I am adding my same code below.
>
> // Sample Code Start
> package com
> {
>         import mx.core.IFlexDisplayObject;
>         import mx.events.CloseEvent;
>         import mx.events.ModuleEvent;
>         import mx.managers.PopUpManager;
>         import mx.modules.ModuleLoader;
>         import spark.components.TitleWindow;
>
>         public class LoadModule
>         {
>                 private var _moduleUrl:String;
>                 private var _moduleLoader:ModuleLoader;
>                 private var _popUpWindow:TitleWindow;
>
>                 public function LoadModule()
>                 {
>                         this.openModule();
>                 }
>
>                 private function openModule():void
>                 {
>                         _moduleUrl = 'testModule.swf';
>                          openModuleAsPopUp();
>                 }
>
>                 private function openModuleAsPopUp():void
>                 {
>                         _moduleLoader = new ModuleLoader();
>                         if(_popUpWindow == null){
>                                 _popUpWindow = new TitleWindow();
>
> _popUpWindow.addEventListener(CloseEvent.CLOSE,moduleCloseHandler);
>                         }
>                         _popUpWindow.addElement(_moduleLoader);
>                         loadModule(_moduleLoader);
>                 }
>
>                 private function loadModule(moduleLoader:ModuleLoader):void
>                 {
>
> moduleLoader.addEventListener(ModuleEvent.READY,onModuleLoadHandler);
>
> moduleLoader.addEventListener(ModuleEvent.ERROR,onModuleLoadHandler);
>
> moduleLoader.addEventListener(ModuleEvent.SETUP,onModuleLoadHandler);
>
> moduleLoader.addEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler);
>
> moduleLoader.addEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler);
>
> moduleLoader.addEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler);
>                         moduleLoader.loadModule(_moduleUrl);
>                 }
>
>                 private function
> onModuleLoadHandler(event:ModuleEvent):void
>                 {
>                         switch(event.type)
>                         {
>                                 case ModuleEvent.READY:
>
>  onModuleLoadComplete(event.currentTarget.child);
>                                          break;
>
>                                 case ModuleEvent.SETUP:
>                                          trace("Module Setup");
>                                          break;
>
>                                 case ModuleEvent.ERROR:
>                                          trace("Error while loading
> module");
>                                          break;
>
>                                 case ModuleEvent.PROGRESS:
>                                          trace("Module load in progress");
>                                          break;
>
>                                 case ModuleEvent.UNLOAD:
>                                          onModuleUnloadComplete();
>                                          trace("Unloading module");
>                                          break;
>                         }
>                 }
>
>                 private function onModuleUnloadComplete():void
>                 {
>
> _moduleLoader.removeEventListener(ModuleEvent.READY,onModuleLoadHandler,false);
>
> _moduleLoader.removeEventListener(ModuleEvent.ERROR,onModuleLoadHandler,false);
>
> _moduleLoader.removeEventListener(ModuleEvent.SETUP,onModuleLoadHandler,false);
>
> _moduleLoader.removeEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler,false);
>
> _moduleLoader.removeEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler,false);
>
> _moduleLoader.removeEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler,false);
>                 }
>
>                 private function onModuleLoadComplete(child:*):void
>                 {
>                         _moduleLoader.addChild(child as DisplayObject);
>                         PopUpManager.addPopUp(_popUpWindow as
> IFlexDisplayObject,FlexGlobals.topLevelApplication as DisplayObject,true);
>                         PopUpManager.centerPopUp(_popUpWindow as
> IFlexDisplayObject);
>                 }
>
>                 private function moduleCloseHandler(event:Event):void
>                 {
>                         _moduleLoader.unloadModule();
>                         PopUpManager.removePopUp(_popUpWindow);
>                         _popUpWindow = null;
>                 }
>         }
> }
>
> // Sample Code End
>
> -----Original Message-----
> From: Devesh Mishra
> Sent: 13 November 2013 12:24
> To: users@flex.apache.org
> Subject: RE: One of the parameters is invalid while loading a module
>
> Hi Darrel,
>
> Good to listen from you. I have attached my action script sample class
> file in this email. Hope it'll give you a more clarification.
>
> Here are my explanation regarding your queries.
>
> 1) I have written PopUpManager.centerPopUp() on ready event, because I
> want to display my popup only when my module get loads completely. Anyways
> i have already tried with something else i.e. I have tried, just after the
> initialization of popup window. But still getting same issue.
>
> 2) Yes, I am using moduleLoader.addChild(child), after ready event. You'll
> get more clarification after looking into attached file.
>
> Note: Again repeating, this is happening with only one module. Apart from
> that, I have lots of module in my application and all are working fine.
> Module where I am getting this issue, it contains only one <mx:Module> and
> inside module tag, there is one <s:VGroup width="100%" height="100%"
> gap="10">
>
> That's it inside my module where I am getting error.
>
>
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails
> and attachments before opening them. If you have received this e-mail in
> error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>

RE: One of the parameters is invalid while loading a module

Posted by Devesh Mishra <De...@mastek.com>.
Hi,

Thanks Alex to inform us. I am adding my same code below.

// Sample Code Start
package com
{
	import mx.core.IFlexDisplayObject;
	import mx.events.CloseEvent;
	import mx.events.ModuleEvent;
	import mx.managers.PopUpManager;
	import mx.modules.ModuleLoader;
	import spark.components.TitleWindow;
	
	public class LoadModule
	{
		private var _moduleUrl:String;
		private var _moduleLoader:ModuleLoader;
		private var _popUpWindow:TitleWindow;

		public function LoadModule()
		{
			this.openModule();
		}
		
		private function openModule():void
		{
			_moduleUrl = 'testModule.swf';
			 openModuleAsPopUp();
		}
		
		private function openModuleAsPopUp():void
		{
			_moduleLoader = new ModuleLoader();
			if(_popUpWindow == null){
				_popUpWindow = new TitleWindow();
				_popUpWindow.addEventListener(CloseEvent.CLOSE,moduleCloseHandler);
			}
			_popUpWindow.addElement(_moduleLoader);
			loadModule(_moduleLoader);
		}
		
		private function loadModule(moduleLoader:ModuleLoader):void
		{
			moduleLoader.addEventListener(ModuleEvent.READY,onModuleLoadHandler);
			moduleLoader.addEventListener(ModuleEvent.ERROR,onModuleLoadHandler);
			moduleLoader.addEventListener(ModuleEvent.SETUP,onModuleLoadHandler);
			moduleLoader.addEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler);
			moduleLoader.addEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler);
			moduleLoader.addEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler);
			moduleLoader.loadModule(_moduleUrl);
		}
		
		private function onModuleLoadHandler(event:ModuleEvent):void
		{
			switch(event.type)
			{
				case ModuleEvent.READY:
					 onModuleLoadComplete(event.currentTarget.child);
					 break;
				
				case ModuleEvent.SETUP:
					 trace("Module Setup");
					 break;
				
				case ModuleEvent.ERROR:
					 trace("Error while loading module");
					 break;
				
				case ModuleEvent.PROGRESS:
					 trace("Module load in progress");
					 break;
				
				case ModuleEvent.UNLOAD:
					 onModuleUnloadComplete();
					 trace("Unloading module");
					 break;
			}
		}
		
		private function onModuleUnloadComplete():void
		{
			_moduleLoader.removeEventListener(ModuleEvent.READY,onModuleLoadHandler,false);
			_moduleLoader.removeEventListener(ModuleEvent.ERROR,onModuleLoadHandler,false);
			_moduleLoader.removeEventListener(ModuleEvent.SETUP,onModuleLoadHandler,false);
			_moduleLoader.removeEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler,false);
			_moduleLoader.removeEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler,false);
			_moduleLoader.removeEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler,false);
		}
		
		private function onModuleLoadComplete(child:*):void
		{
			_moduleLoader.addChild(child as DisplayObject);
			PopUpManager.addPopUp(_popUpWindow as IFlexDisplayObject,FlexGlobals.topLevelApplication as DisplayObject,true);
			PopUpManager.centerPopUp(_popUpWindow as IFlexDisplayObject);
		}
		
		private function moduleCloseHandler(event:Event):void
		{
			_moduleLoader.unloadModule();
			PopUpManager.removePopUp(_popUpWindow);
			_popUpWindow = null;
		}
	}
}

// Sample Code End

-----Original Message-----
From: Devesh Mishra 
Sent: 13 November 2013 12:24
To: users@flex.apache.org
Subject: RE: One of the parameters is invalid while loading a module

Hi Darrel,

Good to listen from you. I have attached my action script sample class file in this email. Hope it'll give you a more clarification.

Here are my explanation regarding your queries.

1) I have written PopUpManager.centerPopUp() on ready event, because I want to display my popup only when my module get loads completely. Anyways i have already tried with something else i.e. I have tried, just after the initialization of popup window. But still getting same issue.

2) Yes, I am using moduleLoader.addChild(child), after ready event. You'll get more clarification after looking into attached file.

Note: Again repeating, this is happening with only one module. Apart from that, I have lots of module in my application and all are working fine. Module where I am getting this issue, it contains only one <mx:Module> and inside module tag, there is one <s:VGroup width="100%" height="100%" gap="10">

That's it inside my module where I am getting error.


MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Re: One of the parameters is invalid while loading a module

Posted by Alex Harui <ah...@adobe.com>.
Attachments may not work on this list.  Try posting a link to the files or
file a JIRA issue and put the files in there.

On 11/12/13 10:53 PM, "Devesh Mishra" <De...@mastek.com> wrote:

>Hi Darrel,
>
>Good to listen from you. I have attached my action script sample class
>file in this email. Hope it'll give you a more clarification.
>
>Here are my explanation regarding your queries.
>
>1) I have written PopUpManager.centerPopUp() on ready event, because I
>want to display my popup only when my module get loads completely.
>Anyways i have already tried with something else i.e. I have tried, just
>after the initialization of popup window. But still getting same issue.
>
>2) Yes, I am using moduleLoader.addChild(child), after ready event.
>You'll get more clarification after looking into attached file.
>
>Note: Again repeating, this is happening with only one module. Apart from
>that, I have lots of module in my application and all are working fine.
>Module where I am getting this issue, it contains only one <mx:Module>
>and inside module tag, there is one <s:VGroup width="100%" height="100%"
>gap="10">
>
>That's it inside my module where I am getting error.
>
>
>-----Original Message-----
>From: Darrell Loverin [mailto:darrell.loverin@gmail.com]
>Sent: 12 November 2013 21:15
>To: users@flex.apache.org
>Subject: Re: One of the parameters is invalid while loading a module
>
>A couple of things seem odd to me:
>
>1) Why is PopUpManager:centerPopUp() being called on a "ready" event?
>
>  at mx.managers::PopUpManager$/centerPopUp()[E:\dev\4.x\
>frameworks\projects\framework\src\mx\managers\PopUpManager.as:213]
>        at flash.events::EventDispatcher/dispatchEventFunction()
>        at flash.events::EventDispatcher/dispatchEvent()
>        at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\
>frameworks\projects\framework\src\mx\core\UIComponent.as:12528]
>        at mx.modules::ModuleLoader/moduleReadyHandler()[E:\dev\4.
>x\frameworks\projects\framework\src\mx\modules\ModuleLoader.as:462]
>
>2) Are you loading the module using _moduleLoader.addChild(child as
>DisplayObject)? The moduleLoader already adds the module as a child in its
>moduleReadyHandler.
>
>I'd be happy to look into the problem more if you have a simple project
>with a reproducible scenario.
>
>
>-Darrell
>
>
>
>On Mon, Nov 11, 2013 at 11:26 PM, Devesh Mishra
><De...@mastek.com>wrote:
>
>> Hi Darrell,
>>
>> I am using a moduleloader to load module. You can find the code snippet
>> below. I am using moduleLoader.loadModule() method, not using
>>IModule.load()
>>
>> private function loadModule(moduleLoader:ModuleLoader):void
>> {
>>         moduleLoader.unloadModule();
>>
>> moduleLoader.addEventListener(ModuleEvent.READY,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(ModuleEvent.ERROR,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(ModuleEvent.SETUP,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler);
>>
>> moduleLoader.addEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler);
>>
>>
>>moduleLoader.addEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler);
>>         moduleLoader.loadModule(_moduleUrl);
>> }
>>
>> private function onModuleLoadComplete(child:DisplayObject):void
>> {
>>         _moduleLoader.addChild(child as DisplayObject);
>> }
>>
>> -----Original Message-----
>> From: Darrell Loverin [mailto:darrell.loverin@gmail.com]
>> Sent: 11 November 2013 19:24
>> To: users@flex.apache.org
>> Subject: Re: One of the parameters is invalid while loading a module
>>
>> Setting -isolate-styles=false is not recommended when using Spark
>> components. Verify that your calls to IModule.load() are being passed a
>> module factory as the fourth parameter.
>>
>>
>> -Darrell Loverin
>>
>>
>> On Mon, Nov 11, 2013 at 3:15 AM, Devesh Mishra <Devesh.Mishra@mastek.com
>> >wrote:
>>
>> > Hi,
>> >
>> > I have lots of mxml modules (which is a combination of mxml & spark
>> > controls) in my application and the way i am opening these mxml
>>modules
>> is
>> > common in a popup window.
>> >
>> > It's very strange to see that i am getting this error with only one
>> > module. This issue is not related to a specific component.
>> >
>> > As it shows in error stack, i have removed panel from module, then it
>> > start throwing same error with some other components.
>> >
>> > -----Original Message-----
>> > From: Alex Harui [mailto:aharui@adobe.com]
>> > Sent: 11 November 2013 11:30
>> > To: Devesh Mishra; users@flex.apache.org
>> > Subject: Re: One of the parameters is invalid while loading a module
>> >
>> > Some folks on the forum said it worked for them.
>> >
>> > This error stack usually means an invalid value (usually NaN) is being
>> > passed to drawRect.  But a breakpoint on PanelAccImpl and see if you
>>can
>> > figure out why it is being passed a bad value.
>> >
>> > -Alex
>> >
>> > On 11/10/13 8:57 PM, "Devesh Mishra" <De...@mastek.com> wrote:
>> >
>> > >Hi,
>> > >
>> > >I have tried that suggestion which is given in forum and it's working
>> for
>> > >me. I am getting below error stack.
>> > >
>> > >Just want to validate whether given suggestion is valid or not.
>> > >
>> > >ArgumentError: Error #2004: One of the parameters is invalid.
>> > >       at flash.display::Graphics/drawRect()
>> > >       at
>> >
>>
>>>spark.accessibility::PanelAccImpl/eventHandler()[E:\dev\4.x\frameworks\p
>>>ro
>> > >jects\spark\src\spark\accessibility\PanelAccImpl.as:361]
>> > >       at flash.events::EventDispatcher/dispatchEventFunction()
>> > >       at flash.events::EventDispatcher/dispatchEvent()
>> > >       at
>> >
>>
>>>mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\fram
>>>ew
>> > >ork\src\mx\core\UIComponent.as:12528]
>> > >       at
>> >
>>
>>>mx.core::UIComponent/dispatchResizeEvent()[E:\dev\4.x\frameworks\project
>>>s\
>> > >framework\src\mx\core\UIComponent.as:9844]
>> > >       at
>> >
>>
>>>mx.core::UIComponent/setActualSize()[E:\dev\4.x\frameworks\projects\fram
>>>ew
>> > >ork\src\mx\core\UIComponent.as:9358]
>> > >       at
>> >
>>
>>>mx.containers.utilityClasses::Flex$/flexChildHeightsProportionally()[E:\
>>>de
>> >
>>
>>>v\4.x\frameworks\projects\framework\src\mx\containers\utilityClasses\Fle
>>>x.
>> > >as:250]
>> > >       at
>> >
>>
>>>mx.containers.utilityClasses::BoxLayout/updateDisplayList()[E:\dev\4.x\f
>>>ra
>> >
>>
>>>meworks\projects\framework\src\mx\containers\utilityClasses\BoxLayout.as
>>>:2
>> > >61]
>> > >       at
>> >
>>
>>>mx.containers::Box/updateDisplayList()[E:\dev\4.x\frameworks\projects\fr
>>>am
>> > >ework\src\mx\containers\Box.as:413]
>> > >       at
>> >
>>
>>>mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\project
>>>s\
>> > >framework\src\mx\core\UIComponent.as:8709]
>> > >       at
>> >
>>
>>>mx.core::Container/validateDisplayList()[E:\dev\4.x\frameworks\projects\
>>>fr
>> > >amework\src\mx\core\Container.as:3296]
>> > >       at
>> >
>>
>>>mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projec
>>>ts
>> > >\framework\src\mx\managers\LayoutManager.as:932]
>> > >       at
>> >
>>
>>>mx.core::UIComponent/validateNow()[E:\dev\4.x\frameworks\projects\framew
>>>or
>> > >k\src\mx\core\UIComponent.as:7792]
>> > >       at
>> >
>>
>>>mx.managers::PopUpManagerImpl/centerPopUp()[E:\dev\4.x\frameworks\projec
>>>ts
>> > >\framework\src\mx\managers\PopUpManagerImpl.as:489]
>> > >       at
>> >
>>
>>>mx.managers::PopUpManager$/centerPopUp()[E:\dev\4.x\frameworks\projects\
>>>fr
>> > >amework\src\mx\managers\PopUpManager.as:213]
>> > >       at flash.events::EventDispatcher/dispatchEventFunction()
>> > >       at flash.events::EventDispatcher/dispatchEvent()
>> > >       at
>> >
>>
>>>mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\fram
>>>ew
>> > >ork\src\mx\core\UIComponent.as:12528]
>> > >       at
>> >
>>
>>>mx.modules::ModuleLoader/moduleReadyHandler()[E:\dev\4.x\frameworks\proj
>>>ec
>> > >ts\framework\src\mx\modules\ModuleLoader.as:462]
>> > >       at flash.events::EventDispatcher/dispatchEventFunction()
>> > >       at flash.events::EventDispatcher/dispatchEvent()
>> > >       at
>> >
>>
>>>ModuleInfoProxy/moduleEventHandler()[E:\dev\4.x\frameworks\projects\fram
>>>ew
>> > >ork\src\mx\modules\ModuleManager.as:1168]
>> > >       at flash.events::EventDispatcher/dispatchEventFunction()
>> > >       at flash.events::EventDispatcher/dispatchEvent()
>> > >       at
>> >
>>
>>>ModuleInfo/readyHandler()[E:\dev\4.x\frameworks\projects\framework\src\m
>>>x\
>> > >modules\ModuleManager.as:812]
>> > >       at flash.events::EventDispatcher/dispatchEventFunction()
>> > >       at flash.events::EventDispatcher/dispatchEvent()
>> > >       at
>> >
>>
>>>mx.core::FlexModuleFactory/update()[E:\dev\4.x\frameworks\projects\frame
>>>wo
>> > >rk\src\mx\core\FlexModuleFactory.as:433]
>> > >       at
>> >
>>
>>>mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\4.x\frameworks\proje
>>>ct
>> > >s\framework\src\mx\core\FlexModuleFactory.as:582]
>> > >       at
>> >
>>
>>>mx.core::FlexModuleFactory/docFrameListener()[E:\dev\4.x\frameworks\proj
>>>ec
>> > >ts\framework\src\mx\core\FlexModuleFactory.as:126]
>> > >
>> > >-----Original Message-----
>> > >From: Alex Harui [mailto:aharui@adobe.com]
>> > >Sent: 08 November 2013 22:49
>> > >To: users@flex.apache.org
>> > >Subject: Re: One of the parameters is invalid while loading a module
>> > >
>> > >What is the error message and call stack?  Did you try the workaround
>> > >suggested in the forum thread?
>> > >
>> > >On 11/8/13 1:26 AM, "Devesh Mishra" <De...@mastek.com> wrote:
>> > >
>> > >>Hi,
>> > >>I am facing the same issue which has been reported in the given URL
>> > >>(http://forums.adobe.com/message/2783233)
>> > >>In this post, someone mentioned that this issue is coming because of
>> > >>different implementation of StyleManager in Flex 3 & Flex 4.
>> > >>Need confirmation for the same.
>> > >>MASTEK LTD.
>> > >>In the US, we're called MAJESCOMASTEK
>> > >>
>> >
>>
>>>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>~~
>> > >>~
>> > >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> > >>Opinions expressed in this e-mail are those of the individual and
>>not
>> > >>that of Mastek Limited, unless specifically indicated to that
>>effect.
>> > >>Mastek Limited does not accept any responsibility or liability for
>>it.
>> > >>This e-mail and attachments (if any) transmitted with it are
>> confidential
>> > >>and/or privileged and solely for the use of the intended person or
>> entity
>> > >>to which it is addressed. Any review, re-transmission,
>>dissemination or
>> > >>other use of or taking of any action in reliance upon this
>>information
>> by
>> > >>persons or entities other than the intended recipient is prohibited.
>> This
>> > >>e-mail and its attachments have been scanned for the presence of
>> computer
>> > >>viruses. It is the responsibility of the recipient to run the virus
>> check
>> > >>on e-mails and attachments before opening them. If you have received
>> this
>> > >>e-mail in error, kindly delete this e-mail from desktop and server.
>> >
>>
>>>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>~~
>> > >>~
>> > >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> > >
>> > >MASTEK LTD.
>> > >In the US, we're called MAJESCOMASTEK
>> > >
>> >
>>
>>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>~~
>> > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> > >Opinions expressed in this e-mail are those of the individual and not
>> > >that of Mastek Limited, unless specifically indicated to that effect.
>> > >Mastek Limited does not accept any responsibility or liability for
>>it.
>> > >This e-mail and attachments (if any) transmitted with it are
>> confidential
>> > >and/or privileged and solely for the use of the intended person or
>> entity
>> > >to which it is addressed. Any review, re-transmission, dissemination
>>or
>> > >other use of or taking of any action in reliance upon this
>>information
>> by
>> > >persons or entities other than the intended recipient is prohibited.
>> This
>> > >e-mail and its attachments have been scanned for the presence of
>> computer
>> > >viruses. It is the responsibility of the recipient to run the virus
>> check
>> > >on e-mails and attachments before opening them. If you have received
>> this
>> > >e-mail in error, kindly delete this e-mail from desktop and server.
>> >
>>
>>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>~~
>> > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> > >
>> >
>> > MASTEK LTD.
>> > In the US, we're called MAJESCOMASTEK
>> >
>> >
>> >
>>
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> > Opinions expressed in this e-mail are those of the individual and not
>> that
>> > of Mastek Limited, unless specifically indicated to that effect.
>>Mastek
>> > Limited does not accept any responsibility or liability for it. This
>> e-mail
>> > and attachments (if any) transmitted with it are confidential and/or
>> > privileged and solely for the use of the intended person or entity to
>> which
>> > it is addressed. Any review, re-transmission, dissemination or other
>>use
>> of
>> > or taking of any action in reliance upon this information by persons
>>or
>> > entities other than the intended recipient is prohibited. This e-mail
>>and
>> > its attachments have been scanned for the presence of computer
>>viruses.
>> It
>> > is the responsibility of the recipient to run the virus check on
>>e-mails
>> > and attachments before opening them. If you have received this e-mail
>>in
>> > error, kindly delete this e-mail from desktop and server.
>> >
>> >
>>
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> >
>> >
>> MASTEK LTD.
>> In the US, we're called MAJESCOMASTEK
>>
>>
>>
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Opinions expressed in this e-mail are those of the individual and not
>>that
>> of Mastek Limited, unless specifically indicated to that effect. Mastek
>> Limited does not accept any responsibility or liability for it. This
>>e-mail
>> and attachments (if any) transmitted with it are confidential and/or
>> privileged and solely for the use of the intended person or entity to
>>which
>> it is addressed. Any review, re-transmission, dissemination or other
>>use of
>> or taking of any action in reliance upon this information by persons or
>> entities other than the intended recipient is prohibited. This e-mail
>>and
>> its attachments have been scanned for the presence of computer viruses.
>>It
>> is the responsibility of the recipient to run the virus check on e-mails
>> and attachments before opening them. If you have received this e-mail in
>> error, kindly delete this e-mail from desktop and server.
>>
>>
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>
>MASTEK LTD.
>In the US, we're called MAJESCOMASTEK
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Opinions expressed in this e-mail are those of the individual and not
>that of Mastek Limited, unless specifically indicated to that effect.
>Mastek Limited does not accept any responsibility or liability for it.
>This e-mail and attachments (if any) transmitted with it are confidential
>and/or privileged and solely for the use of the intended person or entity
>to which it is addressed. Any review, re-transmission, dissemination or
>other use of or taking of any action in reliance upon this information by
>persons or entities other than the intended recipient is prohibited. This
>e-mail and its attachments have been scanned for the presence of computer
>viruses. It is the responsibility of the recipient to run the virus check
>on e-mails and attachments before opening them. If you have received this
>e-mail in error, kindly delete this e-mail from desktop and server.
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


RE: One of the parameters is invalid while loading a module

Posted by Devesh Mishra <De...@mastek.com>.
Hi Darrel,

Good to listen from you. I have attached my action script sample class file in this email. Hope it'll give you a more clarification.

Here are my explanation regarding your queries.

1) I have written PopUpManager.centerPopUp() on ready event, because I want to display my popup only when my module get loads completely. Anyways i have already tried with something else i.e. I have tried, just after the initialization of popup window. But still getting same issue.

2) Yes, I am using moduleLoader.addChild(child), after ready event. You'll get more clarification after looking into attached file.

Note: Again repeating, this is happening with only one module. Apart from that, I have lots of module in my application and all are working fine. Module where I am getting this issue, it contains only one <mx:Module> and inside module tag, there is one <s:VGroup width="100%" height="100%" gap="10">

That's it inside my module where I am getting error.


-----Original Message-----
From: Darrell Loverin [mailto:darrell.loverin@gmail.com]
Sent: 12 November 2013 21:15
To: users@flex.apache.org
Subject: Re: One of the parameters is invalid while loading a module

A couple of things seem odd to me:

1) Why is PopUpManager:centerPopUp() being called on a "ready" event?

  at mx.managers::PopUpManager$/centerPopUp()[E:\dev\4.x\
frameworks\projects\framework\src\mx\managers\PopUpManager.as:213]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\
frameworks\projects\framework\src\mx\core\UIComponent.as:12528]
        at mx.modules::ModuleLoader/moduleReadyHandler()[E:\dev\4.
x\frameworks\projects\framework\src\mx\modules\ModuleLoader.as:462]

2) Are you loading the module using _moduleLoader.addChild(child as
DisplayObject)? The moduleLoader already adds the module as a child in its
moduleReadyHandler.

I'd be happy to look into the problem more if you have a simple project
with a reproducible scenario.


-Darrell



On Mon, Nov 11, 2013 at 11:26 PM, Devesh Mishra <De...@mastek.com>wrote:

> Hi Darrell,
>
> I am using a moduleloader to load module. You can find the code snippet
> below. I am using moduleLoader.loadModule() method, not using IModule.load()
>
> private function loadModule(moduleLoader:ModuleLoader):void
> {
>         moduleLoader.unloadModule();
>
> moduleLoader.addEventListener(ModuleEvent.READY,onModuleLoadHandler);
>
> moduleLoader.addEventListener(ModuleEvent.ERROR,onModuleLoadHandler);
>
> moduleLoader.addEventListener(ModuleEvent.SETUP,onModuleLoadHandler);
>
> moduleLoader.addEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler);
>
> moduleLoader.addEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler);
>
> moduleLoader.addEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler);
>         moduleLoader.loadModule(_moduleUrl);
> }
>
> private function onModuleLoadComplete(child:DisplayObject):void
> {
>         _moduleLoader.addChild(child as DisplayObject);
> }
>
> -----Original Message-----
> From: Darrell Loverin [mailto:darrell.loverin@gmail.com]
> Sent: 11 November 2013 19:24
> To: users@flex.apache.org
> Subject: Re: One of the parameters is invalid while loading a module
>
> Setting -isolate-styles=false is not recommended when using Spark
> components. Verify that your calls to IModule.load() are being passed a
> module factory as the fourth parameter.
>
>
> -Darrell Loverin
>
>
> On Mon, Nov 11, 2013 at 3:15 AM, Devesh Mishra <Devesh.Mishra@mastek.com
> >wrote:
>
> > Hi,
> >
> > I have lots of mxml modules (which is a combination of mxml & spark
> > controls) in my application and the way i am opening these mxml modules
> is
> > common in a popup window.
> >
> > It's very strange to see that i am getting this error with only one
> > module. This issue is not related to a specific component.
> >
> > As it shows in error stack, i have removed panel from module, then it
> > start throwing same error with some other components.
> >
> > -----Original Message-----
> > From: Alex Harui [mailto:aharui@adobe.com]
> > Sent: 11 November 2013 11:30
> > To: Devesh Mishra; users@flex.apache.org
> > Subject: Re: One of the parameters is invalid while loading a module
> >
> > Some folks on the forum said it worked for them.
> >
> > This error stack usually means an invalid value (usually NaN) is being
> > passed to drawRect.  But a breakpoint on PanelAccImpl and see if you can
> > figure out why it is being passed a bad value.
> >
> > -Alex
> >
> > On 11/10/13 8:57 PM, "Devesh Mishra" <De...@mastek.com> wrote:
> >
> > >Hi,
> > >
> > >I have tried that suggestion which is given in forum and it's working
> for
> > >me. I am getting below error stack.
> > >
> > >Just want to validate whether given suggestion is valid or not.
> > >
> > >ArgumentError: Error #2004: One of the parameters is invalid.
> > >       at flash.display::Graphics/drawRect()
> > >       at
> >
> >spark.accessibility::PanelAccImpl/eventHandler()[E:\dev\4.x\frameworks\pro
> > >jects\spark\src\spark\accessibility\PanelAccImpl.as:361]
> > >       at flash.events::EventDispatcher/dispatchEventFunction()
> > >       at flash.events::EventDispatcher/dispatchEvent()
> > >       at
> >
> >mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framew
> > >ork\src\mx\core\UIComponent.as:12528]
> > >       at
> >
> >mx.core::UIComponent/dispatchResizeEvent()[E:\dev\4.x\frameworks\projects\
> > >framework\src\mx\core\UIComponent.as:9844]
> > >       at
> >
> >mx.core::UIComponent/setActualSize()[E:\dev\4.x\frameworks\projects\framew
> > >ork\src\mx\core\UIComponent.as:9358]
> > >       at
> >
> >mx.containers.utilityClasses::Flex$/flexChildHeightsProportionally()[E:\de
> >
> >v\4.x\frameworks\projects\framework\src\mx\containers\utilityClasses\Flex.
> > >as:250]
> > >       at
> >
> >mx.containers.utilityClasses::BoxLayout/updateDisplayList()[E:\dev\4.x\fra
> >
> >meworks\projects\framework\src\mx\containers\utilityClasses\BoxLayout.as:2
> > >61]
> > >       at
> >
> >mx.containers::Box/updateDisplayList()[E:\dev\4.x\frameworks\projects\fram
> > >ework\src\mx\containers\Box.as:413]
> > >       at
> >
> >mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\
> > >framework\src\mx\core\UIComponent.as:8709]
> > >       at
> >
> >mx.core::Container/validateDisplayList()[E:\dev\4.x\frameworks\projects\fr
> > >amework\src\mx\core\Container.as:3296]
> > >       at
> >
> >mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects
> > >\framework\src\mx\managers\LayoutManager.as:932]
> > >       at
> >
> >mx.core::UIComponent/validateNow()[E:\dev\4.x\frameworks\projects\framewor
> > >k\src\mx\core\UIComponent.as:7792]
> > >       at
> >
> >mx.managers::PopUpManagerImpl/centerPopUp()[E:\dev\4.x\frameworks\projects
> > >\framework\src\mx\managers\PopUpManagerImpl.as:489]
> > >       at
> >
> >mx.managers::PopUpManager$/centerPopUp()[E:\dev\4.x\frameworks\projects\fr
> > >amework\src\mx\managers\PopUpManager.as:213]
> > >       at flash.events::EventDispatcher/dispatchEventFunction()
> > >       at flash.events::EventDispatcher/dispatchEvent()
> > >       at
> >
> >mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framew
> > >ork\src\mx\core\UIComponent.as:12528]
> > >       at
> >
> >mx.modules::ModuleLoader/moduleReadyHandler()[E:\dev\4.x\frameworks\projec
> > >ts\framework\src\mx\modules\ModuleLoader.as:462]
> > >       at flash.events::EventDispatcher/dispatchEventFunction()
> > >       at flash.events::EventDispatcher/dispatchEvent()
> > >       at
> >
> >ModuleInfoProxy/moduleEventHandler()[E:\dev\4.x\frameworks\projects\framew
> > >ork\src\mx\modules\ModuleManager.as:1168]
> > >       at flash.events::EventDispatcher/dispatchEventFunction()
> > >       at flash.events::EventDispatcher/dispatchEvent()
> > >       at
> >
> >ModuleInfo/readyHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\
> > >modules\ModuleManager.as:812]
> > >       at flash.events::EventDispatcher/dispatchEventFunction()
> > >       at flash.events::EventDispatcher/dispatchEvent()
> > >       at
> >
> >mx.core::FlexModuleFactory/update()[E:\dev\4.x\frameworks\projects\framewo
> > >rk\src\mx\core\FlexModuleFactory.as:433]
> > >       at
> >
> >mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\4.x\frameworks\project
> > >s\framework\src\mx\core\FlexModuleFactory.as:582]
> > >       at
> >
> >mx.core::FlexModuleFactory/docFrameListener()[E:\dev\4.x\frameworks\projec
> > >ts\framework\src\mx\core\FlexModuleFactory.as:126]
> > >
> > >-----Original Message-----
> > >From: Alex Harui [mailto:aharui@adobe.com]
> > >Sent: 08 November 2013 22:49
> > >To: users@flex.apache.org
> > >Subject: Re: One of the parameters is invalid while loading a module
> > >
> > >What is the error message and call stack?  Did you try the workaround
> > >suggested in the forum thread?
> > >
> > >On 11/8/13 1:26 AM, "Devesh Mishra" <De...@mastek.com> wrote:
> > >
> > >>Hi,
> > >>I am facing the same issue which has been reported in the given URL
> > >>(http://forums.adobe.com/message/2783233)
> > >>In this post, someone mentioned that this issue is coming because of
> > >>different implementation of StyleManager in Flex 3 & Flex 4.
> > >>Need confirmation for the same.
> > >>MASTEK LTD.
> > >>In the US, we're called MAJESCOMASTEK
> > >>
> >
> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >>~
> > >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >>Opinions expressed in this e-mail are those of the individual and not
> > >>that of Mastek Limited, unless specifically indicated to that effect.
> > >>Mastek Limited does not accept any responsibility or liability for it.
> > >>This e-mail and attachments (if any) transmitted with it are
> confidential
> > >>and/or privileged and solely for the use of the intended person or
> entity
> > >>to which it is addressed. Any review, re-transmission, dissemination or
> > >>other use of or taking of any action in reliance upon this information
> by
> > >>persons or entities other than the intended recipient is prohibited.
> This
> > >>e-mail and its attachments have been scanned for the presence of
> computer
> > >>viruses. It is the responsibility of the recipient to run the virus
> check
> > >>on e-mails and attachments before opening them. If you have received
> this
> > >>e-mail in error, kindly delete this e-mail from desktop and server.
> >
> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >>~
> > >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >
> > >MASTEK LTD.
> > >In the US, we're called MAJESCOMASTEK
> > >
> >
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >Opinions expressed in this e-mail are those of the individual and not
> > >that of Mastek Limited, unless specifically indicated to that effect.
> > >Mastek Limited does not accept any responsibility or liability for it.
> > >This e-mail and attachments (if any) transmitted with it are
> confidential
> > >and/or privileged and solely for the use of the intended person or
> entity
> > >to which it is addressed. Any review, re-transmission, dissemination or
> > >other use of or taking of any action in reliance upon this information
> by
> > >persons or entities other than the intended recipient is prohibited.
> This
> > >e-mail and its attachments have been scanned for the presence of
> computer
> > >viruses. It is the responsibility of the recipient to run the virus
> check
> > >on e-mails and attachments before opening them. If you have received
> this
> > >e-mail in error, kindly delete this e-mail from desktop and server.
> >
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >
> >
> > MASTEK LTD.
> > In the US, we're called MAJESCOMASTEK
> >
> >
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Opinions expressed in this e-mail are those of the individual and not
> that
> > of Mastek Limited, unless specifically indicated to that effect. Mastek
> > Limited does not accept any responsibility or liability for it. This
> e-mail
> > and attachments (if any) transmitted with it are confidential and/or
> > privileged and solely for the use of the intended person or entity to
> which
> > it is addressed. Any review, re-transmission, dissemination or other use
> of
> > or taking of any action in reliance upon this information by persons or
> > entities other than the intended recipient is prohibited. This e-mail and
> > its attachments have been scanned for the presence of computer viruses.
> It
> > is the responsibility of the recipient to run the virus check on e-mails
> > and attachments before opening them. If you have received this e-mail in
> > error, kindly delete this e-mail from desktop and server.
> >
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails
> and attachments before opening them. If you have received this e-mail in
> error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Re: One of the parameters is invalid while loading a module

Posted by Darrell Loverin <da...@gmail.com>.
A couple of things seem odd to me:

1) Why is PopUpManager:centerPopUp() being called on a "ready" event?

  at mx.managers::PopUpManager$/centerPopUp()[E:\dev\4.x\
frameworks\projects\framework\src\mx\managers\PopUpManager.as:213]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\
frameworks\projects\framework\src\mx\core\UIComponent.as:12528]
        at mx.modules::ModuleLoader/moduleReadyHandler()[E:\dev\4.
x\frameworks\projects\framework\src\mx\modules\ModuleLoader.as:462]

2) Are you loading the module using _moduleLoader.addChild(child as
DisplayObject)? The moduleLoader already adds the module as a child in its
moduleReadyHandler.

I'd be happy to look into the problem more if you have a simple project
with a reproducible scenario.


-Darrell



On Mon, Nov 11, 2013 at 11:26 PM, Devesh Mishra <De...@mastek.com>wrote:

> Hi Darrell,
>
> I am using a moduleloader to load module. You can find the code snippet
> below. I am using moduleLoader.loadModule() method, not using IModule.load()
>
> private function loadModule(moduleLoader:ModuleLoader):void
> {
>         moduleLoader.unloadModule();
>
> moduleLoader.addEventListener(ModuleEvent.READY,onModuleLoadHandler);
>
> moduleLoader.addEventListener(ModuleEvent.ERROR,onModuleLoadHandler);
>
> moduleLoader.addEventListener(ModuleEvent.SETUP,onModuleLoadHandler);
>
> moduleLoader.addEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler);
>
> moduleLoader.addEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler);
>
> moduleLoader.addEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler);
>         moduleLoader.loadModule(_moduleUrl);
> }
>
> private function onModuleLoadComplete(child:DisplayObject):void
> {
>         _moduleLoader.addChild(child as DisplayObject);
> }
>
> -----Original Message-----
> From: Darrell Loverin [mailto:darrell.loverin@gmail.com]
> Sent: 11 November 2013 19:24
> To: users@flex.apache.org
> Subject: Re: One of the parameters is invalid while loading a module
>
> Setting -isolate-styles=false is not recommended when using Spark
> components. Verify that your calls to IModule.load() are being passed a
> module factory as the fourth parameter.
>
>
> -Darrell Loverin
>
>
> On Mon, Nov 11, 2013 at 3:15 AM, Devesh Mishra <Devesh.Mishra@mastek.com
> >wrote:
>
> > Hi,
> >
> > I have lots of mxml modules (which is a combination of mxml & spark
> > controls) in my application and the way i am opening these mxml modules
> is
> > common in a popup window.
> >
> > It's very strange to see that i am getting this error with only one
> > module. This issue is not related to a specific component.
> >
> > As it shows in error stack, i have removed panel from module, then it
> > start throwing same error with some other components.
> >
> > -----Original Message-----
> > From: Alex Harui [mailto:aharui@adobe.com]
> > Sent: 11 November 2013 11:30
> > To: Devesh Mishra; users@flex.apache.org
> > Subject: Re: One of the parameters is invalid while loading a module
> >
> > Some folks on the forum said it worked for them.
> >
> > This error stack usually means an invalid value (usually NaN) is being
> > passed to drawRect.  But a breakpoint on PanelAccImpl and see if you can
> > figure out why it is being passed a bad value.
> >
> > -Alex
> >
> > On 11/10/13 8:57 PM, "Devesh Mishra" <De...@mastek.com> wrote:
> >
> > >Hi,
> > >
> > >I have tried that suggestion which is given in forum and it's working
> for
> > >me. I am getting below error stack.
> > >
> > >Just want to validate whether given suggestion is valid or not.
> > >
> > >ArgumentError: Error #2004: One of the parameters is invalid.
> > >       at flash.display::Graphics/drawRect()
> > >       at
> >
> >spark.accessibility::PanelAccImpl/eventHandler()[E:\dev\4.x\frameworks\pro
> > >jects\spark\src\spark\accessibility\PanelAccImpl.as:361]
> > >       at flash.events::EventDispatcher/dispatchEventFunction()
> > >       at flash.events::EventDispatcher/dispatchEvent()
> > >       at
> >
> >mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framew
> > >ork\src\mx\core\UIComponent.as:12528]
> > >       at
> >
> >mx.core::UIComponent/dispatchResizeEvent()[E:\dev\4.x\frameworks\projects\
> > >framework\src\mx\core\UIComponent.as:9844]
> > >       at
> >
> >mx.core::UIComponent/setActualSize()[E:\dev\4.x\frameworks\projects\framew
> > >ork\src\mx\core\UIComponent.as:9358]
> > >       at
> >
> >mx.containers.utilityClasses::Flex$/flexChildHeightsProportionally()[E:\de
> >
> >v\4.x\frameworks\projects\framework\src\mx\containers\utilityClasses\Flex.
> > >as:250]
> > >       at
> >
> >mx.containers.utilityClasses::BoxLayout/updateDisplayList()[E:\dev\4.x\fra
> >
> >meworks\projects\framework\src\mx\containers\utilityClasses\BoxLayout.as:2
> > >61]
> > >       at
> >
> >mx.containers::Box/updateDisplayList()[E:\dev\4.x\frameworks\projects\fram
> > >ework\src\mx\containers\Box.as:413]
> > >       at
> >
> >mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\
> > >framework\src\mx\core\UIComponent.as:8709]
> > >       at
> >
> >mx.core::Container/validateDisplayList()[E:\dev\4.x\frameworks\projects\fr
> > >amework\src\mx\core\Container.as:3296]
> > >       at
> >
> >mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects
> > >\framework\src\mx\managers\LayoutManager.as:932]
> > >       at
> >
> >mx.core::UIComponent/validateNow()[E:\dev\4.x\frameworks\projects\framewor
> > >k\src\mx\core\UIComponent.as:7792]
> > >       at
> >
> >mx.managers::PopUpManagerImpl/centerPopUp()[E:\dev\4.x\frameworks\projects
> > >\framework\src\mx\managers\PopUpManagerImpl.as:489]
> > >       at
> >
> >mx.managers::PopUpManager$/centerPopUp()[E:\dev\4.x\frameworks\projects\fr
> > >amework\src\mx\managers\PopUpManager.as:213]
> > >       at flash.events::EventDispatcher/dispatchEventFunction()
> > >       at flash.events::EventDispatcher/dispatchEvent()
> > >       at
> >
> >mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framew
> > >ork\src\mx\core\UIComponent.as:12528]
> > >       at
> >
> >mx.modules::ModuleLoader/moduleReadyHandler()[E:\dev\4.x\frameworks\projec
> > >ts\framework\src\mx\modules\ModuleLoader.as:462]
> > >       at flash.events::EventDispatcher/dispatchEventFunction()
> > >       at flash.events::EventDispatcher/dispatchEvent()
> > >       at
> >
> >ModuleInfoProxy/moduleEventHandler()[E:\dev\4.x\frameworks\projects\framew
> > >ork\src\mx\modules\ModuleManager.as:1168]
> > >       at flash.events::EventDispatcher/dispatchEventFunction()
> > >       at flash.events::EventDispatcher/dispatchEvent()
> > >       at
> >
> >ModuleInfo/readyHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\
> > >modules\ModuleManager.as:812]
> > >       at flash.events::EventDispatcher/dispatchEventFunction()
> > >       at flash.events::EventDispatcher/dispatchEvent()
> > >       at
> >
> >mx.core::FlexModuleFactory/update()[E:\dev\4.x\frameworks\projects\framewo
> > >rk\src\mx\core\FlexModuleFactory.as:433]
> > >       at
> >
> >mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\4.x\frameworks\project
> > >s\framework\src\mx\core\FlexModuleFactory.as:582]
> > >       at
> >
> >mx.core::FlexModuleFactory/docFrameListener()[E:\dev\4.x\frameworks\projec
> > >ts\framework\src\mx\core\FlexModuleFactory.as:126]
> > >
> > >-----Original Message-----
> > >From: Alex Harui [mailto:aharui@adobe.com]
> > >Sent: 08 November 2013 22:49
> > >To: users@flex.apache.org
> > >Subject: Re: One of the parameters is invalid while loading a module
> > >
> > >What is the error message and call stack?  Did you try the workaround
> > >suggested in the forum thread?
> > >
> > >On 11/8/13 1:26 AM, "Devesh Mishra" <De...@mastek.com> wrote:
> > >
> > >>Hi,
> > >>I am facing the same issue which has been reported in the given URL
> > >>(http://forums.adobe.com/message/2783233)
> > >>In this post, someone mentioned that this issue is coming because of
> > >>different implementation of StyleManager in Flex 3 & Flex 4.
> > >>Need confirmation for the same.
> > >>MASTEK LTD.
> > >>In the US, we're called MAJESCOMASTEK
> > >>
> >
> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >>~
> > >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >>Opinions expressed in this e-mail are those of the individual and not
> > >>that of Mastek Limited, unless specifically indicated to that effect.
> > >>Mastek Limited does not accept any responsibility or liability for it.
> > >>This e-mail and attachments (if any) transmitted with it are
> confidential
> > >>and/or privileged and solely for the use of the intended person or
> entity
> > >>to which it is addressed. Any review, re-transmission, dissemination or
> > >>other use of or taking of any action in reliance upon this information
> by
> > >>persons or entities other than the intended recipient is prohibited.
> This
> > >>e-mail and its attachments have been scanned for the presence of
> computer
> > >>viruses. It is the responsibility of the recipient to run the virus
> check
> > >>on e-mails and attachments before opening them. If you have received
> this
> > >>e-mail in error, kindly delete this e-mail from desktop and server.
> >
> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >>~
> > >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >
> > >MASTEK LTD.
> > >In the US, we're called MAJESCOMASTEK
> > >
> >
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >Opinions expressed in this e-mail are those of the individual and not
> > >that of Mastek Limited, unless specifically indicated to that effect.
> > >Mastek Limited does not accept any responsibility or liability for it.
> > >This e-mail and attachments (if any) transmitted with it are
> confidential
> > >and/or privileged and solely for the use of the intended person or
> entity
> > >to which it is addressed. Any review, re-transmission, dissemination or
> > >other use of or taking of any action in reliance upon this information
> by
> > >persons or entities other than the intended recipient is prohibited.
> This
> > >e-mail and its attachments have been scanned for the presence of
> computer
> > >viruses. It is the responsibility of the recipient to run the virus
> check
> > >on e-mails and attachments before opening them. If you have received
> this
> > >e-mail in error, kindly delete this e-mail from desktop and server.
> >
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > >
> >
> > MASTEK LTD.
> > In the US, we're called MAJESCOMASTEK
> >
> >
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Opinions expressed in this e-mail are those of the individual and not
> that
> > of Mastek Limited, unless specifically indicated to that effect. Mastek
> > Limited does not accept any responsibility or liability for it. This
> e-mail
> > and attachments (if any) transmitted with it are confidential and/or
> > privileged and solely for the use of the intended person or entity to
> which
> > it is addressed. Any review, re-transmission, dissemination or other use
> of
> > or taking of any action in reliance upon this information by persons or
> > entities other than the intended recipient is prohibited. This e-mail and
> > its attachments have been scanned for the presence of computer viruses.
> It
> > is the responsibility of the recipient to run the virus check on e-mails
> > and attachments before opening them. If you have received this e-mail in
> > error, kindly delete this e-mail from desktop and server.
> >
> >
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails
> and attachments before opening them. If you have received this e-mail in
> error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>

RE: One of the parameters is invalid while loading a module

Posted by Devesh Mishra <De...@mastek.com>.
Hi Darrell,

I am using a moduleloader to load module. You can find the code snippet below. I am using moduleLoader.loadModule() method, not using IModule.load()

private function loadModule(moduleLoader:ModuleLoader):void
{
	moduleLoader.unloadModule();
	moduleLoader.addEventListener(ModuleEvent.READY,onModuleLoadHandler);
	moduleLoader.addEventListener(ModuleEvent.ERROR,onModuleLoadHandler);
	moduleLoader.addEventListener(ModuleEvent.SETUP,onModuleLoadHandler);
	moduleLoader.addEventListener(ModuleEvent.PROGRESS,onModuleLoadHandler);
	moduleLoader.addEventListener(ModuleEvent.UNLOAD,onModuleLoadHandler);
	moduleLoader.addEventListener(IOErrorEvent.IO_ERROR,onModuleLoadHandler);
	moduleLoader.loadModule(_moduleUrl);
}

private function onModuleLoadComplete(child:DisplayObject):void
{
	_moduleLoader.addChild(child as DisplayObject);
}

-----Original Message-----
From: Darrell Loverin [mailto:darrell.loverin@gmail.com] 
Sent: 11 November 2013 19:24
To: users@flex.apache.org
Subject: Re: One of the parameters is invalid while loading a module

Setting -isolate-styles=false is not recommended when using Spark
components. Verify that your calls to IModule.load() are being passed a
module factory as the fourth parameter.


-Darrell Loverin


On Mon, Nov 11, 2013 at 3:15 AM, Devesh Mishra <De...@mastek.com>wrote:

> Hi,
>
> I have lots of mxml modules (which is a combination of mxml & spark
> controls) in my application and the way i am opening these mxml modules is
> common in a popup window.
>
> It's very strange to see that i am getting this error with only one
> module. This issue is not related to a specific component.
>
> As it shows in error stack, i have removed panel from module, then it
> start throwing same error with some other components.
>
> -----Original Message-----
> From: Alex Harui [mailto:aharui@adobe.com]
> Sent: 11 November 2013 11:30
> To: Devesh Mishra; users@flex.apache.org
> Subject: Re: One of the parameters is invalid while loading a module
>
> Some folks on the forum said it worked for them.
>
> This error stack usually means an invalid value (usually NaN) is being
> passed to drawRect.  But a breakpoint on PanelAccImpl and see if you can
> figure out why it is being passed a bad value.
>
> -Alex
>
> On 11/10/13 8:57 PM, "Devesh Mishra" <De...@mastek.com> wrote:
>
> >Hi,
> >
> >I have tried that suggestion which is given in forum and it's working for
> >me. I am getting below error stack.
> >
> >Just want to validate whether given suggestion is valid or not.
> >
> >ArgumentError: Error #2004: One of the parameters is invalid.
> >       at flash.display::Graphics/drawRect()
> >       at
> >spark.accessibility::PanelAccImpl/eventHandler()[E:\dev\4.x\frameworks\pro
> >jects\spark\src\spark\accessibility\PanelAccImpl.as:361]
> >       at flash.events::EventDispatcher/dispatchEventFunction()
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at
> >mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framew
> >ork\src\mx\core\UIComponent.as:12528]
> >       at
> >mx.core::UIComponent/dispatchResizeEvent()[E:\dev\4.x\frameworks\projects\
> >framework\src\mx\core\UIComponent.as:9844]
> >       at
> >mx.core::UIComponent/setActualSize()[E:\dev\4.x\frameworks\projects\framew
> >ork\src\mx\core\UIComponent.as:9358]
> >       at
> >mx.containers.utilityClasses::Flex$/flexChildHeightsProportionally()[E:\de
> >v\4.x\frameworks\projects\framework\src\mx\containers\utilityClasses\Flex.
> >as:250]
> >       at
> >mx.containers.utilityClasses::BoxLayout/updateDisplayList()[E:\dev\4.x\fra
> >meworks\projects\framework\src\mx\containers\utilityClasses\BoxLayout.as:2
> >61]
> >       at
> >mx.containers::Box/updateDisplayList()[E:\dev\4.x\frameworks\projects\fram
> >ework\src\mx\containers\Box.as:413]
> >       at
> >mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\
> >framework\src\mx\core\UIComponent.as:8709]
> >       at
> >mx.core::Container/validateDisplayList()[E:\dev\4.x\frameworks\projects\fr
> >amework\src\mx\core\Container.as:3296]
> >       at
> >mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects
> >\framework\src\mx\managers\LayoutManager.as:932]
> >       at
> >mx.core::UIComponent/validateNow()[E:\dev\4.x\frameworks\projects\framewor
> >k\src\mx\core\UIComponent.as:7792]
> >       at
> >mx.managers::PopUpManagerImpl/centerPopUp()[E:\dev\4.x\frameworks\projects
> >\framework\src\mx\managers\PopUpManagerImpl.as:489]
> >       at
> >mx.managers::PopUpManager$/centerPopUp()[E:\dev\4.x\frameworks\projects\fr
> >amework\src\mx\managers\PopUpManager.as:213]
> >       at flash.events::EventDispatcher/dispatchEventFunction()
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at
> >mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framew
> >ork\src\mx\core\UIComponent.as:12528]
> >       at
> >mx.modules::ModuleLoader/moduleReadyHandler()[E:\dev\4.x\frameworks\projec
> >ts\framework\src\mx\modules\ModuleLoader.as:462]
> >       at flash.events::EventDispatcher/dispatchEventFunction()
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at
> >ModuleInfoProxy/moduleEventHandler()[E:\dev\4.x\frameworks\projects\framew
> >ork\src\mx\modules\ModuleManager.as:1168]
> >       at flash.events::EventDispatcher/dispatchEventFunction()
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at
> >ModuleInfo/readyHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\
> >modules\ModuleManager.as:812]
> >       at flash.events::EventDispatcher/dispatchEventFunction()
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at
> >mx.core::FlexModuleFactory/update()[E:\dev\4.x\frameworks\projects\framewo
> >rk\src\mx\core\FlexModuleFactory.as:433]
> >       at
> >mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\4.x\frameworks\project
> >s\framework\src\mx\core\FlexModuleFactory.as:582]
> >       at
> >mx.core::FlexModuleFactory/docFrameListener()[E:\dev\4.x\frameworks\projec
> >ts\framework\src\mx\core\FlexModuleFactory.as:126]
> >
> >-----Original Message-----
> >From: Alex Harui [mailto:aharui@adobe.com]
> >Sent: 08 November 2013 22:49
> >To: users@flex.apache.org
> >Subject: Re: One of the parameters is invalid while loading a module
> >
> >What is the error message and call stack?  Did you try the workaround
> >suggested in the forum thread?
> >
> >On 11/8/13 1:26 AM, "Devesh Mishra" <De...@mastek.com> wrote:
> >
> >>Hi,
> >>I am facing the same issue which has been reported in the given URL
> >>(http://forums.adobe.com/message/2783233)
> >>In this post, someone mentioned that this issue is coming because of
> >>different implementation of StyleManager in Flex 3 & Flex 4.
> >>Need confirmation for the same.
> >>MASTEK LTD.
> >>In the US, we're called MAJESCOMASTEK
> >>
> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>~
> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>Opinions expressed in this e-mail are those of the individual and not
> >>that of Mastek Limited, unless specifically indicated to that effect.
> >>Mastek Limited does not accept any responsibility or liability for it.
> >>This e-mail and attachments (if any) transmitted with it are confidential
> >>and/or privileged and solely for the use of the intended person or entity
> >>to which it is addressed. Any review, re-transmission, dissemination or
> >>other use of or taking of any action in reliance upon this information by
> >>persons or entities other than the intended recipient is prohibited. This
> >>e-mail and its attachments have been scanned for the presence of computer
> >>viruses. It is the responsibility of the recipient to run the virus check
> >>on e-mails and attachments before opening them. If you have received this
> >>e-mail in error, kindly delete this e-mail from desktop and server.
> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>~
> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >MASTEK LTD.
> >In the US, we're called MAJESCOMASTEK
> >
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >Opinions expressed in this e-mail are those of the individual and not
> >that of Mastek Limited, unless specifically indicated to that effect.
> >Mastek Limited does not accept any responsibility or liability for it.
> >This e-mail and attachments (if any) transmitted with it are confidential
> >and/or privileged and solely for the use of the intended person or entity
> >to which it is addressed. Any review, re-transmission, dissemination or
> >other use of or taking of any action in reliance upon this information by
> >persons or entities other than the intended recipient is prohibited. This
> >e-mail and its attachments have been scanned for the presence of computer
> >viruses. It is the responsibility of the recipient to run the virus check
> >on e-mails and attachments before opening them. If you have received this
> >e-mail in error, kindly delete this e-mail from desktop and server.
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
>
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails
> and attachments before opening them. If you have received this e-mail in
> error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Re: One of the parameters is invalid while loading a module

Posted by Darrell Loverin <da...@gmail.com>.
Setting -isolate-styles=false is not recommended when using Spark
components. Verify that your calls to IModule.load() are being passed a
module factory as the fourth parameter.


-Darrell Loverin


On Mon, Nov 11, 2013 at 3:15 AM, Devesh Mishra <De...@mastek.com>wrote:

> Hi,
>
> I have lots of mxml modules (which is a combination of mxml & spark
> controls) in my application and the way i am opening these mxml modules is
> common in a popup window.
>
> It's very strange to see that i am getting this error with only one
> module. This issue is not related to a specific component.
>
> As it shows in error stack, i have removed panel from module, then it
> start throwing same error with some other components.
>
> -----Original Message-----
> From: Alex Harui [mailto:aharui@adobe.com]
> Sent: 11 November 2013 11:30
> To: Devesh Mishra; users@flex.apache.org
> Subject: Re: One of the parameters is invalid while loading a module
>
> Some folks on the forum said it worked for them.
>
> This error stack usually means an invalid value (usually NaN) is being
> passed to drawRect.  But a breakpoint on PanelAccImpl and see if you can
> figure out why it is being passed a bad value.
>
> -Alex
>
> On 11/10/13 8:57 PM, "Devesh Mishra" <De...@mastek.com> wrote:
>
> >Hi,
> >
> >I have tried that suggestion which is given in forum and it's working for
> >me. I am getting below error stack.
> >
> >Just want to validate whether given suggestion is valid or not.
> >
> >ArgumentError: Error #2004: One of the parameters is invalid.
> >       at flash.display::Graphics/drawRect()
> >       at
> >spark.accessibility::PanelAccImpl/eventHandler()[E:\dev\4.x\frameworks\pro
> >jects\spark\src\spark\accessibility\PanelAccImpl.as:361]
> >       at flash.events::EventDispatcher/dispatchEventFunction()
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at
> >mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framew
> >ork\src\mx\core\UIComponent.as:12528]
> >       at
> >mx.core::UIComponent/dispatchResizeEvent()[E:\dev\4.x\frameworks\projects\
> >framework\src\mx\core\UIComponent.as:9844]
> >       at
> >mx.core::UIComponent/setActualSize()[E:\dev\4.x\frameworks\projects\framew
> >ork\src\mx\core\UIComponent.as:9358]
> >       at
> >mx.containers.utilityClasses::Flex$/flexChildHeightsProportionally()[E:\de
> >v\4.x\frameworks\projects\framework\src\mx\containers\utilityClasses\Flex.
> >as:250]
> >       at
> >mx.containers.utilityClasses::BoxLayout/updateDisplayList()[E:\dev\4.x\fra
> >meworks\projects\framework\src\mx\containers\utilityClasses\BoxLayout.as:2
> >61]
> >       at
> >mx.containers::Box/updateDisplayList()[E:\dev\4.x\frameworks\projects\fram
> >ework\src\mx\containers\Box.as:413]
> >       at
> >mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\
> >framework\src\mx\core\UIComponent.as:8709]
> >       at
> >mx.core::Container/validateDisplayList()[E:\dev\4.x\frameworks\projects\fr
> >amework\src\mx\core\Container.as:3296]
> >       at
> >mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects
> >\framework\src\mx\managers\LayoutManager.as:932]
> >       at
> >mx.core::UIComponent/validateNow()[E:\dev\4.x\frameworks\projects\framewor
> >k\src\mx\core\UIComponent.as:7792]
> >       at
> >mx.managers::PopUpManagerImpl/centerPopUp()[E:\dev\4.x\frameworks\projects
> >\framework\src\mx\managers\PopUpManagerImpl.as:489]
> >       at
> >mx.managers::PopUpManager$/centerPopUp()[E:\dev\4.x\frameworks\projects\fr
> >amework\src\mx\managers\PopUpManager.as:213]
> >       at flash.events::EventDispatcher/dispatchEventFunction()
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at
> >mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framew
> >ork\src\mx\core\UIComponent.as:12528]
> >       at
> >mx.modules::ModuleLoader/moduleReadyHandler()[E:\dev\4.x\frameworks\projec
> >ts\framework\src\mx\modules\ModuleLoader.as:462]
> >       at flash.events::EventDispatcher/dispatchEventFunction()
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at
> >ModuleInfoProxy/moduleEventHandler()[E:\dev\4.x\frameworks\projects\framew
> >ork\src\mx\modules\ModuleManager.as:1168]
> >       at flash.events::EventDispatcher/dispatchEventFunction()
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at
> >ModuleInfo/readyHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\
> >modules\ModuleManager.as:812]
> >       at flash.events::EventDispatcher/dispatchEventFunction()
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at
> >mx.core::FlexModuleFactory/update()[E:\dev\4.x\frameworks\projects\framewo
> >rk\src\mx\core\FlexModuleFactory.as:433]
> >       at
> >mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\4.x\frameworks\project
> >s\framework\src\mx\core\FlexModuleFactory.as:582]
> >       at
> >mx.core::FlexModuleFactory/docFrameListener()[E:\dev\4.x\frameworks\projec
> >ts\framework\src\mx\core\FlexModuleFactory.as:126]
> >
> >-----Original Message-----
> >From: Alex Harui [mailto:aharui@adobe.com]
> >Sent: 08 November 2013 22:49
> >To: users@flex.apache.org
> >Subject: Re: One of the parameters is invalid while loading a module
> >
> >What is the error message and call stack?  Did you try the workaround
> >suggested in the forum thread?
> >
> >On 11/8/13 1:26 AM, "Devesh Mishra" <De...@mastek.com> wrote:
> >
> >>Hi,
> >>I am facing the same issue which has been reported in the given URL
> >>(http://forums.adobe.com/message/2783233)
> >>In this post, someone mentioned that this issue is coming because of
> >>different implementation of StyleManager in Flex 3 & Flex 4.
> >>Need confirmation for the same.
> >>MASTEK LTD.
> >>In the US, we're called MAJESCOMASTEK
> >>
> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>~
> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>Opinions expressed in this e-mail are those of the individual and not
> >>that of Mastek Limited, unless specifically indicated to that effect.
> >>Mastek Limited does not accept any responsibility or liability for it.
> >>This e-mail and attachments (if any) transmitted with it are confidential
> >>and/or privileged and solely for the use of the intended person or entity
> >>to which it is addressed. Any review, re-transmission, dissemination or
> >>other use of or taking of any action in reliance upon this information by
> >>persons or entities other than the intended recipient is prohibited. This
> >>e-mail and its attachments have been scanned for the presence of computer
> >>viruses. It is the responsibility of the recipient to run the virus check
> >>on e-mails and attachments before opening them. If you have received this
> >>e-mail in error, kindly delete this e-mail from desktop and server.
> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>~
> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >MASTEK LTD.
> >In the US, we're called MAJESCOMASTEK
> >
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >Opinions expressed in this e-mail are those of the individual and not
> >that of Mastek Limited, unless specifically indicated to that effect.
> >Mastek Limited does not accept any responsibility or liability for it.
> >This e-mail and attachments (if any) transmitted with it are confidential
> >and/or privileged and solely for the use of the intended person or entity
> >to which it is addressed. Any review, re-transmission, dissemination or
> >other use of or taking of any action in reliance upon this information by
> >persons or entities other than the intended recipient is prohibited. This
> >e-mail and its attachments have been scanned for the presence of computer
> >viruses. It is the responsibility of the recipient to run the virus check
> >on e-mails and attachments before opening them. If you have received this
> >e-mail in error, kindly delete this e-mail from desktop and server.
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
>
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails
> and attachments before opening them. If you have received this e-mail in
> error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>

RE: One of the parameters is invalid while loading a module

Posted by Devesh Mishra <De...@mastek.com>.
Hi,

I have lots of mxml modules (which is a combination of mxml & spark controls) in my application and the way i am opening these mxml modules is common in a popup window. 

It's very strange to see that i am getting this error with only one module. This issue is not related to a specific component.

As it shows in error stack, i have removed panel from module, then it start throwing same error with some other components.

-----Original Message-----
From: Alex Harui [mailto:aharui@adobe.com] 
Sent: 11 November 2013 11:30
To: Devesh Mishra; users@flex.apache.org
Subject: Re: One of the parameters is invalid while loading a module

Some folks on the forum said it worked for them.

This error stack usually means an invalid value (usually NaN) is being
passed to drawRect.  But a breakpoint on PanelAccImpl and see if you can
figure out why it is being passed a bad value.

-Alex

On 11/10/13 8:57 PM, "Devesh Mishra" <De...@mastek.com> wrote:

>Hi,
>
>I have tried that suggestion which is given in forum and it's working for
>me. I am getting below error stack.
>
>Just want to validate whether given suggestion is valid or not.
>
>ArgumentError: Error #2004: One of the parameters is invalid.
>	at flash.display::Graphics/drawRect()
>	at 
>spark.accessibility::PanelAccImpl/eventHandler()[E:\dev\4.x\frameworks\pro
>jects\spark\src\spark\accessibility\PanelAccImpl.as:361]
>	at flash.events::EventDispatcher/dispatchEventFunction()
>	at flash.events::EventDispatcher/dispatchEvent()
>	at 
>mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framew
>ork\src\mx\core\UIComponent.as:12528]
>	at 
>mx.core::UIComponent/dispatchResizeEvent()[E:\dev\4.x\frameworks\projects\
>framework\src\mx\core\UIComponent.as:9844]
>	at 
>mx.core::UIComponent/setActualSize()[E:\dev\4.x\frameworks\projects\framew
>ork\src\mx\core\UIComponent.as:9358]
>	at 
>mx.containers.utilityClasses::Flex$/flexChildHeightsProportionally()[E:\de
>v\4.x\frameworks\projects\framework\src\mx\containers\utilityClasses\Flex.
>as:250]
>	at 
>mx.containers.utilityClasses::BoxLayout/updateDisplayList()[E:\dev\4.x\fra
>meworks\projects\framework\src\mx\containers\utilityClasses\BoxLayout.as:2
>61]
>	at 
>mx.containers::Box/updateDisplayList()[E:\dev\4.x\frameworks\projects\fram
>ework\src\mx\containers\Box.as:413]
>	at 
>mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\
>framework\src\mx\core\UIComponent.as:8709]
>	at 
>mx.core::Container/validateDisplayList()[E:\dev\4.x\frameworks\projects\fr
>amework\src\mx\core\Container.as:3296]
>	at 
>mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects
>\framework\src\mx\managers\LayoutManager.as:932]
>	at 
>mx.core::UIComponent/validateNow()[E:\dev\4.x\frameworks\projects\framewor
>k\src\mx\core\UIComponent.as:7792]
>	at 
>mx.managers::PopUpManagerImpl/centerPopUp()[E:\dev\4.x\frameworks\projects
>\framework\src\mx\managers\PopUpManagerImpl.as:489]
>	at 
>mx.managers::PopUpManager$/centerPopUp()[E:\dev\4.x\frameworks\projects\fr
>amework\src\mx\managers\PopUpManager.as:213]
>	at flash.events::EventDispatcher/dispatchEventFunction()
>	at flash.events::EventDispatcher/dispatchEvent()
>	at 
>mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framew
>ork\src\mx\core\UIComponent.as:12528]
>	at 
>mx.modules::ModuleLoader/moduleReadyHandler()[E:\dev\4.x\frameworks\projec
>ts\framework\src\mx\modules\ModuleLoader.as:462]
>	at flash.events::EventDispatcher/dispatchEventFunction()
>	at flash.events::EventDispatcher/dispatchEvent()
>	at 
>ModuleInfoProxy/moduleEventHandler()[E:\dev\4.x\frameworks\projects\framew
>ork\src\mx\modules\ModuleManager.as:1168]
>	at flash.events::EventDispatcher/dispatchEventFunction()
>	at flash.events::EventDispatcher/dispatchEvent()
>	at 
>ModuleInfo/readyHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\
>modules\ModuleManager.as:812]
>	at flash.events::EventDispatcher/dispatchEventFunction()
>	at flash.events::EventDispatcher/dispatchEvent()
>	at 
>mx.core::FlexModuleFactory/update()[E:\dev\4.x\frameworks\projects\framewo
>rk\src\mx\core\FlexModuleFactory.as:433]
>	at 
>mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\4.x\frameworks\project
>s\framework\src\mx\core\FlexModuleFactory.as:582]
>	at 
>mx.core::FlexModuleFactory/docFrameListener()[E:\dev\4.x\frameworks\projec
>ts\framework\src\mx\core\FlexModuleFactory.as:126]
>
>-----Original Message-----
>From: Alex Harui [mailto:aharui@adobe.com]
>Sent: 08 November 2013 22:49
>To: users@flex.apache.org
>Subject: Re: One of the parameters is invalid while loading a module
>
>What is the error message and call stack?  Did you try the workaround
>suggested in the forum thread?
>
>On 11/8/13 1:26 AM, "Devesh Mishra" <De...@mastek.com> wrote:
>
>>Hi,
>>I am facing the same issue which has been reported in the given URL
>>(http://forums.adobe.com/message/2783233)
>>In this post, someone mentioned that this issue is coming because of
>>different implementation of StyleManager in Flex 3 & Flex 4.
>>Need confirmation for the same.
>>MASTEK LTD.
>>In the US, we're called MAJESCOMASTEK
>>
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>~
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>Opinions expressed in this e-mail are those of the individual and not
>>that of Mastek Limited, unless specifically indicated to that effect.
>>Mastek Limited does not accept any responsibility or liability for it.
>>This e-mail and attachments (if any) transmitted with it are confidential
>>and/or privileged and solely for the use of the intended person or entity
>>to which it is addressed. Any review, re-transmission, dissemination or
>>other use of or taking of any action in reliance upon this information by
>>persons or entities other than the intended recipient is prohibited. This
>>e-mail and its attachments have been scanned for the presence of computer
>>viruses. It is the responsibility of the recipient to run the virus check
>>on e-mails and attachments before opening them. If you have received this
>>e-mail in error, kindly delete this e-mail from desktop and server.
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>~
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>MASTEK LTD.
>In the US, we're called MAJESCOMASTEK
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Opinions expressed in this e-mail are those of the individual and not
>that of Mastek Limited, unless specifically indicated to that effect.
>Mastek Limited does not accept any responsibility or liability for it.
>This e-mail and attachments (if any) transmitted with it are confidential
>and/or privileged and solely for the use of the intended person or entity
>to which it is addressed. Any review, re-transmission, dissemination or
>other use of or taking of any action in reliance upon this information by
>persons or entities other than the intended recipient is prohibited. This
>e-mail and its attachments have been scanned for the presence of computer
>viruses. It is the responsibility of the recipient to run the virus check
>on e-mails and attachments before opening them. If you have received this
>e-mail in error, kindly delete this e-mail from desktop and server.
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>

MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Re: One of the parameters is invalid while loading a module

Posted by Alex Harui <ah...@adobe.com>.
Some folks on the forum said it worked for them.

This error stack usually means an invalid value (usually NaN) is being
passed to drawRect.  But a breakpoint on PanelAccImpl and see if you can
figure out why it is being passed a bad value.

-Alex

On 11/10/13 8:57 PM, "Devesh Mishra" <De...@mastek.com> wrote:

>Hi,
>
>I have tried that suggestion which is given in forum and it's working for
>me. I am getting below error stack.
>
>Just want to validate whether given suggestion is valid or not.
>
>ArgumentError: Error #2004: One of the parameters is invalid.
>	at flash.display::Graphics/drawRect()
>	at 
>spark.accessibility::PanelAccImpl/eventHandler()[E:\dev\4.x\frameworks\pro
>jects\spark\src\spark\accessibility\PanelAccImpl.as:361]
>	at flash.events::EventDispatcher/dispatchEventFunction()
>	at flash.events::EventDispatcher/dispatchEvent()
>	at 
>mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framew
>ork\src\mx\core\UIComponent.as:12528]
>	at 
>mx.core::UIComponent/dispatchResizeEvent()[E:\dev\4.x\frameworks\projects\
>framework\src\mx\core\UIComponent.as:9844]
>	at 
>mx.core::UIComponent/setActualSize()[E:\dev\4.x\frameworks\projects\framew
>ork\src\mx\core\UIComponent.as:9358]
>	at 
>mx.containers.utilityClasses::Flex$/flexChildHeightsProportionally()[E:\de
>v\4.x\frameworks\projects\framework\src\mx\containers\utilityClasses\Flex.
>as:250]
>	at 
>mx.containers.utilityClasses::BoxLayout/updateDisplayList()[E:\dev\4.x\fra
>meworks\projects\framework\src\mx\containers\utilityClasses\BoxLayout.as:2
>61]
>	at 
>mx.containers::Box/updateDisplayList()[E:\dev\4.x\frameworks\projects\fram
>ework\src\mx\containers\Box.as:413]
>	at 
>mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\
>framework\src\mx\core\UIComponent.as:8709]
>	at 
>mx.core::Container/validateDisplayList()[E:\dev\4.x\frameworks\projects\fr
>amework\src\mx\core\Container.as:3296]
>	at 
>mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects
>\framework\src\mx\managers\LayoutManager.as:932]
>	at 
>mx.core::UIComponent/validateNow()[E:\dev\4.x\frameworks\projects\framewor
>k\src\mx\core\UIComponent.as:7792]
>	at 
>mx.managers::PopUpManagerImpl/centerPopUp()[E:\dev\4.x\frameworks\projects
>\framework\src\mx\managers\PopUpManagerImpl.as:489]
>	at 
>mx.managers::PopUpManager$/centerPopUp()[E:\dev\4.x\frameworks\projects\fr
>amework\src\mx\managers\PopUpManager.as:213]
>	at flash.events::EventDispatcher/dispatchEventFunction()
>	at flash.events::EventDispatcher/dispatchEvent()
>	at 
>mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framew
>ork\src\mx\core\UIComponent.as:12528]
>	at 
>mx.modules::ModuleLoader/moduleReadyHandler()[E:\dev\4.x\frameworks\projec
>ts\framework\src\mx\modules\ModuleLoader.as:462]
>	at flash.events::EventDispatcher/dispatchEventFunction()
>	at flash.events::EventDispatcher/dispatchEvent()
>	at 
>ModuleInfoProxy/moduleEventHandler()[E:\dev\4.x\frameworks\projects\framew
>ork\src\mx\modules\ModuleManager.as:1168]
>	at flash.events::EventDispatcher/dispatchEventFunction()
>	at flash.events::EventDispatcher/dispatchEvent()
>	at 
>ModuleInfo/readyHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\
>modules\ModuleManager.as:812]
>	at flash.events::EventDispatcher/dispatchEventFunction()
>	at flash.events::EventDispatcher/dispatchEvent()
>	at 
>mx.core::FlexModuleFactory/update()[E:\dev\4.x\frameworks\projects\framewo
>rk\src\mx\core\FlexModuleFactory.as:433]
>	at 
>mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\4.x\frameworks\project
>s\framework\src\mx\core\FlexModuleFactory.as:582]
>	at 
>mx.core::FlexModuleFactory/docFrameListener()[E:\dev\4.x\frameworks\projec
>ts\framework\src\mx\core\FlexModuleFactory.as:126]
>
>-----Original Message-----
>From: Alex Harui [mailto:aharui@adobe.com]
>Sent: 08 November 2013 22:49
>To: users@flex.apache.org
>Subject: Re: One of the parameters is invalid while loading a module
>
>What is the error message and call stack?  Did you try the workaround
>suggested in the forum thread?
>
>On 11/8/13 1:26 AM, "Devesh Mishra" <De...@mastek.com> wrote:
>
>>Hi,
>>I am facing the same issue which has been reported in the given URL
>>(http://forums.adobe.com/message/2783233)
>>In this post, someone mentioned that this issue is coming because of
>>different implementation of StyleManager in Flex 3 & Flex 4.
>>Need confirmation for the same.
>>MASTEK LTD.
>>In the US, we're called MAJESCOMASTEK
>>
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>~
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>Opinions expressed in this e-mail are those of the individual and not
>>that of Mastek Limited, unless specifically indicated to that effect.
>>Mastek Limited does not accept any responsibility or liability for it.
>>This e-mail and attachments (if any) transmitted with it are confidential
>>and/or privileged and solely for the use of the intended person or entity
>>to which it is addressed. Any review, re-transmission, dissemination or
>>other use of or taking of any action in reliance upon this information by
>>persons or entities other than the intended recipient is prohibited. This
>>e-mail and its attachments have been scanned for the presence of computer
>>viruses. It is the responsibility of the recipient to run the virus check
>>on e-mails and attachments before opening them. If you have received this
>>e-mail in error, kindly delete this e-mail from desktop and server.
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>~
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>MASTEK LTD.
>In the US, we're called MAJESCOMASTEK
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Opinions expressed in this e-mail are those of the individual and not
>that of Mastek Limited, unless specifically indicated to that effect.
>Mastek Limited does not accept any responsibility or liability for it.
>This e-mail and attachments (if any) transmitted with it are confidential
>and/or privileged and solely for the use of the intended person or entity
>to which it is addressed. Any review, re-transmission, dissemination or
>other use of or taking of any action in reliance upon this information by
>persons or entities other than the intended recipient is prohibited. This
>e-mail and its attachments have been scanned for the presence of computer
>viruses. It is the responsibility of the recipient to run the virus check
>on e-mails and attachments before opening them. If you have received this
>e-mail in error, kindly delete this e-mail from desktop and server.
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>


RE: One of the parameters is invalid while loading a module

Posted by Devesh Mishra <De...@mastek.com>.
Hi,

I have tried that suggestion which is given in forum and it's working for me. I am getting below error stack.

Just want to validate whether given suggestion is valid or not.

ArgumentError: Error #2004: One of the parameters is invalid.
	at flash.display::Graphics/drawRect()
	at spark.accessibility::PanelAccImpl/eventHandler()[E:\dev\4.x\frameworks\projects\spark\src\spark\accessibility\PanelAccImpl.as:361]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528]
	at mx.core::UIComponent/dispatchResizeEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9844]
	at mx.core::UIComponent/setActualSize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9358]
	at mx.containers.utilityClasses::Flex$/flexChildHeightsProportionally()[E:\dev\4.x\frameworks\projects\framework\src\mx\containers\utilityClasses\Flex.as:250]
	at mx.containers.utilityClasses::BoxLayout/updateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\containers\utilityClasses\BoxLayout.as:261]
	at mx.containers::Box/updateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\containers\Box.as:413]
	at mx.core::UIComponent/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8709]
	at mx.core::Container/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3296]
	at mx.managers::LayoutManager/validateClient()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:932]
	at mx.core::UIComponent/validateNow()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7792]
	at mx.managers::PopUpManagerImpl/centerPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:489]
	at mx.managers::PopUpManager$/centerPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:213]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12528]
	at mx.modules::ModuleLoader/moduleReadyHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\modules\ModuleLoader.as:462]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at ModuleInfoProxy/moduleEventHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\modules\ModuleManager.as:1168]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at ModuleInfo/readyHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\modules\ModuleManager.as:812]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::FlexModuleFactory/update()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:433]
	at mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:582]
	at mx.core::FlexModuleFactory/docFrameListener()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:126]

-----Original Message-----
From: Alex Harui [mailto:aharui@adobe.com] 
Sent: 08 November 2013 22:49
To: users@flex.apache.org
Subject: Re: One of the parameters is invalid while loading a module

What is the error message and call stack?  Did you try the workaround
suggested in the forum thread?

On 11/8/13 1:26 AM, "Devesh Mishra" <De...@mastek.com> wrote:

>Hi,
>I am facing the same issue which has been reported in the given URL
>(http://forums.adobe.com/message/2783233)
>In this post, someone mentioned that this issue is coming because of
>different implementation of StyleManager in Flex 3 & Flex 4.
>Need confirmation for the same.
>MASTEK LTD.
>In the US, we're called MAJESCOMASTEK
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Opinions expressed in this e-mail are those of the individual and not
>that of Mastek Limited, unless specifically indicated to that effect.
>Mastek Limited does not accept any responsibility or liability for it.
>This e-mail and attachments (if any) transmitted with it are confidential
>and/or privileged and solely for the use of the intended person or entity
>to which it is addressed. Any review, re-transmission, dissemination or
>other use of or taking of any action in reliance upon this information by
>persons or entities other than the intended recipient is prohibited. This
>e-mail and its attachments have been scanned for the presence of computer
>viruses. It is the responsibility of the recipient to run the virus check
>on e-mails and attachments before opening them. If you have received this
>e-mail in error, kindly delete this e-mail from desktop and server.
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Re: One of the parameters is invalid while loading a module

Posted by Alex Harui <ah...@adobe.com>.
What is the error message and call stack?  Did you try the workaround
suggested in the forum thread?

On 11/8/13 1:26 AM, "Devesh Mishra" <De...@mastek.com> wrote:

>Hi,
>I am facing the same issue which has been reported in the given URL
>(http://forums.adobe.com/message/2783233)
>In this post, someone mentioned that this issue is coming because of
>different implementation of StyleManager in Flex 3 & Flex 4.
>Need confirmation for the same.
>MASTEK LTD.
>In the US, we're called MAJESCOMASTEK
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Opinions expressed in this e-mail are those of the individual and not
>that of Mastek Limited, unless specifically indicated to that effect.
>Mastek Limited does not accept any responsibility or liability for it.
>This e-mail and attachments (if any) transmitted with it are confidential
>and/or privileged and solely for the use of the intended person or entity
>to which it is addressed. Any review, re-transmission, dissemination or
>other use of or taking of any action in reliance upon this information by
>persons or entities other than the intended recipient is prohibited. This
>e-mail and its attachments have been scanned for the presence of computer
>viruses. It is the responsibility of the recipient to run the virus check
>on e-mails and attachments before opening them. If you have received this
>e-mail in error, kindly delete this e-mail from desktop and server.
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~