Flex 4 preloading modules and moduleFactory question?

Hi,
I've run some tests and taking into consideration this info about preloading modules: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf64277-7ffd.html#WS2d b454920e96a9e51e63e3d11c0bf64277-7feb
Here are 2 scenarios:
1) If you preload a module like the link example above, then you can't load it with moduleFactory any more, since it was preloaded without one. So there will be no styles inherited at all.
2) If you preload a module like the link example above, but this time you pass moduleFactory, then it will be preloaded with the moduleFactory and when you load it into your application the styles will be inherited, no matter if you pass or not the moduleFactory here. It only depends on the moduleFactory u pass when you preload it.
Now here is the summary question which I think is not possible at this point but just want to make sure if there isn't a way and maybe request a feature for it:
Is it possible to have 1 module loaded 2 times in an application with 2 different moduleFactories passed to each ?
Example: If for the first you pass moduleFactory = null, and for the second you pass the main app moduleFactory
Note:
I think it doesn't matter if we talk about preloading or loading the same module more than once at the same time
I'm pretty sure that the first time it is loaded it will get the moduleFactory and the second time it will use the moduleFactory specified the first time, not the one which is specified when loading.
So if we take this example we pass null for the first time the module is loaded, which means the second time it's loaded no matter we pass the main app moduleFactory, it will still be null and no styles will be inherited.
I'm not sure but I think that if you trace the moduleFactory it will correctly display the object you passed so in our example in the second loading, moduleFactory won't be null but the main app moduleFactory, but styles won't be inherited anyway..

Hi,
I've run some tests and taking into consideration this info about preloading modules: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf64277-7ffd.html#WS2d b454920e96a9e51e63e3d11c0bf64277-7feb
Here are 2 scenarios:
1) If you preload a module like the link example above, then you can't load it with moduleFactory any more, since it was preloaded without one. So there will be no styles inherited at all.
2) If you preload a module like the link example above, but this time you pass moduleFactory, then it will be preloaded with the moduleFactory and when you load it into your application the styles will be inherited, no matter if you pass or not the moduleFactory here. It only depends on the moduleFactory u pass when you preload it.
Now here is the summary question which I think is not possible at this point but just want to make sure if there isn't a way and maybe request a feature for it:
Is it possible to have 1 module loaded 2 times in an application with 2 different moduleFactories passed to each ?
Example: If for the first you pass moduleFactory = null, and for the second you pass the main app moduleFactory
Note:
I think it doesn't matter if we talk about preloading or loading the same module more than once at the same time
I'm pretty sure that the first time it is loaded it will get the moduleFactory and the second time it will use the moduleFactory specified the first time, not the one which is specified when loading.
So if we take this example we pass null for the first time the module is loaded, which means the second time it's loaded no matter we pass the main app moduleFactory, it will still be null and no styles will be inherited.
I'm not sure but I think that if you trace the moduleFactory it will correctly display the object you passed so in our example in the second loading, moduleFactory won't be null but the main app moduleFactory, but styles won't be inherited anyway..

Similar Messages

  • Flex 4 Modules and Stylesheets

    I am having trouble using stylesheets in a module, in particular with class styles (i.e. ".myStyle"). They are not loading at compile time. My module is:
    <?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"
               xmlns:views="com.fosrias.portal.views.*"
               xmlns:maps="com.fosrias.portal.maps.control.*"
               layout="absolute">
        <fx:Style source="../assets/styles/main.css"/>     
        <views:PortalUI left="0" top="0" right="0" bottom="0"/>
    </mx:Module>
    Any my main.css contains
    mx|SomeComponent {
         etc.
    .myStyle {
         etc.
    The type style mx|Component loads, but the class style .myStyle does not. Should this work, or do I have to compile my styles to a swf and load them a runtime? Thanks

    So, the component's (which is a UIComponent subclass in the module) styleManager.ModuleFactory is the top-level application (ii.e. app embedding the module) system manager. Not, the local modul's systemManager.
    Chokes, means returns null on the getStyleDeclaration call.
    However, per the documentation here :
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-799a.html
    Using styles with modules
    When you set styles on modules, the style properties are set on the local StyleManager. Each module has its own instance of the IStyleManager2 class. This means that each module can load its own set of styles, and its styles do not necessarily affect the styles of other modules.
    After an application finishes loading a module, the module’s styles are merged with the styles of the application. The module’s StyleManager walks the chain of parent modules and applications, up to the top-level StyleManager, and merges its styles with those set on the StyleManagers above it.
    Thus, it seems the styles should merge and thus be accessible by the top-level system manager, no?
    That being said, if not, how do you actually locate the the local system manager instance to use it? Or can't you?
    Thanks.
    Mark

  • REQ SAP FI MODULE- CERTIFICATION EXAM QUESTIONS AND ANSWERS

    REQ SAP FI MODULE- CERTIFICATION EXAM QUESTIONS AND ANSWERS
    Moderator: We should be thankful that you don't require to solve the exam for you

    Please type "certification" in the search field, you can find many threads regardding this.

  • Help with Flex preloading and transitions please

    I downloaded and installed Flex Builder 3, and I think I have
    my slideshow project about 75% finished. It's the last 25% that I
    can't figure out, regarding preloading and transitions. Can someone
    take a look at the code below and see if you can help me? I tried
    to write the code in such a way that you can debug it from any
    computer as it's calling an PHP/XML file and images that are on a
    server.
    Here's what's finished...
    1. PHP file looks at image files on server and builds XML
    file.
    2. Flex app calls PHP file and traverses the XML in the
    response.
    3. Flex app figures out how many "slides" there and displays
    the slides one at a time, each slide with 3 images, with a 5 second
    delay between "slides."
    Here's what's not finished...
    1. I would like a fade-out to white at the end of each slide,
    and a fade-in from white at the beginning of each slide.
    2. I need each slide to stay put intil the next slide is
    pre-loaded. That is, during the 5 seconds that a slide is
    displayed, the next 3 images need to be preloaded, and then the
    slide should not progress to the next until slide is completely
    loaded.
    3. The very first slide should not appear until it is
    completely loaded, and when it does appear, it should fade in from
    white.
    How do I do this?!? Please help! Here's the code...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" width="472" height="195"
    backgroundGradientAlphas="[1.0, 1.0]"
    backgroundGradientColors="[#FFFFFF, #FFFFFF]"
    creationComplete="StartFunction();" >
    <mx:Fade id="fadeOut" duration="2000" alphaFrom="1.0"
    alphaTo="0.0"/>
    <mx:Fade id="fadeIn" duration="2000" alphaFrom="0.0"
    alphaTo="1.0"/>
    <mx:Image id="PhotoA" x="0" y="0" width="154"
    height="195" />
    <mx:Image id="PhotoC" x="318" y="0" width="154"
    height="195" />
    <mx:Image id="PhotoB" x="159" y="0" width="154"
    height="195" />
    <mx:Script>
    <![CDATA[
    private function StartFunction():void {
    var oXML:XML = new XML();
    var sXmlUrl:String = "
    http://www.smis.org/templates/smis/slideshowxml.php";
    var oUrlReq:URLRequest = new URLRequest(sXmlUrl);
    var oUrlLoader:URLLoader = new URLLoader(oUrlReq);
    oUrlLoader.addEventListener("complete", xmlLoaded);
    function xmlLoaded(event:Event):void {
    oXML = XML(oUrlLoader.data);
    var iSlide:int = 0;
    function ChangeImages():void {
    PhotoA.load("
    http://www.smis.org/" +
    oXML.slide[iSlide].photo[0]["@filepath"]);
    PhotoB.load("
    http://www.smis.org/" +
    oXML.slide[iSlide].photo[1]["@filepath"]);
    PhotoC.load("
    http://www.smis.org/" +
    oXML.slide[iSlide].photo[2]["@filepath"]);
    iSlide++;
    if (iSlide >= oXML.children().length())
    iSlide = 0;
    PhotoA.load("
    http://www.smis.org/" +
    oXML.slide[iSlide].photo[0]["@filepath"]);
    PhotoB.load("
    http://www.smis.org/" +
    oXML.slide[iSlide].photo[1]["@filepath"]);
    PhotoC.load("
    http://www.smis.org/" +
    oXML.slide[iSlide].photo[2]["@filepath"]);
    iSlide++;
    if (iSlide >= oXML.children().length())
    iSlide = 0;
    setInterval(ChangeImages,5000);
    ]]>
    </mx:Script>
    </mx:Application>

    What you've done is beyond my capabilities, as of now. But, I
    ran into the same problem with the fading in and out of the photos.
    Here's my solution.
    I defined my fade with only the id and the duration
    parameters. No 'from' and 'to'.
    Then I used the 'showEffect' and 'hideEffect' parameters.
    showEffect="{bannerFade}" hideEffect="{bannerFade}"
    Works like a charm for my project.
    I hope this helps.
    Randy

  • [Flex 4] Module doesn't unload due to mx.styles.StyleManagerImpl - moduleFactroy?

    I have a custom component extending skinnableContainer and has a ButtonBar and Groups in it, which I use in my module.
    If I do not: import CustomClass; CustomClass; in my main application, then the module is stuck with mx.styles.StyleManagerImpl - moduleFactroy in the profiler.
    Why is that? I though that modules in Flex 4 have their own style manager and I should not have this problem? What I am missing?
    And also since I'm building a modular system and someone builds a module swf for it, he will have to include his components along with it, so then I can reference them in my mainApp, so his module doesn't get stuck in memory. Is that the way it's supposed to work or I am doing something work ?

    Thanks for the reply Darrell, as you can see I've started looking into the unloading modules and profiling topic, as I progress with my modular application.
    So I am kinda new in both, although I've read all articles I could find I have some problems so I've created a very simple application example again, so you could easily look into it and hopefully spread some light in my confusion.
    http://filip.nedyalkov.net/moduleImageStuck/ view source is enabled so you can confirm test what I will describe here, use it to view the source, or download to profile the results I post here.
    The scenario of the example is: On app creation 2 modules are loaded and created via moduleInfo:
    MyModule.mxml
    <s:Group><mx:Image id="imageLoader" /></s:Group>
    MyModule2.mxml
    <s:Group> 
    <local:HNav /></s:Group>
    HNav.mxml - SkinnableContainer
    <s:ButtonBar><s:dataProvider><s:ArrayCollection><fx:String>B1</fx:String><fx:String>B2</fx:String></s:ArrayCollection></s:dataProvider></s:ButtonBar>
    So with the example provided I've made 3 test cases, where I get different results.
    1) The first one is as the example is currently setup to run, which means:
    - these 2 imports are NOT included in the main app
    //import mx.controls.Image; Image;
    //import HNav; HNav;
    - both modules are loaded via moduleInfo "load()" only method (moduleFactory is not passed).
    Darrell, here what I wonder is: "In Flex 4 a module will not be pinned in memory by StyleManager unless you explicitly set styles from the module into the top-level StyleManager". With this said I should be not having my modules pinned into memory with this setup, right? Or I am missing something? Here is the profiler result for both modules - both FlexModuleFactories remain:
    2) In the second test case I included the imports along with the current setup:
    import mx.controls.Image; Image;
    import HNav; HNav;
    The result here was nice, both FlexModuleFactories were gone in the profiler. But the question remains - why do I have to declare in my main app these classes when in Flex 4 the StyleManager shouldn't pin them like in case 1) in memory.
    3) I also post here this test case 3 because I find it as an unexpected behavior or bug maybe with the mx:Image class.
    Here we still have the imports but instead of "load()" we pass in the moduleFactory: load(null,null,null,moduleFactory);
    The result of this is having MyModule's FlexModuleFactory stuck in memory with reference with the StyleManager and MyModule2 is completely gone, so it's ok.
    Here is the profiler result:
    So the question here along with the idea it could be a bug, is: Should I pass moduleFactory to modules I plan to unload? I wanted to pass moduleFactory instead of declaring same styles for each module.
    Darrell I'm kinda stuck on these questions, cause I've found nothing on this in articles, and I tried really hard to put my very complexed project into this simple examples, so I get the methodology and logic of how a dynamic system which constantly loads and unloads modules should be structured.
    I really hope you find the time to answer me here till I get this running. I'm sure others will find it useful too. Thanks in advance.

  • Problem with modules and ModuleLoader

    Hi everybody,
    i'm facing a real funny problem with modules and
    moduleLoader, i hope
    it's not (only) my fault anyway...
    If i create a normal flex project with fBuilder, i'm able to
    use
    modules in a lot of different ways (as mxml, as as in a
    function etc..)...
    but if i try to use them in my fds application (created with
    fds
    eclipse plugin or as a dataServices project) i can't use
    modules. The compile-time error message is
    always the same:
    Could not resolve <mx:ModuleLoader> to a component
    implementation
    I tried a lot of solutions, paying attention to import all
    the classes, to declaration, naming, positioning
    etc...but nothing changes, this thing is drivining me
    crazy!!!.
    I will appreciate anykind of help.
    TIA
    Fabio

    Any idea?

  • SAP R/3 Modules and transactions belonging to them.

    Hello there,
    I have two questions which I would like some help with:
    Q1  Is there a link to documentation that lists all the SAP R/3 functional modules and provides an overview/description of each module?
    Q2  I would like to list all the transactions belonging to a fuctional module/area such as SD, MM, PM, FI/CO etc. I know that tables TSTC & TSTCT will provide a list of all the transaction codes, but is there a table that will show all transaction codes belonging to a specific fuctional module?.. if not then is there another way of getting this information?...Please bear in mind that I need to be able to download this information to an excel spreadsheet.
    Your help here would be much appreciated.
    Many thanks
    Sharon

    Hi williams,
    >> For your query regarding SAP R/3 modules refer: http://en.wikipedia.org/wiki/SAP_R/3
    >> For your query regarding Transaction codes refer:
    http://www.easymarketplace.de/transactions.php
    www.erpgenie.com/sapgenie/docs/useful-tcodes.pdf
    Reward points if its useful...

  • 2006 Core 2 Duo 15" (A1211) memory and wireless questions

    Hi all,
    I've got a MacBook Pro Core 2 Duo 15",  2.16ghz (A1211 model)
    A couple quick questions:
    1) When I first bought the computer (late 2006) it had 802.11g compatibility but shortly after apple released a small upgrade that would take it to 802.11N.  Never bothered installing it as until now I've only had a g router, but am now thinking of upgrading.  I'm on OS X 10.6 now and I read at one site online that Leopard included the 802.11N upgrade?  Can anyone confirm this?  If not, would I still need to specifically download something to upgrade?
    2) Currently I've only got 1GB RAM.  Its performance is fine with OS X 10.6 and what I use the computer for.  However OS X 10.7 is out now and I know that 2GB minimum is needed for that.  However, I've also read that Apple really recommends 4GB ram.  While I know that this computer can physically accept 4GB, I also believe I understand that due to chipset limitations only 3GB or a little bit over 3GB can be exposed to the OS.  So, question is, is it worth the $100 or so to buy two 2GB modules and upgrade this to use 10.7, or is the performance going to be lousy in this configuration, and better to save the money to put towards a new Mac downt he road?
    Thanks in advance for any help or insights.

    Re: 1 See this link:http://store.apple.com/us/product/D4141ZM/A
    Re: 2 Why not just one 2GB chip?
    I have a MBP core duo and it works perfectly.  I have installed the maximum RAM and a 500GB HDD.  I did get a new one last year because the older one could not handle some video apps, otherwise it does everything else, but just a tad slower that the new one.
    Personally if you have no pressing need, keep the MBP you have.  I maintain that technological obsolescence is more of perception than reality.
    Ciao

  • Flex Cube - Deposits and CASA documentation

    Flex Cube - Deposits and CASA documentation: someone could help me to find documentation and information about CA SA and Deposits Flex CUbe MOdule ? Thanks.

  • HELP.........I have produced a training module and the reporting at the wont do what I need.

    HELP.........  I have produced a training module and the reporting at the wont do what I need.  I need it to tell me what percentage of the test I have scored which it does but then I need it to tell me which questions I got wrong without giving me the answers.

    The seller needs to follow this procedure:
    http://support.apple.com/kb/TS4515
    If she refuses, then as Tim suggested the iPhone is probably stolen. You'll need to contact your local police department and ask how to proceed.
    Regards.

  • Current list of all SAP modules and sub-modules

    Can anyone point me to a current and comprehensive list of all available SAP modules and sub-modules?  Currently, the best source I have found for this list is SAPNote 36677, which lists all the structure of components for customer incidents.  However, this SAPNote list is over 23K line items and includes information outside of the modules and sub-modules, in a format that is difficult to normalize.

    Eric,
    a similar question was posted in this link: http://scn.sap.com/thread/3652322
    Assuming you are looking for an overview on the modules for the SAP Business Suite, personally I like the list in the SAP help
    Also a valuable resource is the SAP Release Strategy webpage, which provides link to the Solution Explorer, which shows the available modules by LoB Line of Business or Industry solution, and the official Product List called PAM Product Availability Matrix, which is pretty technical.
    thank you
    erich

  • Badi's, user exits, function modules and reports

    Hi all,
    Can anybody tell me the exact diff among Badi's, user exits, function modules and reports? I mean what are their functions?
    thanks

    Hi,
         This is a beginners question,but still you can check the below links.
    BAdis:
    Regarding Enhancements/User-Exits in ABAP
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ee/a1d548892b11d295d60000e82de14a/content.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/779183#
    FM:
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    Reports:
    http://it.toolbox.com/wiki/index.php/How_many_types_of_reports_are_there_in_ABAP_and_what_is_the_difference_between_them%3F
    Regards,
    saurabh

  • [svn:fx-trunk] 15810: * Package and class level javadoc for the antTasks module and some

    Revision: 15810
    Revision: 15810
    Author:   [email protected]
    Date:     2010-04-29 02:47:22 -0700 (Thu, 29 Apr 2010)
    Log Message:
    Package and class level javadoc for the antTasks module and some
      other stragglers.
    QE notes:
    Doc notes:
    Bugs:
    Reviewer: Corey (post commit)
    Tests run: checkintests
    Is noteworthy for integration: NO
    Modified Paths:
        flex/sdk/trunk/modules/antTasks/src/flex/ant/AsDocTask.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/AscTask.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/CompcTask.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/FlexTask.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/HtmlWrapperTask.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/MxmlcTask.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/config/ConfigAppendString.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/config/ConfigBoolean.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/config/ConfigInt.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/config/ConfigString.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/config/ConfigVariable.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/config/NestedAttributeElement.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/config/OptionSpec.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/config/RepeatableConfigString.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/types/DefaultScriptLimits.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/types/DefaultSize.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/types/FlexFileSet.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/types/Fonts.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/types/Metadata.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/types/RuntimeSharedLibraryPath.java
        flex/sdk/trunk/modules/antTasks/src/flex/ant/types/URLElement.java
        flex/sdk/trunk/modules/compiler/src/java/flash/css/LocalSource.java
        flex/sdk/trunk/modules/compiler/src/java/flash/css/URLSource.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/linker/DependencyWalker.java
    Added Paths:
        flex/sdk/trunk/modules/antTasks/src/flex/ant/config/package.html
        flex/sdk/trunk/modules/antTasks/src/flex/ant/package.html
        flex/sdk/trunk/modules/antTasks/src/flex/ant/types/package.html

    Thank you very much!
    I cant believe this little comment has been so helpful!
    But yes it is:
    I explain, despite my efforts to find, googled it, forums, faqs, etc...
    no where it mentionned the manifest.fm file is... INSIDE the .jar!
    Your comment "a zip" made me attempt to open it with winrar, and I found a manifest.fm file inside!
    So far I was editing the one at the "source" of my project and rebuilding it with netbeans.
    I am going to try that now.
    Actually.... :( no its mentionning my main class!
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.7.0
    Created-By: 10.0-b19 (Sun Microsystems Inc.)
    Main-class: courseworkjava3d.Simple3D
    Class-Path:
    X-COMMENT: Main-Class will be added automatically by buildWell I have no problems uploading you the .jar, it is for a coursework it is not a private project or whatever:
    http://www.uploading.com/files/CM2LKWYU/BetaCourseworkJava3d_Final.jar.html
    Oh and I felt on your comment "dont ask us" as if I was suppose to know... i'm a beginner, I did not know that! And I tried to give you so many infos so you dont lose your time if you want to help, especially as after my own research I found many, many results for this "main class" and I tried a few solutions!
    Edited by: CupofTea on Apr 13, 2008 3:28 AM

  • Import UPK modules and sections into Knowledge Pathways?

    "...i'm trying to export content from UPK and load into Knowledge Pathways.... I would like to maintain the structure of modules and sections... is this possible? if it is.. how? where can i find how to do it?"
    What versions of UPK and Knowledge Pathways are you using? If you're using the current versions (UPK 3.5.1 and Knowledge Pathways 5.5), you should have no problems importing importing UPK modules and sections into Knowledge Pathways using the import player content feature, which is detailed in the product documentation. If you have additional questions, please let us know.
    Best regards,
    Marc

    Hello,
    This has been posted to the UPK forums:
    Import UPK modules and sections into Knowledge Pathways?
    Best regards,
    Marc

  • Help in Freq Modulation and demodulation

    Hi,
    I was asked to design Frequency modulation and demodulations without using modulation tool kits.
    I some how managed to construct frequency modulation, i also got the output.
    But if the graphs are observed, we can c that message signal is in between 0 to 0.1 whereas the time domain output is varying between 0 to 10000.
    I need help in this issue and also demodulating the same.
    I had no clue of labview when i started.
    I have to complete by 10th Nov .. Plz help.
    I am attaching the vi file.
    Thanks
    Attachments:
    Freq carrier ramp.vi ‏24 KB
    Freq carrier ramp.jpg ‏350 KB

    Hello,
    You can start with using the shipping examples. In order to access them please navigate to Help >> Find Examples… >> Toolkits and Modules >> Modulation >> Simulation >> MT ASK Equalization.  Please also remember that all Toolkits and Modules include a help file. In order to access the NI LabVIEW Modulation Toolkit Help file please navigate to Start >> All Programs >> National Instruments >> Modulation Toolkit >> LabVIEW Support. Try doing a search for “MT Modulate ASK VI”.
    Please let us know if you have any question after reviewing these resources.
    Regards,

Maybe you are looking for