Problem with module loading another module

I have run into what appears to be a bug in Adobe Flex 3.3, but would like others opinion.  I have a simple application which loads a module.
If a user checks a box, then the module loads a submodule and calls a funtion in that submodule which modifies the UI slightly.
It really is simple code, but not easy to explain, so bear with me on this :-)  All code is attached.  Rename from *.txt to *.mxml.
I have added an event listener to the submodule loader for the ModuleEvent.READY event so that I can call a function in it once it is loaded (the function modifies the UI):
private function onModuleReady(event:Event):void{     Alert.show(
"Module load successful", "Success");
     if (loader2.child is SubModule) {
          var module:SubModule = loader2.child as SubModule;          module.createCompleteHandler();
          module.modifyUI(pnlMain);
     }else {          Alert.show(
"loader is NOT SubModule", "Failure");     }
Stepping through the debugger, loader2.child IS INDEED a SubModule Class, yet I consistantly step into the else clause.  As I debugged this, I added a similar event listener for the READY even on the loading of the first module.  By just defining a new function in the main module, this code now works.  I don't have to actually call that function, just define it, meaning that if I comment out the entire function onModuleReady (the one defined in the main application that is just printing out a trace), I get the error stated above.
<?xml version="1.0" encoding="utf-8"?><mx:Application 
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="createCompleteHandler()">
<mx:Script>
<![CDATA[
importMainModule; 
importmx.events.ModuleEvent; 
private function createCompleteHandler():void{loader.url =
"MainModule.swf";
// loader.addEventListener(ModuleEvent.READY, onModuleReady);loader.loadModule();
private function onModuleReady(event:Event):void{ 
if (loader.child isMainModule) { 
trace("here");}
Please try the attached code, and try running it with the function onModuleReady implelented in the Application body and with it removed.  Why would defining a function that is never called for the first module affect the second module?

I figured this out.  I needed to add loader.applicationDomain = ApplicationDomain.currentDomain;
This fixes the problem.
 

Similar Messages

  • Problem with delta load urgent!!

    Hi,
    I have a problem with delta load
    We have an IP, which loads data from R/3 system daily, its a delta load to the ODS and it updates to the cube with the selection on Company Codes and 0FISCPER
    we are in 3.5 system
    For a couple of company codes A & B, the init was done for the period 07.2010 to 12.2099 and after tht the deltas are loaded from 07.2010 till 12.2099 and there's no pblm with tht
    Now, there was some updation in R/3 system and the data was maintained for the company codes in A& B for the FISCPER 001.2010 to 006.2010, for which init wasnt maintained...
    now how shall we need to load the init in this case? dnt ask me how the postings was done in R/3, but my pblm is purely related to the loading data in BW from R/3, as its very imp for the customer to see the data from 01.2010 to 12.2010 in reports, but the data was only available in reports from 07.2010 onwards
    do i need to create another IP and maintain the init for 01.2010 to 06.2010? so tht this selection will automatically appear in the ODS delta loading infopackage
    pls throw ur inputs ASAP
    thank you

    Hi Prince,
    No need to maintain any Init for this data, It will be enough if you can load the data from jan 2010 to jun 2010 into your Info Cube.
    Follow the below steps:
    1)create full load IP for this data source.
    2) give the selection as A and B company codes and 0FISCPER as 001.2010 to 006.2010
    3) in menu bar, click on scheduler --> select full repair request
    4) In the next screen check the check box and save
    5) Now execute the IP, it will the data with out disturbing your daily delta.
    follow the same procedure to load data till to your Info Cube.
    Please revert if you have any questions
    Regards,
    Venkatesh

  • Problems with Safari Loading Sites and Photos

    For the past week (Feb. 2015) I've experience problems with Safari loading websites on my 2009 20" iMac desktop. Running version OSX Lion 10.7.3  4 GB.   Intel Duo Core 2.66 GHz
    Mac also will frequently not upload photos at websites like Yahoo News or Facebook.   It does this throughout the day.
    So, I downloaded Chrome, thinking it would be a better browser if Safari is not functioning.  Chrome is just slightly better, and when it won't load a website I get the following error message from Chrome: DNS_PROBE_FINISHED_NO_INTERNET.
    I'm debating taking the Mac to the Apple store for diagnosis or repair today, but if anyone else is experiencing similar problems, could you please offer some solutions as to what is going on.
    Thank you.
    AngieRK

    Non-responsive DNS server or invalid DNS configuration can cause long delay before webpages load - Apple Support
    Unless you have a good reason not to, you should update the OS to version 10.7.5.

  • Problems with the load of Deliveries

    Hi experts,
    I am having some problems with the load of Deliveries from R/3 into BW.
    In LIPS table of R/3, there are 41412 records. I delete the setup tables and realize the extraction with the transaction OLI8BW. After that I launch a simulation with RSA3 but only 6765 records are taken into account.
    Apart of that, there is a range of deliveries documents (between 180000000 and 1084000000) that is not be taken into account.
    Has someone have similar problems with the load of deliveries?
    Thanks.

    Matute,
       you can try comparing those missing records with those already extracted. I found in my side that some records with document category of "H"(Returns) don't be extracted by 2lis_12_vcitm.
    Jin Ming

  • Problems with pages loading

    We are having a lot of problems with pages loading slowly or not at all. We get this message all the time...server not found...even on pages that have just recently been visited. We have this problem with Safari, Firefox, and Camino. I don't have Internet Explorer installed, but why should I just keep adding new browsers. My ISP assures me that the connection is fine. I have emptied caches, cookies, whatever I can find to empty. Did I empty too much? We use a Netgear router and a company called Digitron. Any suggestions?
    Message was edited by: cynder13

    Hi
    Perhaps the easiest way to sort this out is to set up a separate Network Location for your connection:
    -Location - set up a personal location by clicking on the drop down menu and selecting "add a location". Use a name familiar to you. Once established, select "apply".
    -Next, click on the "Show" drop down menu and select Network Port Configurations. Only Airport ought to be checked. Move it to the top of the list (you can drag it). Select "apply".
    -Back to the "Show" menu, select "Airport". Click on the TCP panel. There, enter 4.2.2.2 and 4.2.2.1 (separate lines) in the DNS servers box and select "apply". Also, you can always call your Internet Provider to find out if they have specific codes.
    Creating a personal location, plus adding the DNS codes seems to speed things up. Otherwise, the "automatic" function has a tendency to "search" for available locations, hence creating the lag you are seeing.
    Lastly, in the Finder, go to your Applications>Utilities folder and select "Terminal". Once the screen is open copy/paste lookupd -flushcache and press return. This clears out the DNS cache. Once done, quit Terminal.
    If the above doesn't help, I suspect the Router is the problem. Perhaps you need to upgrade its firmware. Check at the Netgear site>Support.
    Post back

  • Problem with Creation of Source module for MS Access

    I am having a problem in creating a source module connected with an "MS Access" file in OWB 9i using the heterogeneous services. I have created a DSN to an access file (.mdb) and created the HS in Oracle (modified the tsnames.ora and listener.ora files with required details). Created a Database link using this service and it's working fine in SQL PLUS, but I am unable to create a Source module in OWB 9i using this db link, since OWB 9i need a schema name for db link. In MS access it's not possible to have a schema.
    Please help me in solving the above issue.
    Thanks in advance
    Jagan

    What version of OWB and Oracle database are you using? If it is an OWB version 9.0.4 or higher, I presume you are trying to create a non Oracle source module under the Oracle Database node - is this the case? If yes, you should not do that, but create your MS Access module under Databases->Other->Other node (as I understand you are not using ODBC). Let me know if my assumptions are correct.
    Regards:
    Igor

  • Problem with GF4 MX460 VTP - Module Capture from VCR

    I have problem with my GF4.
    When i try capture from VCR, the bottom of image has a distorsion, like a cut off peace.
    I don't know if the driver, software of capture (Ulead Video Studeo 6.0), the "excellent" Windows XP Professional or simply my VCR.
    Somebody can help me.
    Thanks

    Walter,
    I have the same problem. I don't think it's a software issue (unless the capture driver causes it). The bottom 7 lines of captured video seems like shifted right.
    You can use VirtualDub ( http://www.virtualdub.org ) to capture, setting crop options to ignore last 7 lines.
    I agree with CrazyCamel, use virtualdub and HuffYuv codec  http://www.math.berkeley.edu/~benrg/huffyuv.html
    This codec does lost free compression, and is *very* fast. You can capture at 320x240 writing average 2.2 MB/s (against over 5 MB/s uncompressed). It allows you to capture 640x480 or 720x480 (DVD quality) with low frame lost (maybe none, depending on your system).
    I hope these links helps you.

  • Problem with thumbnails loading on LR Gallery.

    Hi everyone.
    I am having difficulty getting galleries to upload properly, and show the jpg files after running them through Lightroom.
    I use the web gallery in LR, but then when I go to view a gallery online (it looks fine my the example given in LR), random photos are not uploaded.
    I have tried uploading in LR, and also FileZilla.
    The error I get in File Zilla is " 550 The process can not access the file because it is being used by another process. 
    Critical File Transfer Error."
    The thumbnails that are being left out are COMPLETELY random!  The number of the image left out varies from gallery to gallery.
    I have called my host, as well as my internet provider, and there is no problem on their end.
    I am working on horse show photos, and need to get these galleries uploaded correctly asap.
    Can anyone help please??

    Now I am able to load the applet on MAC OS X 10.4.11. This is due to network issue.
    Now my problem with the applet functionality. My applet will display the map image. Applet contains the navigation arrow keys at the top left of my applet. These keys will be used to navigate through the map.
    The problem is while user using the navigation buttons, the image got squash and stretch.
    This is happened only on MAC OS X 10.4.11 and Its working fine on PC and MAC OS X 10.5.5.
    Please anyone help in this regard. Thanks in advance.

  • How to open a registered oracle form in one module into another module?

    Hii der
    I'm trying to learning some concept in Oracle forms and stuck with an issue and not able to find a solution, any help will be appreciated in this regards.
    I want to know, can I open a registered form in oracle apps one module into the another module. For example, I have a form registered in Application Developer module and i want to use that form in Order Management or any other module. How I can achieve this.
    Please help......  Thanks in advance.
    Regards
    Royal A

    Hi,
    Can you tell me in which Application you have register your form, basically we need to register our custom form in our custom schema. For example our project is called XXPROJ the we will have our custom schema like XXPROJ.. In this all the custom form fmx and other reports will there.
    So Register the form in the custom Application and then create a form function and then attach the form function to two menu. For example under payables and purchasing.
    Just now i tried and its working fine, check the same and let me know if any issues
    Regards
    Sri

  • Problems with browser loading and finder menus

    I have a MacPro Tower using airport to connect to a DSL modem. Recently I am having problems with very slow loading of web pages, often showing "Can't Find Server" errors. The problem is not with my DSL provider, because I have two older Macs in the house using the same DSL line and they are working fine. Video tutorials on Adobe's site are freezing about two minutes in and never load entirely (not a problem on the other Macs). This happens with any browser so not a browser problem. Also when quitting applications on occasion the finder menu continues to show the menu for the application I have just quit and seems reluctant to go back to finder or another application.
    Anyone have any ideas?

    Similar problem here: sometimes ALL browsers (Safari, Camino, Firefox) stuck randomly on certain web pages.
    If I force close the browsers, the program remain in Dock (but not in Process Monitor or in Terminal) and the machine refuse to restart (but others programs works as well).
    Even if I submit a "sudo reboot" the machine remains in unknow state.
    The only way to exit from this situation is to do an hard reset.

  • Problem with Application Loader

    Hi,
    I'm trying to submit an iPhone application to iTunes using the Application Loader on a Mac Mini (OSX 10.5.8). After I enter my iTunes Connect login details I receive the following error response
    *There is a problem with you login information*
    Please click back and try again
    An error occurred talking to the iTunes Store
    The login details are correct, the device connects to the itunesconnect web site from Safari without issue.
    Is anybody else experiencing a similar issue? Anybody have any ideas on how I might resolve this issue. It's really frustrating as this is now the only way to get an App into iTunes and the error message is not exactly giving me a lot to go on.

    I got a message in an email saying I had the wrong binary code and therefore had to change it by downloading the application manager.
    This was the email they sent me?
    Some potential reasons that your binary is invalid: the binary icon doesn't meet our requirements, the payload directory is set at the wrong level in the .app wrapper, the bundle version has not been increased, and so on.
    You will receive an email detailing the reason for your invalid binary. To clear the error, log in to iTunes Connect, locate your app, and click Ready to Upload Binary to reset your app's status to Waiting For Upload. This will allow you to redeliver your corrected binary through Application Loader.
    Makes no sense to me either!

  • Problem with XML loading and xmlns

    I'm having a problem with loading an XML file that was created by Filemaker.  Filemaker will output an XML file using one of two different grammars.  One outputs in a mostly standard form that I can use with one glitch.  Flash CS4 AS3 seems to have a problem with the xmlns in one of the nodes.
    Specifically:
    <FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
    If I remove the xmlns="http://www.filemaker.com/fmpdsoresult" the file loads properly and I can access the various fields with no problem.  However, when I leave the xmlns=... in, it will trace out the XML properly but I can't access the fields using the code listed below.  This is driving me crazy!
    With the xmlns part in the XML file I get the following error when it tries to load the thumbnail files:
    TypeError: Error #1010: A term is undefined and has no properties.
    I need to have it so that the user can enter/edit data and simply output the XML file from Filemaker and then Flash will load up the unaltered XML file and show the info requested by the user.  That is to say I could have the user open the XML file in a word processing application and have them delete the xmlns..., but that is rather cumbersome and not very user friendly.
    I've tried every xml.ignore function I could find but it doesn't help.  Hopefully someone out there can help
    Thanks,
    -Mark-
    Partial XML:
    XML From Filemaker Export:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- This grammar has been deprecated - use FMPXMLRESULT instead -->
    <FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
      <ERRORCODE>0</ERRORCODE>
      <DATABASE>Sport.fp7</DATABASE>
      <LAYOUT></LAYOUT>
      <ROW MODID="1" RECORDID="1">
        <FirstName>Mark</FirstName>
        <LastName>Fowle</LastName>
        <Sport>Sailing</Sport>
        <Medal>None</Medal>
        <CourseOfStudy>Design</CourseOfStudy>
        <Year>1976-1978</Year>
        <HomeState>California</HomeState>
        <ImageName>93</ImageName>
      </ROW>
    </FMPDSORESULT>
    AS3 Code:
    import fl.containers.UILoader;
    var aPhoto:Array=new Array(ldPhoto_0,ldPhoto_1,ldPhoto_2,ldPhoto_3,ldPhoto_4,ldPhoto_5);
    var toSet:int=10;//time out set time
    var toTime:int=toSet;
    var photoPerPage:int=6;
    var fromPos:int=photoPerPage;
    var imgNum:Number;
    //var subjectURL:URLRequest=new URLRequest("testData_FM8.xml");
    var subjectURL:URLRequest=new URLRequest("Sports.xml");
    var xmlLoader:URLLoader=new URLLoader(subjectURL);
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    var subjectXML:XML = new XML();
    subjectXML.ignoreWhitespace=true;
    subjectXML.ignoreComments=true;
    subjectXML.ignoreProcessingInstructions=true;
    function xmlLoaded(evt:Event):void {
        subjectXML=XML(xmlLoader.data);
        if (root.loaderInfo.bytesTotal==root.loaderInfo.bytesLoaded) {
            removeEventListener(Event.ENTER_FRAME, xmlLoaded);
            trace("XML Data File Loaded");
            trace(subjectXML);
        } else {
            trace("File not Found");
        imgNum=2;//subjectXML.ROW.length;
        trace(subjectXML);
        loadThumb(0);
    function loadThumb(startPos:int):void {
        var count:Number=aPhoto.length;
        trace(subjectXML.DATABASE);
        for (var i=0; i<count; i++) {
        try{
            aPhoto[i].source="images/"+subjectXML.ROW[startPos+i].ImageName+"_main.jpg";
        }catch (e:Error){
            trace(e);
            aPhoto[i].mouseChildren=false;
            aPhoto[i].addEventListener(MouseEvent.MOUSE_DOWN, onThumbClick);
        trace("Current mem: " + System.totalMemory);
        ldAttract.visible=false;
    function unloadThumb():void {
        var count:Number=aPhoto.length;
        for (var i=0; i<count; i++) {
            aPhoto[i].unload();
            aPhoto[i].removeEventListener(MouseEvent.MOUSE_DOWN, onThumbClick);
        trace("Current mem: " + System.totalMemory);
    function onThumbClick(evt:MouseEvent) {
        var i:Number;
        //trace("Thumbnail Clicked " + evt.target.name);
        i=findPos(evt.target.name);
        ldLrgPhoto.source="images/"+subjectXML.ROW[i+fromPos].LOCAL_OBJECT_ID+"_main.jpg";
        ldLrgPhoto.visible=true;
        btnPrev.visible=false;
        btnNext.visible=false;
        gotoAndStop("showPhoto");
    function findPos(thumb:String):Number {
        var pos:Number;
        var count:Number=aPhoto.length;
        for (var i:Number=0; i<count; i++) {
            if (thumb==aPhoto[i].name) {
                pos=i;
        return pos;

    Hi,
    I was trying to use xml namespaces, so in my application I receive an XML file from the server. The file has a namespace, so when I parse the file I need to specify the namespace:
    I got the following piece of xml:
    <ls:exchange xmlns:ls=".../tsw" xmlns:tm="http://kxa">
        <ls:projects>
             <tm:annotation id="" date="" action="getprojects" status="responseok"/>         
        <ls:project id="" name="proj" description="..." owner="asss"  release="2" />
            <ls:projectV  id="" version="" creationdate="" modificationdate=""/ >
        </ls:project>
    </ls:projects>
    </ls:exchange>
    and the following code
    <mx:VBox label="WELCOME" verticalScrollPolicy="off" horizontalScrollPolicy="off">
          <mx:Tree id="tree" dataProvider="{srv.lastResult.project}" labelField="@name"  width="300" height="100%" itemOpen="itemOpenEvt(event);" />
    </mx:VBox>
    So i want to display the content of the xml (project nodes”) in a tree view, but i don’t know how to includes the namespace"ls:" in the data provider “srv.lastResult.project”. can u help me it’s urgent.
    sincerly
    Celine

  • Problem with SQL*Loader loading long description with carriage return

    I'm trying to load new items into mtl_system_items_interface via a concurrent
    program running the SQL*Loader. The load is erroring due to not finding a
    delimeter - I'm guessing it's having problems with the long_description.
    Here's my ctl file:
    LOAD
    INFILE 'create_prober_items.csv'
    INTO TABLE MTL_SYSTEM_ITEMS_INTERFACE
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    (PROCESS_FLAG "TRIM(:PROCESS_FLAG)",
    SET_PROCESS_ID "TRIM(:SET_PROCESS_ID)",
    TRANSACTION_TYPE "TRIM(:TRANSACTION_TYPE)",
    ORGANIZATION_ID "TRIM(:ORGANIZATION_ID)",
    TEMPLATE_ID "TRIM(:TEMPLATE_ID)",
    SEGMENT1 "TRIM(:SEGMENT1)",
    SEGMENT2 "TRIM(:SEGMENT2)",
    DESCRIPTION "TRIM(:DESCRIPTION)",
    LONG_DESCRIPTION "TRIM(:LONG_DESCRIPTION)")
    Here's a sample record from the csv file:
    1,1,CREATE,0,546,03,B00-100289,PROBEHEAD PH100 COMPLETE/ VACUUM/COAX ,"- Linear
    X axis, Y,Z pivots
    - Movement range: X: 8mm, Y: 6mm, Z: 25mm
    - Probe tip pressure adjustable contact
    - Vacuum adapter
    - With shielded arm
    - Incl. separate miniature female HF plug
    The long_description has to appear as:
    - something
    - something
    It can't appear as:
    -something-something
    Here's the errors:
    Record 1: Rejected - Error on table "INV"."MTL_SYSTEM_ITEMS_INTERFACE", column
    LONG_DESCRIPTION.
    Logical record ended - second enclosure character not present
    Record 2: Rejected - Error on table "INV"."MTL_SYSTEM_ITEMS_INTERFACE", column
    ORGANIZATION_ID.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    I've asked for help on the Metalink forum and was advised to add trailing nullcols to the ctl so the ctl line now looks like:
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
    I don't think this was right because now I'm getting:
    Record 1: Rejected - Error on table "INV"."MTL_SYSTEM_ITEMS_INTERFACE", column LONG_DESCRIPTION.
    Logical record ended - second enclosure character not present
    Thanks for any help that may be offered.
    -Tracy

    LOAD
    INFILE 'create_prober_items.csv'
    CONTINUEIF LAST <> '"'
    INTO TABLE MTL_SYSTEM_ITEMS_INTERFACE
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
    (PROCESS_FLAG "TRIM(:PROCESS_FLAG)",
    SET_PROCESS_ID "TRIM(:SET_PROCESS_ID)",
    TRANSACTION_TYPE "TRIM(:TRANSACTION_TYPE)",
    ORGANIZATION_ID "TRIM(:ORGANIZATION_ID)",
    TEMPLATE_ID "TRIM(:TEMPLATE_ID)",
    SEGMENT1 "TRIM(:SEGMENT1)",
    SEGMENT2 "TRIM(:SEGMENT2)",
    DESCRIPTION "TRIM(:DESCRIPTION)",
    LONG_DESCRIPTION "REPLACE (TRIM(:LONG_DESCRIPTION), '-', CHR(10) || '-')")

  • Problem with iMacs loading web pages slowly after a power failure

    We have 3 intel Macs (2 iMacs and a MB) on our network.
    Today we had a power failure, and now we are having problems with both iMacs loading some web pages slowly (in Safari and Firefox both). I have shutdown and restarted both iMacs to no avail. As you will notice, I have not experienced any problems with my MB probably because the battery never allowed it to shut down completely.
    Can you give me any indication of what the problem is or how I can go about troubleshooting this further?
    Thank you in advance.

    It does sound like it could be a WiFi issue. You can try rebooting your router and that might help. It just might your Internet connection or the router itself. If the router is bad, you can replace it. If its the Internet connection - you can only do what you ISP allows you to do.

  • Performance Problem with Query load

    Hello,
    after the upgrade to SPS 23, we have some problems with loading a Query. Before the Upgrade, the Query runs 1-3 minutes, and now more then 40 minutes.
    Does anyone have an idea?
    Regards
    Marco

    Hi,
    Suggest executing the Query in RSRT transaction by choosing the option ' Execute+Debugger' to further analyze where exactly the query is taking time.
    Make sure choosing the appropriate 'Query Display' (List/BEx Analyzer/ HTML) option before Executing the query in the Debugger mode since the display option also effect the query run time.
    Hope this info helps!
    Bala Koppuravuri

Maybe you are looking for

  • How to get rid of the stupid drop down box in the search box

    Thank-you for the help. I am not sure if I put this is the right spot or not, but I wanted to take the time to say thank-you to the people who answered : "Chosen solution If you want to restore the previously used standalone window to manage search e

  • Reading the form as XML, using WDJ

    Hello. I'm using WD for Java and ZCI layout. I've seen this thread- Re: Data in dynamic table not pass to webdynpro java about getting data from tables in the form by reading the form's XML data. I tried to search for a method to get the XML in IWDIn

  • How to call Axis 2.0  web service without wsdl

    Hi, Is it possible that I can call Axis 2.0 asynchronous web service in orabpel without wsdl.? As Axis 2.0 is not generating wsdl file. Regds, Farooq

  • Web logic server virtual edition - Customer reference

    Hi All Is there a customer reference available for weblogic server virtual edition. Has anyone moved to wlsve yet, any reference or implementation info would be appreciated. Thanks

  • Collecting DBMS_OUTPUT with JDBC?

    I am submitting dynamically-generated PL/SQL code as a query from a Java program using JDBC (classes12.zip). Is there any way to trap DBMS_OUTPUT results (logging information, progress info, timing results, etc.) in Java? Are there alternative method