ModuleLoader combined with the possible spark components?

Hello world!

I tried to install a new application, where a main mxml organizes transfers of data between two modules. The modules consist of several elements of entry and I thought it would be just the right time to finally get used to the novelty of the spark and everything. An error occurred when trying to cast the moduleloader child property. The problem seemed due to some skin button and some missing width and height properties. Searching on the internet I found several possible reasons for this app domain questions or app holder and stuff. However, I just got on it by avoiding the spark components.

I created a small example that reproduces the error.

ModuleTest.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:Script>
          <![CDATA[
               import mx.events.ModuleEvent;
               
               
               private function ma_ready(a_event: ModuleEvent): void {
                    trace (ma.child);
               }
               
               private function mb_ready(a_event: ModuleEvent): void {
                    trace (mb.child as ModuleB);
               }
          ]]>
     </fx:Script>
     <s:HGroup>
          <mx:ModuleLoader id="ma" url="ModuleA.swf" ready="ma_ready(event)"/>
          <mx:ModuleLoader id="mb" url="ModuleB.swf" ready="mb_ready(event)"/>
     </s:HGroup>
</s:Application>

ModuleA.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" layout="absolute" width="400" height="300">
     <s:Button label="A" />
</mx:Module>

ModuleB.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" layout="absolute" width="400" height="300">
     <s:Button label="B" />
</mx:Module>

Battery:

ArgumentError: Error #2004: One of the parameters is invalid.
     at flash.display::Graphics/drawRoundRect()
     at spark.primitives::Rect/draw()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\primitives\Rect.as:459]
     at spark.primitives.supportClasses::StrokedElement/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\primitives\supportClasses\StrokedElement.as:143]
     at spark.primitives.supportClasses::GraphicElement/http://www.adobe.com/2006/flex/mx/internal::doUpdateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\primitives\supportClasses\GraphicElement.as:3828]
     at spark.primitives.supportClasses::GraphicElement/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\primitives\supportClasses\GraphicElement.as:3812]
     at spark.components::Group/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\components\Group.as:956]
     at spark.skins::SparkSkin/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\spark\src\spark\skins\SparkSkin.as:191]
     at mx.skins.spark::SparkSkinForHalo/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\sparkskins\src\mx\skins\spark\SparkSkinForHalo.as:118]
     at mx.skins.spark::ButtonSkin/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\sparkskins\src\mx\skins\spark\ButtonSkin.mxml:66]
     at mx.core::UIComponent/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8531]
     at mx.managers::LayoutManager/validateClient()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:932]
     at mx.core::UIComponent/validateNow()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7631]
     at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewSkinForPhase()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\Button.as:1963]
     at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewSkin()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\Button.as:1869]
     at mx.controls::Button/commitProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\Button.as:1615]
     at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7772]
     at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:572]
     at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:700]
     at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]

I worked with FB 4 Premium on win7 x 64, compiling with standard sdk 4.0.0

Someone knows something about it?

Thank you very much!

Lukas

The problem is that you reference the class name of the main application module. It is a misuse of modules because you bind the module and its dependencies in the main application. Instead of a cast of one class module which name him, cast to an interface.

-Darrell

Tags: Flex

Similar Questions

  • Question A100 - 01 Q satellite in combination with the Syncmaster 226BW

    Hello
    I need help. I have problems with "A100 - 01 Q" in combination with the Syncmaster 226BW, the problem seems to be the display driver, there is no new version available on toshiba.com. Would you mind and give me some advice?

    I need a new driver for the Gefroce 7600 GO... (Modelltype: A100 PSAAR)

    Thank you!

    You have searched the site Toshiba us compatible graphics driver?
    It was big mistake.

    You perform a search on the European driver of Toshiba site. This laptop A100 PSAAR was designed in the EMEA regions.

    Then please visit this site;
    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp?service=EU

    Choose your model of laptop just in the form of download and download driver compatible ;)

    In addition, you could test the graphics drivers nVidia 3 sites like www.omegadrivers.net and www.laptopvideo2go.com

    Best regards

  • Does SOUL used in combination with the hierarchy of position for purchase requisitions

    Hello

    We use the hierarchy of position for purchase requisitions.

    Can we use management engine approval in combination with the hierarchy of existing post for purchase requisitions for workflow routing more flexible?

    Kind regards

    Natalia

    Hi Natalia,

    Using hierarchy Position in the SOUL is supported only in R12, please refer to the following document:

    Using SOUL, creating approval routing at a certain Position in the hierarchy of Position HR [ID 1501433.1]

    Hope this helps,

    Please, if this response has answered/solved your question/query, please mark it as correct or useful to facilitate the correct answers to the members of the community.

  • Can I create a slide show of slider/image carousel with the possibility for the links and the widths of the image to an Adobe program variable and then place in Muse

    Hello

    I really hope someone can help me with a project that led to drive me to despair.

    I'll put up an online art gallery, last year, I used Wix to create a site (explorersglobalfineart.com). Initially, I thought it was a good idea that I could build the mobile site with the site of the office. It turns out that features model are appalling and every time I add a new page I have to reinstall everything on the mobile site.

    In the last month, I've searched Adobe Muse. I started to build the site map and added to the artist page, but there are pages on the current site which have a slider carousel with the possibility for widths of the variable image and links that I cannot emmualte in Muse - http://www.explorersglobalfineart.com/#! Asia/cfvg

    Is there an Adobe program that I can use to create a cursor image carousel with the ability to tie and use images with varying widths which is compatible with Adobe Muse?

    Thank you very much

    Rebecca

    You can try this:

    http://musewidgets.com/products/carousel-Gallery-Widget

    Thank you

    Sanjit

  • VPN site to Site with the possibility to dial Back-Up

    Hello

    Our network currently uses a lot of Frame-Relay links, for these connections, we use the Cisco 1720 with dial back-up on analog line in case the fials Frame-Relay.

    I am looking for a way to site to site VPN connection and have always the possibility to dial emergency failure of the ISP. We currently have a Cisco Pix 515E who would host connections, what would be my best option on the side of Management Office? Firewalls PIX or Cisco 1720 with modules of VPN, perhaps a combination of the two? Which would be safer?

    Thank you in advance for any help you provide.

    Mauro

    Mauro,

    Do you want to replace EN with VPN links and then save the VPN with ISDN, or keep the FR, retreating to VPN, then falling back to ISDN?

    Whatever it is, the way to go is to use a dynamic routing on the EN and the VPN Protocol, so when a link fails the IP routing protocol address reconverges. This way you can always trigger the ISDN with a static route floating.

    EIGRP (or any other dynamic routing protocol) to via the VPN to allow multicasting neighbourgh through a GRE tunnel.

  • Tiara dac combined with the NI PCIe-6259 does not send the data

    Hello

    I have a card OR PCIe-6259 & DIAdem 11.2.0 (version 2010) on a windows 7 PC.

    Inputs outputs & analog analog + digital are configured in MAX 9.8.0f0. (Global virtual channels)

    When I run a dac, entered analog works perfectly.

    Outputs analog and digital does not work. Only one of the four analog outputs give the value that has been send.

    In the past, I had the same problems with this version of DIAdem in combination with a third party USB card, but this has been resolved by the new firmware & software drivers.

    Someone who has had similar problems?

    Thank you.

    After trying many things, I finally found the solution.

    In the output ==> pilot ==> options pilot "weighting the digital bus" must be verified.

  • in combination with the function sequence

    Hello

    I have a problem with a sequence in combination with a function.

    I want to generate a kind of a hardware inventory report that contains some kind of a hardware ID (a number not repetitive, auto-increment, allowed deviations). However, I have to keep track of what material ID I used to which material of the inventory, for reasons of traceability. Another important requirement is that whenever the report is run, that the returned hardware IDs are never repeated. If repeatedly runs for the same hardware in the inventory must always return new material ID.

    So I was about to create a simple function from PL/SQL where I spend my data of traceability as parameters. Then the function uses internally a sequence (nextval) to generate a new hardware ID, then stores the new ID of material by related values in the input in a table (autonomous transaction) parameters and returns the new ID.

    It works pretty well so far.

    Now the tricky part: I want where I want to go back the same ID in different columns of a SQL statement.

    Let me give you an example:
    CREATE SEQUENCE XXX_TEST_SEQ
    MINVALUE 1 MAXVALUE 999999999999999999999999999
    INCREMENT BY 1 START WITH 1
    NOCACHE NOORDER NOCYCLE;
    
    
    CREATE PACKAGE XXX_TEST_PKG AUTHID CURRENT_USER AS
    FUNCTION get_id(p_someparameter NUMBER) RETURN NUMBER;
    END XXX_TEST_PKG;
    
    
    CREATE PACKAGE BODY XXX_TEST_PKG AS
    FUNCTION get_id(p_someparameter NUMBER) RETURN NUMBER IS
      l_new_id NUMBER;
    BEGIN
      SELECT XXX_TEST_SEQ.NEXTVAL
        INTO l_new_id
        FROM DUAL;
        /* do some more logic, e.g. store the freshly generated ID 
            together with the input parameter values in some tracing table */
      RETURN l_new_id;
    END get_id;
    END XXX_TEST_PKG;
    It is a simplified version of the function for demo.

    We will use:
    -- 1) this works as expected:
    select xxx_test_pkg.get_id(1) from dual;
    
    XXX_TEST_PKG.GET_ID(1) 
    ------------------------ 
    1                        
    
    
    -- 2) this returns two different numbers:
    select xxx_test_pkg.get_id(1) as id_one
        ,  xxx_test_pkg.get_id(1) as id_two
    from dual;
    
    ID_ONE                 ID_TWO                 
    ---------------------- ---------------------- 
    2                      3                      
    
    
    -- 3) This is the problematic case: I want to return the same ID two times:
    select my_id as id
         , my_id as same_id
     from (select xxx_test_pkg.get_id(1) as my_id from dual);
    
    ID                     SAME_ID                
    ---------------------- ---------------------- 
    4                      5                      
    
    
    -- 4) CURVAL on these sequence does not work:
    select my_id as id
         , xxx_test_seq.curval as same_id
     from (select xxx_test_pkg.get_id(1) as my_id from dual);
    
    SQL Error: ORA-00904: "XXX_TEST_SEQ"."CURVAL": invalid identifier
    
    
    -- 5) This gives the output that I need, but why?
    select my_id as id
         , xxx_test_seq.nextval as same_id
     from (select xxx_test_pkg.get_id(1) as my_id from dual);
     
    ID                     SAME_ID                
    ---------------------- ---------------------- 
    7                      7                      
    Query 3 is one who gives me headaches. I need to return the same ID in different columns. But it returns only two different pieces of identification. I know that the optimizer will merge the two select statements into one and therefore perform the function twice. Someone knows how can I avoid this?

    Which is a little strange to me, it's the query 5 is really what I need, but at first glance I would say that he should not do. I would say that using nextval would be me again another number sequence.

    It's confusing... Can someone explain this and advise how can I build a query if I can get the same ID twice by line?


    I know that I can totally get rid of the sequence in my function and use something different, but I was wondering if I can avoid to change my function.


    Thank you
    David.

    Oracle's FUSION query inline with the outer query block, which causes the function being called twice.

    Instead of MATERIALIZING suspicion, or relying on ROWNUM = 1 effect predicate aside, I would explicitly tell the optimizer to not do so via the NO_MERGE indicator.

    select my_id as id
         , my_id as same_id
    from (select /*+ NO_MERGE */ xxx_test_pkg.get_id(1) as my_id from dual);
    
  • Validation with the possibility of warning?

    Hello

    I have a page with the validation of the order of the day and a button.
    When they press save button I would as validations normally (by ensuring that they have entered good data).
    Then, I want to check to see if a line with certain characteristics already exists in the table and cases in it, use a popup to warn users. They can click to continue the save or cancel the registration. If they choose to continue, the process associated with this key page runs. If they indicate to cancel all the stops treatment.

    Is it possible with a page-level validation to set up a confirm message?
    If this isn't the case, any suggestions for a solution would be appreciated.

    Thank you

    Hi Nann,

    One way to do this would be...

    Suppose your form as the page1 page.

    1 > create new page, tell page 2 and pass all DML processes in page1 page2.
    2 > Create hidden point on page1, say P1_FOUND
    3 > create a new process of PL/SQL page (after submit) in page1 do the following.

    -check for a line with certain features already exist in the table
    -If exists, then assign P1_FOUND to YES to no.
    4 > create an item hidden on page 2, say P2_FOUND and set the source used to "always replace the value that exists in the session state.
    5 > page 1, create submit after branch, which caters to the page2. Here you define the 'P2_FOUND' element with '& P1_FOUND.'
    6 > on page 2, page footer, put the following code JS

    
    

    7 > ensure that processes page2 are conditional so that they only run when ASK = 'PROCESS '.
    8 > in page2, create submit after page branching that targets go back to page 1.

    It could be that useful :-)

    See you soon
    Hari

  • Interact with the user interface components

    I'm trying to find a GOOD way to interact with the external classes user interface components. For example, that you have a 'controller' class that needs to access the view of the user interface in some way (define a label text or something else). The controller class does not do anything, it discusses only the logic of what should be the case. Currently, it is created by my top-level class when the program starts. He listens to some events occur and needs to update/interact with the user interface or the State of the application depending on what events are. I do not seem to be a way for this controller class to easily access the UI component that I need to get my hands on.

    I'm trying to do to reduce the size of a file of mxml WindowedApplication growing (LOOK cool but that is not important) and take part of the logic of the application of this file.

    It's complicated by the fact that the label is in a State that does not have the status of 'base' (so it is not a child, or even a subsidiary child of the main class at boot time) and by the fact that it is not yet near a high school component. (If that were the case, I could probably just pass the label object in the constructor for the outdoor classroom.)

    In other words, I can't just call getChild ("labelName") on my 'main' request object because it is buried nested inside OTHER components. I don't think I like the idea to browse all components and sous-composants recursively looking for the component that my outer class trying to ask. I thought about other ideas, but I don't like any of them enough to try them, eh.

    I'm at the point now about where I come to the conclusion that my fundamental design strategy is wrong, or Flex just not allowing complex applications where the GUI components can interact with external classes relatively pain-free. I'm not convinced that "Flex cannot do', I'm looking for advice on some great Flex application in all design patterns.

    Where do you put this kind of control logic, and what happens when it starts to overflow and become so large that you need to break in other files?

    Found a solution, I think that's what I've been looking for:

    http://labs.Adobe.com/wiki/index.php/Cairngorm

  • Updated OEM 98 to XP. XP becomes a full version, with the possibility to move to another computer?

    I upgraded an old computer Gateway for Windows XP Home(It had Windows 98 from the manufacturer).  When I built a new computer some time ago I moved the upgrade Windows XP to the new computer.  Is it legal under the terms of the license or is it not because I upgraded an OEM version?
    The reason why I need to know that it's because I'm going to buy Windows 7 on this computer and I have to buy a Family Pack or a full version, according to the licence proves to be.

    Just to note, I no longer use the copy of windows 98 (obviously).

    In fact, you are not in compliance with the EULA. Strictly speaking, the installation disk of Win98 gateway you used as support of qualification was OEM and thus related to the original gateway computer. Once again, strictly speaking, it could not serve as qualifying media for upgrade XP on another computer. Of course in real Life (tm) that you've discovered - it worked.

    I suggest that buy you a full version of Windows 7, even if it's more money. Plenty of retail versions do not come with restrictions and are therefore much more flexible. Make sure that your computer will support Windows 7 first, with the required and hardware configuration. Here are some links that you may find useful:

    Upgrade paths - http://technet.microsoft.com/en-us/library/dd772579%28WS.10%29.aspx
    Excellent how-to for upgrading to Windows 7 - http://lifehacker.com/5385127/prep-your-pc-for-windows-7
    What Windows 7 is right for you? Excellent comparison by CNET reviews - http://reviews.cnet.com/8301-31012_7-10379487-10355804.htmlStop
    Windows 7 system requirements - http://windows.microsoft.com/systemrequirements
    Windows 7 Application Compatibility - http://technet.microsoft.com/en-us/windows/aa905066.aspx MS - MVP - Elephant Boy computers - Don ' t Panic!

  • Echo effect doesn´t work in combination with the Roto Brush tool

    Hey guys,.

    This topic refers to another question, I already asked: duplicating a clip parts

    Basically, I wanted to reproduce the movement of a player of tennis in slow motion.

    With the great help of Rick Gerard and other members of the adobe community, I've managed to produce a result pretty solid:

    But the echo effect doesn´t works not at all.

    I followed the instructions step by step Rick Gerards constantly, but I had to adjust the framerate and the time of Echo to get a fluid motion:

    AE.png

    Now the doesn´t of echo effect works at all.

    Does anyone have an idea how to solve this problem?

    Best regards

    Mark

    You posterize time on all layers. You want only posterize time on the layer with the echo effect applied. You will need to follow the back wall and fix this info to follow-up on the middle tier to keep to keep executives frozen after the movement of the camera.

    The theory behind the effect is that Posterize you time on a layer, as well as see several copies of the same frame so you set up echo repeat those repeated frames. You put your background images under the layer of racket playing in real time, and you place a copy of your layer of racket above to play in real time so that the repeated images are under pictures of images in real-time.

    If you look carefully at my screenshot, you'll see that posterize time applies only to the middle tier.

  • Automatic scrolling of text possible in combination with the text form field

    Hello

    We would like to know if it is possible to align the text automatically with a form field that can contain different amounts of characters.

    For example:

    We have a form with a text field for currency at the end of a paragraph of text. The period to mark the end of the sentence should always be printed just behind the currency field. For now, the comma character has a fixed place, just outside the scope of the currency field. It doesn't look good when the currency field contains only 2 characters (due to the white space).

    Is there a solution to this problem?

    Thank you.

    It is only possible if the time text is also part of a text field, preferably the same one. You can use a format or script validation to automatically add this custom text to text from the user, assuming that it is a fixed value or you can know in advance. If it is a value entered by the user, then it becomes almost impossible to do it gently.

  • Problem with the placement of components in the Center

    I have the screen or full-screen and four ButtonField. How can I put buttons to this container in the Center (vertically and horizontally)?

    I try to use the Field.FIELD_HCENTER flag. ButtonField.HCENTER | Field.FIELD_VCENTER | ButtonField.VCENTER for buttons, but they take only horizontal center

    I struggled with this before as well.  Here's what I found to work for a single centering element:

    VerticalFieldManager vfm = new VerticalFieldManager(VerticalFieldManager.USE_ALL_WIDTH | VerticalFieldManager.NO_HORIZONTAL_SCROLL | VerticalFieldManager.NO_VERTICAL_SCROLL);
    
    // Create a horizontally centered HFM
    HorizontalFieldManager hfm = new HorizontalFieldManager(HorizontalFieldManager.USE_ALL_HEIGHT | HorizontalFieldManager.NO_HORIZONTAL_SCROLL | HorizontalFieldManager.NO_VERTICAL_SCROLL | HorizontalFieldManager.FIELD_HCENTER);
    
    // Create a vertically centered label
    LabelField label = new LabelField("Test", LabelField.FIELD_VCENTER);
    hfm.add(label);
    
    vfm.add(hfm);
    add(vfm);
    

    You should be able to extend this to do what you want to do with an another VerticalFieldManager.

    T

  • Search content of file types specified with the possible disabled indexing at all?

    I found this page which apparently gives a method:

    http://www.SevenForums.com/tutorials/27116-search-inside-certain-file-types-indexing-disabled.html

    However, after testing this method and reboot just in case it does, it made no difference.  What I wanted to do was to see if it was possible to have indexing turned off, but still be able to have Windows 7 search can search the content of the eml files.  By default, it can not search the content of the eml files.  Some information: when indexing is not disabled, it is a simple matter of going to Indexing Options and click for the content of any file extension to be searchable files (this changes searchable outside of indexed content areas too, incidentally, who doesn't is not something anyone would think, but I have tested its operation).  But no matter how these settings were before I disable indexing, it seems more possible to do for such a change.  The tutorial I linked earlier has a registry tweak that I have tried, but as I said, it made no difference.  Is it indeed possible?

    Out of curiosity I ask more that anything, for notes that I keep on the way to the Windows 7 search works.

    Try using SearchMyFiles instead of Windows search - an Alternative to search files from Windows + duplicates search instead.  The download link is near the bottom of the page, just above the table of foreign language version.

    SearchMyFiles may be added to the context menu of Windows Explorer to make it easy to start.  His search folder then has the current folder already entered in it.  To configure this, look in the main window of the Options menu & select the last entry in the Explorer context menu.

  • How to find max Crest audio audio tracks combined with the applied effects?

    Hi all

    I work in the CS5.5 body.

    Often when I'm working on a timeline, I have two audio tracks of the same songs, one of the camera and the other a separate, synchronized sound recorder on the timeline, so that they combine into a single signal. Applied to these titles, I might have an effect filter or high-low pass EQ. Now, I know that the maximum peak of each track or the individual clips is easy to find using the "Gain Audio" menu item, which I hope is the equivalent of this item of menu but related to the final output after two signal tracks has been added and effects have all served? It is a task that is very painful to have to listen through the entire timeline to discover if the output goes into 0db, if there was a way I could locate on the timeline where the max output, which would definitively solve the problem.

    Find the way to do this would literally save hours per project! It's the only thing that makes me groan inwardly when I perform the output volume, what I have to do most of the time.

    If all goes well,

    Peter.

    I always put a compressor and - 1db limiter of ridges on the master to stop overmods.

Maybe you are looking for