Flex 3: problems to load modules

Hello:
I had a problem to understand how to load a module. I need to create a menu (main program) to call a module (subprogramme). I use flex 3 to deploy the application using AIR. I don't know how to load the module and using a button for this call. Any help will be very welcome.

Thank you.
Nagisa

For a simple method, you can use the buttons to set the URL of the moduleLoader as follows:


Tags: Flex

Similar Questions

  • Problem loading Module

    Dear Flex community

    I'm actually huge flex fan, but since I work with the module becomes a pain my *... Sorry for my word. But I'm stuck in a little problem: loading and unloading of modules.

    It seems so easy to load or unload the module using the module Manager or a moduleLoader... I tried all the options, all the examples found on any website out there. The result is always the same: my modules do not load or spoil my GUI.

    Here's my problem: I load different Modules built very easy without functions, only the user interface. Loading modules is not the problem, but one s as soon as I load another module, and then reload the first flex module freezes and my GUI completely breaks. Buttons no longer work, the menu bar a little weird and so on. I have to have to close my browser and start over.

    The product problem no matter how simple or complex the module is.

    I use Flex Builder 3.0.

    I charge my modules, as shown here: http://livedocs.adobe.com/flex/3/html/help.html?content=modular_5.html

    The modules do not contain functions or import managers or categories.

    can someone help me pls? Its very frustrating. I'm working on it for months.

    Best regards

    David

    I got exceptions when I ran your test scenario.  You are not testing the use of the debugger?  Add these three lines to the main application seems to help.

    Import mx.managers.PopUpManager; PopUpManager;

    Import mx.managers.HistoryManager; HistoryManager;

    Import mx.collections.ArrayCollection; Collection ArrayCollection;

  • I can't solve this problem: "Error loading C:\WINDOWS\awuvomas.dll the specific module is not found." Can help you!

    Original title: cannot find awuvomas.dll

    I can't solve this problem: "Error loading C:\WINDOWS\awuvomas.dll the specific module is not found."  Can help you!

    It is sometimes easy to get rid of the error message by doing something like disable the startup item in msconfig (if you can still find), but I suggest you fix the problem and difficulty not only the symptom of the problem by simply deleting the startup message.
    I would also not recommend you start digging in the registry to try to find the startup item and remove it unless you have a backup of your system or at least a backup of your registry, because there is no 'Cancel' or 'quit without saving changes' option in regedit.  If you make a mistake, that's all.
    These ideas relieve 'rapid' and sometimes risky of the symptom if they not even work at all, but they can't actually solve the problem.  Also, I'd be suspicious of ideas that begin with the words "try."  You don't need to try things, you need to fix things.  You don't need to try ideas that might work, you must do something that will always work all the time.
    Here are the detailed instructions that protect you and solve your problem in the 'right' way.
    There is very little. DLL files that should be loaded from the C:\WINDOWS folder and is not one of them.  If you do not have a good explanation for the name of the file in a Google search, the chances are good that your system is currently or has been infected by malware.
    A "Cannot find...". ', ' Failed to start..., "Could not load..." ». "Might not work... "" Cannot run ""error loading... ". "or"specific module could not be found"message at startup is usually related to the malware that has been configured to run at startup, but the referenced file has been removed after a malware scan, leaving behind him a startup item or the registry entry pointing to a file that does not exist.
    It might be a removal of malicious software or an application not installed.  The entry may have a curious looking name since it was probably generated at random when the malware was installed. If you search your system for the referenced file, you may not find.
    Windows attempts to load this file but cannot locate because the file has been deleted for most probably during an analysis of the malware. However, an orphaned associate of remainders of startup parameter or registry entry and tells Windows to load the file when you start or connection.
    So you should delete the referenced entry Windows stop trying to load or run the file. It may or may not be included in the registry, but you can find it.  Autoruns (see below) you get the elements no matter where it is.

    You must be sure to solve the problem and not just fix the symptom of the problem by simply relieving your message - system is not a fix (there is a difference).

    If you just locate and uncheck the item in msconfig, which disables the element but does not remove the reference to the element of false starting your computer.   The msconfig program is not a Startup Manager, that's a troubleshooting tool.  Disabling things in msconfig to put an end to the messages and think that your problem is solved is short-sighted and leave behind him a sloppy XP configuration.  Just disable the display of a start-up error message should not count as a 'solution' to the problem.
    If you are comfortable editing the registry, you can find and remove the reference directly from there or remove it using a popular third-party tool called Autoruns.  The problem can always be found in the registry well.
    Before making any changes to your registry by hand or with third-party tools, don't forget to first make a backup of the registry
    . There is no cancellation or exit without saving the option in regedit.
    Here is a link to a popular registry backup tool:
    You can also use the Autoruns to find the element of start remains little matter where he's hiding.  Autoruns does not install anything on your computer.  It will display all startup locations where the reference may be then you can turn it off or remove it completely.  Here is the download link for Autoruns:
    Run Autoruns.exe and wait that he at the end of the filling of the list of entries.
    When the Autoruns is finished scanning your system, it will say "Ready" in the lower left corner.  Autoruns can be a little intimidating to first if you have never seen it before because it displays a lot of information.  You are really interested only a few sections.
    The problem is usually to start the system or the user startup entries, then click the connection tab and see if the startup item is there.
    Scroll through the list and look for a boot entry associated files in the error message.
    If you can't find on the connection tab, look in any tab.
    You can also click file, search to search for logon, or any tab for all or part of the name of the element.
    Right-click on the offending entry and choose Remove.  If you are not sure what it is, you can just turn it off, restart and if the problem is resolved and things are functioning normally and everything works fine, then remove the offending entry.  If you don't see it in Autoruns, you may edit the registry and remove the item from your startup folder it.  Autoruns shall display the same information however.
    Given that your system has or has had an infection, follow up with this:
    Perform scans for malware, and then fix any problems:

    No matter what you use for malware protection, follow these steps:

    Download, install, update and do a full scan with these free malware detection programs at:
    Malwarebytes (MMFA): http://malwarebytes.org/
    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/
    They can be uninstalled later if you wish.
    Restart your computer and solve the outstanding issues.
  • Error at startup APP name: error loading module 'name of the app' error check. on Blackberry 9800

    Hello.
    Now a day cannot open the newly added application that is downloaded from the app store.
    His pitches ' departure name APP Error: error loading module "app name" error check. "
    I searched online. but impossible to get the correct solution. I have given all the permissions and restart the unit more time. But not to use it.
    Some have said that it is the problem of the os. you need to reinstall the operating system.
    I don't know how to get the operating system and reinstall the operating system.
    Please help me.

    Hello.. Thank you. My problem is solved.

    I have clean the operating system and install the new os.

    Now, any problem is solved.

  • Vsphere installation 5 hangs on "Loading module e1000.."

    I'm trying to install VMware vsphere 5 on a HP DL385 G1, but when I run the Setup it hangs on "Loading module e1000.."

    I know that only the DL385 G1 doesn't support vsphere, but I found the post saying he did install without problems.  http://communities.VMware.com/message/1851113

    Here's what I have on the DL385 G1

    Processor AMD Opteron 275 x 2.20 GHz (1 MD L2)

    HP BIOS A05 01/03/2006 (the most recent version of HP)

    Integrated NIC HP NC7782 Gigabit Server Adapter

    Slot PCI card NETWORK HP NC7170 Gigabit Server Adapter

    Thanks in advance for any help you can provide.

    E

    disable the pci network card and see if it works.

  • VMware ESXi 3.5 U3 Installation hangs while "loading module sata_svw.

    I tried to install ESXi on a DELL 2970 with PERC 5 / i and the installation stops while loading module sata_svw...

    the last entry in the log of the kernel is:

    WARNING: LinSCSI: 3494 driver didn't scsi_done of its abort handler and yet he returned SUCCESS

    How can I get rid of this problem?

    Thank you!

    Hello

    had the same problem, its clearly the sata on the PE2970 :_| device.

    If you turn off (both) controller sata in BIOS Setup will work. Pretty sad: you won't miss your CD-Rom I drive so I used a USB CD-ROM for installalation.

    I know that this is only a workaround, cause I need the CD of shortcut for the guest computers, but I hope that there will be an update of the driver soon.

    Respect of

    Thomas

  • RSL to load Modules

    For a while, I wanted to be able to load a RSL from a Module.  The reason is that some modules require some RSL, but that is not in the MainApp RSL.

    I googled a lot on this subject and there is no information that will show you it's possible, but now read on improvements to the Sdk Hero (http://opensource.adobe.com/wiki/display/flexsdk/RSL+Enhancements) it seems to be possible.

    To be more precise, here is a quote from the info

    3. enter in Flex 4, we expected only scheme and modules of re - use the RSL main enforcement. But now, we see the modules that are used to load custom RSL. waiting for the main application to load the RSL no longer work. We also see cases where modules would be independent of the application and to load the RSL he needs without worrying about application for which loading RSL.  Today this can cause multiple loads of the RSL even.

    To read this, it's possible.  Can someone please point me in the direction on the way to building that.  How to load a RSL requiring a module when the module is loaded?

    Thank you

    Art

    I think that the module configuration file will work only in Flex4. In Flex3 I think you'll need create a Flex project just for your modules for you can configure the RSL in construction of path of the project parameters. You ignore the application in this project.

    -Darrell

  • Problem with the module "Automation" in WindowsAzure

    Top: Problems with the module used "Automation" service "WindowsAzure.

    Hello!

    I really need your help to decide my problem of "Azure Automation". My boss has set a task for the 'Automation' module allows you to make a backup of Virtual Machines.

    To understand my problem, I do the next:

    1. describe the situation of all;

    2. describe the problems that appear in this situation;

    3. my conclusions.

    In addition, I am attaching the necessary information: my PS-scripts (from Windows and the automation of azure), log (with my notes) and screenshots (images with my notes) see file .rar Add_info (annex).

    1 description any situation

    For our development projects, we have several Virtual Machines on service cloud "WindowsAzure. We need to make backups of discs with Virtual Machines each week. Earlier, for this task, I used Windows PowerShell on my computer and my PS-script (see Ann 0 - VM (backup) of the WPS_snapshot). I created a new storage 'backupstor' and containing 'snaps-drive '. When I run PS-script with my computer, I have backup of disks virtual Machin in the container "snaps-disk", without problem.

    Now I have a new task "automatically make the process of creating backup of Virtual Machines (VM snapshots). I tried to use automation module (overview). Can I change my PS script for the 'Automation' module and create folders (see Ann 1 - records (make backups of virtual machines) _Azure_Automation).

    I need to make a backup of Virtual Machine 'bosard' in the cloud 'cloudnet. "Bosard" on the disc size ~ approximately 90 000 000 000 bytes (total size of the default drive size 127 GB/136 367 309 312 bytes)

    2. description of the problems that appear in this situation

    My steps:

    1. I start files to make a backup of Virtual Machine disk (see annex 1 - files (make backups of virtual machines) _Azure_Automation))

    2. it starts successfully and generate the name of backup 1 (blob) - snapshot-bosard - osdisk_07.10.2014_07h00m39s.vhd (see image 1 - start copy backup 1 and annex 2 - log file copy process)

    3. the process of backup copy 1 (blob) will...

    Problem 1:

    4. the process of backup copy 1 (see Appendix 2 - process log file copy) automatically stops and complete to copy the part 1/3 bytes copied 28311552000only. Important: The size of my virtual machine disk ~ on 90 000 000 000 bytes.  (Maximum possible) of total capacity of the disk where the Virtual Machine is used - 136 367 309 312 (127 GB). (See picture 2 - stop backup copy 1)

    5. I have Virtual size 1 backup - 28311552000bytes, when the size of my VM - 90 000 000 000 / 136 367 309 312 bytes.

    Problem 2:

    6. after the termination of the process automatically makes copy backup 1, records (see annex 1 - files (make backups of virtual machines) _Azure_Automation) automatically start (see picture 2 - stop backup copy 1) and folders automatically create new snapshot Backup 2 - name - bosard - osdisk_07.10.2014_07h31m33s.vhd (see annex 2 - process log file copy, image 3 - stop the copy backup 1 & Begin copy backup 2 and 5 - backupStore_Azure (process)of image)

    7. I pressed "stop" and stopped the process of copy and folders (picture 4 - I stopped the process of creating backup 2 & records). And how result I had size Backup 1 and 2 = 0 bytes (see image 6 - backupStore_Azure (I order records))

    Note:

    1 problem 1: the process of backup of virtual machine does not complete and stops automatically.

    2 problem 2: the process of creating new second backup starts automatically. And as a result, we do not have the backup of virtual machine, when I use the 'Automation '.

    3. my conclusions

    I think that:

    1. my PS script for Automation (files) is not correctly. Then I need your help, how to fix this.

    2 may be the module "Automation" is not working correctly. And the module 'Automation' needs repairs and settings.

    In addition, I am attaching the necessary information (see the Add_info (annex) .rar file):

    Ann WPS_snapshot 0 - VM (backup)

    Ann 1 - records (make backups of virtual machines) _Azure_Automation

    Ann 2 - log file copy process

    image 1 - start the copy backup 1

    image 2 - stop copy backup 1

    image 3 - stop copy backup 1 & Begin copy backup 2

    4. I stopped the image create backup processes 2 & records

    image 5 - backupStore_Azure (process)

    image 6 - backupStore_Azure (I order records)

    Thank you

    Kind regards

    Mikhail

    Hello

    You can get the assisted support from the following link on this point:.

    http://azure.Microsoft.com/en-us/support/options/

  • Error code 101-752 dotnet framework error, problems to load the new software of the printer

    Error code 101-752 dotnet framework error, problems to load the new software of the printer

    Hello

    (1) have you made changes before the start of this issue?

    (2) when you get the error message?

    (3) is the specific question of the installation of the printer software?

    (4) what is the brand and model of the printer?

    It seems that you need to fix .net Framework installed on the computer. Follow this link and see if it helps.

    Fix the .net Framework installation

    http://support.Microsoft.com/kb/976982/en-us

    Note: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: 322756 (http://support.microsoft.com/kb/322756 /) how to back up and restore the registry in Windows

    See also:

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    Let us know if that helps.

  • BlackBerry Smartphones Linkedin app gives error loading module

    Links in app gives error loading module in 9300 curve and after you have uninstalled it my curve 9300 has started to freeze at the navigation with a white screen... someone can tell me how to freeze screen resorve white!

    I just reload my os again and his normal work

  • Problem with load LOV value reset

    12.1.3 ADF

    I am facing a problem with load LOV set to reset.

    I have a page in waterfall surrounded by af LOV: PanelFormLayout. Also do some validation on the data entered by the user when clicked on submit. If the validation fails, an alert will appear on the validation failed and user will stay on the same page.

    Values LOV child get back their null or empty when you click on the "submit" button. It works as expected when the validation failed and the user has navigated to the next page. But if validation fails, the user stays on the same page and child LOV connection reset to NULL or emptyvalue. For this reason, NPE error occurs when the user attempts submit again and have to select again the child value LOV.

    Is it possible to keep the child LOV value even after submitting a form?

    Page code:

    < af:panelBox text = "Product Details" id = "pb4" >

    < af:panelFormLayout id = labelWidth "180px" = "pfl4" >

    < af:selectOneChoice value = "#{bindings." ProdType.inputValue}.

    label = "#{bindings." Required to ProdType.label'} = 'true '.

    requiredMessageDetail = "product Type cannot be NULL. Please select a value.

    shortDesc = "Select the Type of product" id = "soc1' autoSubmit = 'true '.

    showRequired = "true" contentStyle = "width: 150.0px".

    Binding = "#{viewScope.provBean.prodType} '"

    valueChangeListener = "#{viewScope.provBean.prodTypeVCL}" >

    < f: selectItems value = "#{bindings." ProdType.items}"id ="si1"/ >

    < f: validator binding = "#{bindings." ProdType.validator} "/ >"

    "< af:target execute="@this "make ="soc2"/ >

    < / af:selectOneChoice >

    < af:selectOneChoice value = "#{bindings." ProdVer.inputValue}.

    label = "#{bindings." Required to ProdVer.label'} = 'true '.

    requiredMessageDetail = 'Product Version cannot be NULL. Please select a value.

    shortDesc = 'Select Product Version' id = 'soc2 '.

    Disabled = ' #{bindings. " ProdVer.inputValue == null} ".

    contentStyle = "width: 150.0px" showRequired = "true".

    Binding = "#{viewScope.provBean.prodVer}" >

    < f: selectItems value = "#{bindings." ProdVer.items}"id ="si2"/ >

    < f: validator binding = "#{bindings." ProdVer.validator} "/ >"

    < / af:selectOneChoice >

    < / af:panelFormLayout >

    < / af:panelBox >

    Timo thanks for your response.

    Child LOV I created is an attribute of transient and resolved the problem by setting the property of passivation to true.

  • Automatic PowerCLI loading modules does not work

    Hello world

    I am currently struggling with the function of automatic loading of the PowerShell module. Since 3 PowerShell, the PowerShell is capable of auto-loading modules. Chris Wahl wrote a nice article on it (link). I don't remember if it ever worked for me, but I can't observice this behavior on two different deployments.

    I use PowerShell 5 on Windows 8.1. I installed the latest PowerCLI 6.3. But I'm observing this also with 4 PowerShell on another client. The PowerCLI Module folder is part of my PSModulePath:

    PS C:\Users\p.terlisten > $env: PSModulePath-split ';

    C:\Users\p.terlisten\Documents\WindowsPowerShell\Modules

    C:\Program Files\WindowsPowerShell\Modules

    C:\Windows\system32\WindowsPowerShell\v1.0\Modules

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\Modules

    Despite what I try: module No. PowerCLI is imported automatically. VMware PowerCLI modules are listed in the output of "Get-Module" - ListAvailable After you import VMware.VimAutomation.Core manually and any other modules are loaded automatically if used.

    Suspicion, why does not work? Thanks in advance!

    I had the same discussion, the autoload never worked until now.

    It will take a full module conversion AFAIK

  • Capture mouse of a loaded module events.

    I defined a module and have had the coordinates of the mouse (through mouse events) are updating the variables that may be related, public in the module itself.

    In the parent app application (that loaded the module), I want to display the address of the loaded module as it moves.

    As I said, I'm close, where I capture and manage the move event in the module itself, I just need to access this info from parent app, etc...

    Any help is appreciated.

    -fd

    not that it matters now, but I thought about it.

    Thanks anyway...

    -fd

  • Flex 4: problems of Module with the mx AdvancedDataGrid

    Hello

    I have a modular application. SDK is 4.5 Hero.

    The main application loads a module and receives interface components user thereof, which are displayed thereafter.

    In general, the component, returned from the module displays OK with mx components and spark.

    However, if I add AdvancedDataGrid I get the exception:

    --------------------------------------------------

    TypeError: Error #1007: instantiation attempted on a non-constructeur.

    at mx.controls::AdvancedDataGridBaseEx/getSeparator() [E:\dev\hero_private_beta\frameworks\pr ojects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4619]

    at mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators() [E:\dev\hero_private_beta\fra meworks\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4661]

    at mx.controls::AdvancedDataGrid/createHeaderSeparators() [E:\dev\hero_private_beta\framework s\projects\datavisualization\src\mx\controls\AdvancedDataGrid.as:2428]

    at mx.controls::AdvancedDataGridBaseEx/drawSeparators() [E:\dev\hero_private_beta\frameworks\ projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4575]

    at mx.controls::AdvancedDataGridBaseEx/updateDisplayList() [E:\dev\hero_private_beta\framewor ks\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:2120]

    at mx.controls::AdvancedDataGrid/updateDisplayList() [E:\dev\hero_private_beta\frameworks\pro jects\datavisualization\src\mx\controls\AdvancedDataGrid.as:2899]

    at mx.controls.listClasses::AdvancedListBase/validateDisplayList() [E:\dev\hero_private_beta\ frameworks\projects\datavisualization\src\mx\controls\listClasses\AdvancedListBase.as:3472]

    at mx.managers::LayoutManager/validateDisplayList() [E:\dev\hero_private_beta\frameworks\proj ects\framework\src\mx\managers\LayoutManager.as:719]

    at mx.managers::LayoutManager/doPhasedInstantiation() [E:\dev\hero_private_beta\frameworks\pr ojects\framework\src\mx\managers\LayoutManager.as:778]

    at mx.managers::LayoutManager/doPhasedInstantiationCallback() [E:\dev\hero_private_beta\frame works\projects\framework\src\mx\managers\LayoutManager.as:1157]

    ---------------------------------

    The compiler option is - keep-all-type-selectors. It works very well with the mx:DataGrid and all other components for example, but not with AdvancedDataGrid.

    My application has the following structure:
    TestLibrary - a library application containing a single interface:
    test. IModuleComponent
    Code:

    test package

    {

    Import mx.core.UIComponent;

    public interface IModuleComponent

    {

    function getComponent(): UIComponent;

    }

    }

    TestModule - an application of module, using TestLibrary as an EPIRB.

    Components:

    -test.module.TestModule.mxml

    <? XML version = "1.0" encoding = "utf-8"? >

    < mx:Module ' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "

    " xmlns:s = 'library://ns.adobe.com/flex/spark"" "

    "" xmlns:MX ="library://ns.adobe.com/flex/mx" width ="100%" height = "100%"

    implements ="test. IModuleComponent"xmlns:module =". test.module *">" "

    < fx:Declarations >

    <! - Place non-visual elements (e.g., services, items of value) here - >

    < / fx:Declarations >

    < fx:Script >

    <! [CDATA]

    Import mx.core.Application;

    Import mx.core.UIComponent;

    Import spark.components.Application;

    test import . IInstanceFactory;

    public function getComponent(): {UIComponent

    return new TestComponent();

    }

    []] >

    < / fx:Script >

    " < s:VGroup width ="100%"height ="100%">

    " < s:Label text = 'Module of Test" / > "

    " < module: TestComponent width ="100%"height ="100%" / >

    < / s:VGroup >

    < / mx:Module >

    -test.module.TestComponent.mxml

    <? XML version = "1.0" encoding = "utf-8"? >

    < s:VGroup ' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "

    "xmlns:s ="library://ns.adobe.com/flex/spark"

    "xmlns:MX ="library://ns.adobe.com/flex/mx"

    width ="100%" height ="100%">

    < fx:Declarations >

    <! - Place non-visual elements (e.g., services, items of value) here - >

    < / fx:Declarations >

    < fx:Script >

    <! [CDATA]

    Import mx.collections.ArrayCollection;

    [Bindable]

    private var dpADG:ArrayCollection = new ArrayCollection([)

    {Artist:'Ground', Album:'Slanted and enchanted', price: 11.99},.

    {Artist:'Ground', Album:'Brighten the corners', price: 11.99},.

    {Artist:'Healthier', Album:'A child once', price: 11.99},.

    {Artist:'Healthier', Album:'Helium wings', price: 12.99},.

    {Artist:'The doors', Album:'The doors', price: 10.99},.

    {Artist:'The doors', Album:"Morrison hôtel", price: 12.99},.

    {Artist:' Grateful Dead ', Album:' American Beauty ', price: 11.99},.

    {Artist:' Grateful Dead ', Album:'In the Dark', price: 11.99},.

    {Artist:' Grateful Dead ', Album:' Shakedown Street ', price: 11.99},.

    {Artist:'The doors', Album:' Strange Days ', price: 12.99},.

    {Artist:'The doors', Album:'The best of the doors', price: 10.99}

    ]);

    []] >

    < / fx:Script >

    " < s:Label text = ' Test data grid" / > "

    < mx:AdvancedDataGrid

    width ="100%" height ="100%"

    "sortExpertMode ="true"

    dataProvider ="dpADG{}">

    < mx:columns >

    " < mx:AdvancedDataGridColumn dataField ="artist" / > "

    " < mx:AdvancedDataGridColumn dataField ="Album" / > "

    " < mx:AdvancedDataGridColumn dataField ="price" / > "

    < / mx:columns >

    < / mx:AdvancedDataGrid >

    < / s:VGroup >

    -----------------------------------------
    TestComponent is used twice:
    (1) in the module itself
    (2) in function getComponent(), who comes from the IModuleComponent interface.
    TestWebApp - the main web application.
    TestWebApp.mxml:

    <? XML version = "1.0" encoding = "utf-8"? >

    < s:Application ' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "

    " xmlns:s = 'library://ns.adobe.com/flex/spark"" "

    " xmlns:mx = 'library://ns.adobe.com/flex/mx"" "

    minWidth ="955" minHeight ="600">

    < fx:Declarations >

    <! - Place non-visual elements (e.g., services, items of value) here - >

    < / fx:Declarations >

    < fx:Script >

    <! [CDATA]

    Import mx.charts.chartClasses.InstanceCache;

    Import mx.core.UIComponent;

    test import . IModuleComponent;

    private onButtonClick() function : void {}

    var app: IModuleComponent = testModule.child as IModuleComponent;

    var testComponent: UIComponent = app.getComponent ();

    group.addElement (testComponent);

    }

    public function createInstance (instanceClass: class): object {}

    return new instanceClass();

    }

    []] >

    < / fx:Script >

    "" < s:VGroup width = "100%" height ="100%" id = "Group">

    " < mx:ModuleLoader id ="testModule"url ="... /.. " /TestModule/bin-debug/test/module/TestModule.swf"" "" "

    height ="100" width ="100%"

    {applicationDomain ="{} }ApplicationDomain.currentDomain"/ > "

    " < s:Button label = 'click me!"click = "onButtonClick ()" / >

    < / s:VGroup >

    < / s:Application >

    ---------------------------------------
    Initially when the web application is started the an AdvancedDataGrid (coming from the ModuleLoader tag that loads TestModule, which contains TestComponent) appears correctly.
    When the button ' Click me ' is clicked - TestComponent another instance should be added in the VGroup.
    Instead the exception above appears.
    IF TestComponent contains mx:DataGrid or any other spark or component MX - everything works fine - the 2nd instance of TestComponent is added.
    This problem only occurs with AdvancedDataGrid.
    I activated - keep-all-type-selectors in TestWebApp, I have tried all combinations of RLS, merged outside of libraries, etc. - no chance.
    The problem with preview of flex 4.1 and 4.5 burrito.
    I know it's a very specific question... but...
    We are trying to create a modular application in our company... and we want to use AdvancedDataGrid (spark DataGrid is not ready yet) so... Please help
    Thanks in advance,
    Deyan

    Create a string with the fully qualified name of the class.

  • Problem with loading of modules

    Hello

    I began to touch Flex this weekend and I read something about manual. My business is to evaluate Flex built a huge demand and we have already built some prototypes using ExtJS and Bindows. Now it's time to build on Flex and compare the results.

    Since it is an extremely HUGE application, I had to move to a modular application.
    My first attempt is the connection. I want to pick up the server and if the user is not connected, load the core.layout.LoginWindow module and display it. Otherwise, load the core.layout.MainInterface module.

    This sounds really simple and I decided to research about the possible variations before you start. In order to avoid variable seen floating around, we chose ModuleManager as our shipper and we found that the debug module should have a "-debug" after the path and before the file extension.

    I created LoginWindow and MainInterface easily. The problem occurs when I tried to load the module.
    It has 2 behaviors here:

    (1) not to laod the module and the IO_Error triggers. I can't make up for it and I discovered it only debugging the application. I thought that it may be due to "-debug", removed and the problem persists.
    (2) sometimes, it loads the add-on, debug shows me that even creating and calling dispatchEvent. But my code is never notified. So, it loads the module, but does not trigger any event.

    I have attached 2 pastebins, one for the mxml and the other for as a file.
    MXML: http://pastebin.com/mb918334
    AS: http://pastebin.com/m509285d1

    I have until Monday to show my prototype running. Since it is a non-blocking issue, I'll work on other parts and wait for a response. I fight against that for much too long yesterday... = \

    PS: Also, I found a bug in the heart of SDK code. Where can I report the fix? For those who are interested, tabIndex is never assigned when you dynamically add new tabs to a tabnavigator. This is a quick fix.


    Thanks in advance,


    Guilherme Blanco

    I found my problem after you create a small reproducible application.
    When I discovered why that was happening, I found that it was a bug with ModuleManager. I have foundjira as a bug system for adobe and I looked for my problem.
    I found this link: http://bugs.adobe.com/jira/browse/SDK-11389

    It describes exactly what I have here. So, it seems the GC clean up the IModuleInfo if local scope.

    Question answer, after 2 days of research! =)

Maybe you are looking for