Flex 4 MXMLC Problem With Modules

I am trying to configure my Ant build script to compile modules, but I get the following errors:
/Users/loc_admin/ContinuousIntegration/CruiseControl/projects/leadlaw/source/src/com/rocki ngmm/leadlaw/modules/News.mxml(33): Error: Could not resolve <valueObjects:ArticleVO> to a component implementation.
<valueObjects:ArticleVO title="Changelog: 16 Sep 2010" content="Login:&#13;- Updated positioning of error tooltips on login window.&#13;&#13;News:&#13;- Created initial rudimentary article component for news page." timestamp="{new Date(2010, 9, 16, 19, 20, 00, 00)}" author="Mike Bronner" />
/Users/loc_admin/ContinuousIntegration/CruiseControl/projects/leadlaw/source/src/com/rock ingmm/leadlaw/modules/News.mxml(29): Error: Could not resolve <valueObjects:ArticleVO> to a component implementation.
<valueObjects:ArticleVO title="Changelog: 23 Sep 2010" content="My Jobs:&#13;- Changed map markers to show numbers.&#13;- Map markers will now expand when hovered over to show info.&#13;- Items selected in list on the left will expand the corresponding markers to show their info." timestamp="{new Date(2010, 9, 23, 18, 00, 00, 00)}" author="Mike Bronner" />
/Users/loc_admin/ContinuousIntegration/CruiseControl/projects/leadlaw/source/src/com/rock ingmm/leadlaw/modules/News.mxml(30): Error: Could not resolve <valueObjects:ArticleVO> to a component implementation.
<valueObjects:ArticleVO title="Changelog: 20 Sep 2010" content="My Jobs:&#13;- Added rudimentary initial jobs list to Job Overview page.&#13;- Added job markers to map, these correspong to the listed jobs to the left of the map.&#13;- Set map to automatically center on the center point of all jobs listed.&#13;- Set map to find best zoom to fit all jobs on map." timestamp="{new Date(2010, 9, 20, 18, 00, 00, 00)}" author="Mike Bronner" />
/Users/loc_admin/ContinuousIntegration/CruiseControl/projects/leadlaw/source/src/com/rock ingmm/leadlaw/modules/News.mxml(28): Error: Could not resolve <valueObjects:ArticleVO> to a component implementation.
<valueObjects:ArticleVO title="Changelog: 24 Sep 2010" content="My Jobs:&#13;- Updated job list to display items as they correspond to the markers on the map.&#13;- Added 'Add New Job' button that starts the new job wizard.&#13;- Added initial form (general job informaion) to job wizard.&#13;- Added requirements gathering form to new job wizard." timestamp="{new Date(2010, 9, 24, 16, 00, 00, 00)}" author="Mike Bronner" />
/Users/loc_admin/ContinuousIntegration/CruiseControl/projects/leadlaw/source/src/com/rock ingmm/leadlaw/modules/News.mxml(27): Error: Could not resolve <valueObjects:ArticleVO> to a component implementation.
<valueObjects:ArticleVO title="Changelog: 5 Oct 2010" content="New Job Wizzard:&#13;- Added General Job Information screen.&#13;- Added Requirements Gathering screen.&#13;- Added Renovation Components screen." timestamp="{new Date(2010, 10, 5, 10, 00, 00, 00)}" author="Mike Bronner" />
/Users/loc_admin/ContinuousIntegration/CruiseControl/projects/leadlaw/source/src/com/rock ingmm/leadlaw/modules/News.mxml(32): Error: Could not resolve <valueObjects:ArticleVO> to a component implementation.
<valueObjects:ArticleVO title="Changelog: 17 Sep 2010" content="News:&#13;- Fixed height of article items to adjust to their content.&#13;&#13;General:&#13;- Fixed menubar navigation probems when clicking on items without a submenu.&#13;&#13;My Jobs:&#13;- Started implementation of Jobs module (nothing visible yet)." timestamp="{new Date(2010, 9, 17, 17, 00, 00, 00)}" author="Mike Bronner" />
/Users/loc_admin/ContinuousIntegration/CruiseControl/projects/leadlaw/source/src/com/rock ingmm/leadlaw/modules/News.mxml(31): Error: Could not resolve <valueObjects:ArticleVO> to a component implementation.
<valueObjects:ArticleVO title="Changelog: 18 Sep 2010" content="My Jobs:&#13;- Added initial map control to Job Overview page, including zoom and panning.&#13;- Added buttons to the map to switch between Hybrid, Map, and Satelite views." timestamp="{new Date(2010, 9, 18, 18, 00, 00, 00)}" author="Mike Bronner" />
This is the target block I am using:
    <target name="build">
        <echo>Compiling flex project...</echo>
        <mxmlc
            file="${basedir}/source/src/index.mxml"
            incremental="false"
            actionscript-file-encoding="UTF-8"
            output="${basedir}/deploy/index-${timestamp}.swf"
            debug="${debug.boolean}"
            keep-generated-actionscript="false"
            link-report="${basedir}/reports/link-report.xml"
        >
            <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
            <source-path path-element="${FLEX_HOME}/frameworks" />
            <source-path path-element="${basedir}/../components/source/src" />
            <source-path path-element="${basedir}/../modestmaps/source/src" />
            <default-background-color>0xFFFFFF</default-background-color>
            <metadata>
                <creator>Mike Bronner</creator>
                <publisher>Rocking Double-M Services</publisher>
                <language>EN</language>
            </metadata>
            <compiler.source-path path-element="${basedir}/source/src" />
            <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                <include name="libs" />
                <include name="../bundles/{locale}" />
            </compiler.library-path>
        </mxmlc>
        <mxmlc
            file="${basedir}/source/src/com/rockingmm/leadlaw/modules/Jobs.mxml"
            output="${basedir}/deploy/com/rockingmm/leadlaw/modules/Jobs.swf"
            keep-generated-actionscript="false"
            optimize="true"
            debug="false"
            load-externs="${basedir}/reports/link-report.xml"
        >
            <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
            <source-path path-element="${FLEX_HOME}/frameworks" />
            <source-path path-element="${basedir}/../components/source/src" />
            <source-path path-element="${basedir}/../modestmaps/source/src" />
            <default-background-color>0xFFFFFF</default-background-color>
            <metadata>
                <creator>Mike Bronner</creator>
                <publisher>Rocking Double-M Services</publisher>
                <language>EN</language>
            </metadata>
            <compiler.source-path path-element="${basedir}/source/src" />
            <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                <include name="libs" />
                <include name="../bundles/{locale}" />
            </compiler.library-path>
        </mxmlc>
        <mxmlc
            file="${basedir}/source/src/com/rockingmm/leadlaw/modules/News.mxml"
            output="${basedir}/deploy/com/rockingmm/leadlaw/modules/News.swf"
            keep-generated-actionscript="false"
            optimize="true"
            debug="false"
            load-externs="${basedir}/reports/link-report.xml"
        >
            <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
            <source-path path-element="${FLEX_HOME}/frameworks" />
            <default-background-color>0xFFFFFF</default-background-color>
            <metadata>
                <creator>Mike Bronner</creator>
                <publisher>Rocking Double-M Services</publisher>
                <language>EN</language>
            </metadata>
            <compiler.source-path path-element="${basedir}/source/src" />
            <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                <include name="libs" />
                <include name="../bundles/{locale}" />
            </compiler.library-path>
        </mxmlc>
    </target>
Of course, I'm not sure if this is the right way to do it, but as I understand it, each module needs to have its own MXMLC block. Personally, I don't like that idea, because it hampers development. Each time I create a new module I need to update my build script? That's a little too tightly coupled for my tastes.
Anyway, if anyone has any ideas, that would be great!
~Mike

<valueObject:ArticleVO> can't be found by searching the set of source-paths
and lib-paths.  Either the source or SWC for that is missing, or not listed

Similar Messages

  • Problem with module lazy loading in flex 3

    Hi every body!
    I have some problems with Module lazy loading. I am using flex 3.5, Module-flex3-0.14, parsley 3.2.
    I can't get the LazyModuleLoadPolicy working correctly.
    In my main application (the one that loads the modules), my parsley context is the following:
            <cairngorm:LazyModuleLoadPolicy objectId="lazyLoadPolicy" type="{ OpenViewMessage }" />
         <cairngorm:ModuleMessageInterceptor type="{ OpenViewMessage }"/>
         <cairngorm:ParsleyModuleDescriptor objectId="test"
              url="TestModule.swf"
              applicationDomain="{ClassInfo.currentDomain}"
         />
    And to load my module:
    [Inject(id="test")]
    [Bindable] public var test:IModuleManager;
    <core:LazyModulePod
         id="moduleLoader"
         moduleManager="{test}"
         moduleId="testModule"
    />
    with  LazyModulePod.mxml:
    <mx:Canvas
        xmlns:mx="http://www.adobe.com/2006/mxml"
        xmlns:module="com.adobe.cairngorm.module.*"
        xmlns:parsley="http://www.spicefactory.org/parsley">
        <mx:Script>
            <![CDATA[
                import com.adobe.cairngorm.module.ILoadPolicy;
                import com.adobe.cairngorm.module.IModuleManager;
                [Bindable]
                public var moduleId:String;
                [Bindable]
                public var moduleManager:IModuleManager;
                [Bindable]
                [Inject(id="lazyLoadPolicy")]
                public var lazyLoadPolicy:ILoadPolicy;
            ]]>
        </mx:Script>
        <parsley:Configure/>
        <module:ViewLoader id="moduleLoader"
            moduleId="{ moduleId }"
            moduleManager="{ moduleManager }"
            loadPolicy="{lazyLoadPolicy}">
             <!--<module:loadPolicy>
                  <module:BasicLoadPolicy/>
             </module:loadPolicy>-->
        </module:ViewLoader>
    </mx:Canvas>
    OpenViewMessage.as in a swc:
    public class OpenViewMessage
            private var _moduleId:String;
            private var _viewId:String;
            public function OpenViewMessage(moduleId:String, viewId:String)
                this._moduleId = moduleId;
                this._viewId = viewId;
            public function get viewId():String{
                return _viewId;
            [ModuleId]
            public function get moduleId():String
                return _moduleId;
    In another flex project, my module context is:
    <mx:Object
         xmlns:mx="http://www.adobe.com/2006/mxml"
         xmlns:controler="com.cegedim.myit.controler.*">
         <controler:WindowControler/>
    </mx:Object>
    The module implements IParsleyModule
    <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
         implements="com.adobe.cairngorm.module.IParsleyModule"
         xmlns:spicefactory="http://www.spicefactory.org/parsley">
         <mx:Script>
              <![CDATA[
                   import org.spicefactory.parsley.flex.FlexContextBuilder;
                   import com.adobe.cairngorm.module.IParsleyModule;
                   public function get contextBuilder():ContextBuilderTag
                    return contextBuilderTag;
              ]]>
         </mx:Script>
         <spicefactory:ContextBuilder  id="contextBuilderTag" config="{ MyITTestModuleContext }"/>
         <spicefactory:Configure/>
    </mx:Module>
    and the WindowControler:
    public class WindowControler
         public function WindowControler(){}
         [Init]
            public function initialize():void
                Alert.show("Module Initialized");
            [MessageHandler(scope="local")]
            public function openViewMessageHandler(message:OpenViewMessage):void
                Alert.show("Opening view " + message.viewId + " in the module " + message.moduleId);
    If i uncomment the basicLoadPolicy in LazyModulePod.mxml and remove the lazyModuleLoadPolicy, everything works fine. The module is loaded when it's added to stage and it receives correctly messages dispatched to it. But with the lazy policy the module never loads.
    I may have missed something or there is somthing i don't understand because i tried the ModuleTest provided in example in cairngorm sources. It works fine (i mean loading the moduleA2 when receiving a message), but if i replace the change the lazyModulePolicy to listen to broadcasted messages instead of a pingMessage, the module never loads too.
        <cairngorm:LazyModuleLoadPolicy objectId="lazyLoadPolicy" type="{ BroadcastMessage }" />
        <cairngorm:ModuleMessageInterceptor
            type="{ BroadcastMessage }" moduleRef="moduleA" />
    public class BroadcastMessage
        public function BroadcastMessage()
    If someone has any clue, i'll be happy to test it =)
    Thanks.

    Hello, back on my issue, i tested a little bit more the message dispaching.
    I read the lazyLoadPolicy class and noticed that it always has to have a ModuleId property in the message to work, that's why the broadcast message didn't work to awake the module with the lazy loading policy.
    So i added copy of my module:
         <cairngorm:ParsleyModuleDescriptor objectId="test"
              url="TestModule.swf"
              applicationDomain="{ClassInfo.currentDomain}"
         />
         <cairngorm:ParsleyModuleDescriptor objectId="testbis"
              url="TestModuleBis.swf"
              applicationDomain="{ClassInfo.currentDomain}"
         />     
    Set them both with a basicLoadPolicy, and tries to dispatch a message to only one of them using the ModuleId metatag. I then noticed that both modules received the message and not only the one i expected.
    I then changed the ModuleMessageInterceptor configuration to dispatch to only one kind of module:
    <cairngorm:ModuleMessageInterceptor type="{ OpenViewMessage }" moduleRef="test"/>
    and this worked as expected. Only the first module catched the message. I am obiously messing with the ModuleId metatag but i cannot see what's wrong...
    I compiled with
    -keep-as3-metadata+=ModuleId
    but this hasn't changed anything...

  • 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?

  • [SOLVED] Problem with modules and udev

    Hi everybody,
    I've been configuring Arch on my new laptop the last few days and today as I was going to perform the first backup, I noticed that my external HDD does not show up in /dev/ when I plug it in. I figured it could be a problem with udev and the fact that in my /etc/rc.conf I use MOD_AUTOLOAD="no" with an explicit list of MODULES generated with hwdetect (as suggested in the wiki).
    To "solve" this I just changed MOD_AUTOLOAD to "yes" and after a reboot everything worked fine.
    My questions are:
    1) Is it possible to keep that feature (udev detects usb drives and creates the corresponding /dev/sdX) while having MOD_AUTOLOAD="no" ? What is/are the appropriate module(s) I have to put in my MODULES array ?
    2) What other such "basic" MODULES could be very useful that hwdetect does not tell about.
    Sorry for any English mistakes (I'm not a native speaker) and thank you in advance for your help,
    yms
    Last edited by yms (2010-01-06 12:48:20)

    1) Thank you, it works perfectly.
    2) Yes I know the question is weird. The thing is I have no precise idea at the moment and I just wanted to know if there are other very widely used features such as the one described in 1) that hwdetect ommits and that has to be loaded in MODULES.
    Anyway, thank you very much, I consider this matter [solved]

  • Apache/2.2.4 (Win32) + Weblogic 8.1 Problem with Module

    Hey together,
    i'm pretty new to this whole weblogic thing.
    I wanted to install the apache plugin for weblogic. I am using weblogic 8.1 and apache 2.2.4 on win xp sp2.
    I followed the instructions given in the tutorial at bea.com.
    When i try to test the conf-file via httpd.exe -t i get
    httpd.exe: Syntax error on line 116 of C:/Programme/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:
    /Programme/Apache Software Foundation/Apache2.2/modules/mod_wl_20.so into server: Das angegebene Modul wurde nicht gefun
    den.
    But the mod_wl_20.so file is definitley in this directory as all the other modules.
    This is the important part of my httpd.conf:
    <IfModule mod_weblogic.c>
    <Location /weblogic>
    SetHandler weblogic-handler
    WebLogicHost localhost
    WebLogicPort 7101
    MatchExpression *
    </Location>
    </IfModule>
    I even downloaded the latest version of this plugin without sucess. It's all 32 bit, so there should be no problems with that.
    I read through several topics/threads dealing with same problems but without success.
    Could any1 help please?
    Thanks in advance.

    Hi,
    What do you have on line 116 ? I have it setup on Win2k and it works fine with the following statements. Only difference is that I have Apache 2.0.54 (not 2.2.x)
    LoadModule weblogic_module modules/mod_wl_20.so
    <Location /wlPortal >
    SetHandler weblogic-handler
    WebLogicHost localhost
    WebLogicPort 7001
    </Location>
    Kevin.

  • [2.6.37] Problems with module compression

    Hello,
    during the last days I had problems installing carl9170-driver package from the aur. It is a package based on compat-wireless.
    Some other people had similar problems with other compat-wireless aur packages
    All the packages that are based on compat-wireless provide new versions of already existing kernel modules. They put those modules under /lib/modules/kernel-version/updates.
    After installing depmod -a should find the new modules in the /updates folder and after a reboot you can use the updated wireless drivers.
    This does not work for kernel 2.6.37 because all the in-kernel modules are .gz compressed but the carl9170-driver package produces uncompressed modules.
    I guess that depmod is not able to work correctly if you mix compressed modules with uncompressed ones.
    I found this https://patchwork.kernel.org/patch/4039/ and it seems that there are configuration options wheter you get a compressed or uncompressed module when you run "make install_modules" in a PKGBUILD.
    These configuration is made in "Makefile.modinst"
    So the question is: Is this a problem with arch's kernel? I think when compressed in-kernel-modules are used, then external modules should compile in the same way.

    Thanks for your post. I've been reporting this problem for weeks:
    https://aur.archlinux.org/packages.php?ID=41472
    https://aur.archlinux.org/packages.php?ID=41485
    https://bugs.archlinux.org/task/22633
    I solved the problem by going to /lib/modules/kernel2.6.37ARCH/updates...iwlwifi and then ran:
    cd /lib/modules/2.6.37ARCH/update
    gzip -r *
    depmod
    Then I reloaded the modules and finally depmod would report that the compat-wireless one was loaded.
    The above instructions only worked with compat-wireless-patched from AUR. I'm still unable to use compat-wireless-patched-daily even with the above trick (no module get loaded at all).
    Last edited by alphazo (2011-02-20 19:54:59)

  • 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.
     

  • Ant mxmlc problem with SharedResources

    Hi
    i am trying to create an application using flexlib and arcgis api for flex. I compile my flex app using ant with this task
    <target name="flex-compile">
            <mxmlc file="${web.visor}/paginas/main.mxml" locale="en_US" keep-generated-actionscript="false" services="${webinf.visor}/flex/services-config.xml">
                <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
                <source-path path-element="${FLEX_HOME}/frameworks" />
                <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                    <include name="libs" />
                    <include name="locale/en_US" />
                </compiler.library-path>
                <compiler.source-path path-element="${src.visor.flex}" />
                <compiler.external-library-path dir="${lib.flex}">
                    <include name="agslib-1.2-2009-05-15.swc" />
                    <include name="flexlib.swc" />
                </compiler.external-library-path>
            </mxmlc>
        </target>
    but when i try to run the swf file i get this error:
    An ActionScript error has occurred:
    Error: Could not find compiled resource bundle 'SharedResources' for locale 'en_US'.
        at mx.resources::ResourceManagerImpl/http://www.adobe.com/2006/flex/mx/internal::installCompiledResourceBundle()
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()
        at mx.managers::SystemManager/installCompiledResourceBundles()
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()
        at mx.managers::SystemManager/docFrameListener()
    any ideas ?? sorry, but i am really new to flex
    thanks a lot

    Have you tried to use <compiler.include-libraries> tag to include external libraries in the compilation?
                <!-- Include external Flex Libraries -->
                <compiler.include-libraries dir="${PUREMVC_STANDARD}">
                    <include name="PureMVC_Standard.swc" />
                </compiler.include-libraries>
                <compiler.include-libraries dir="${XIFF}">
                    <include name="XIFF.swc" />
                </compiler.include-libraries>
    I never had a need to use <compiler.external-library-path> tag.

  • Strange problem with module WIC-4ESW on 1751-V

    Hi all,
    Cisco 1751-V witch WIC-4ESW IoS : c1700-adventerprisek9-mz.124-4.XC.bin
    CCME 4.0.1
    interface FastEthernet0/1
    description ** To Cisco AP 1200 **
    switchport trunk encapsulation dot1q
    switchport mode trunk
    interface FastEthernet0/2
    description ** To Cisco IP PHONE 7960 **
    switchport access vlan 99
    The strange problem is that in module 4ESW the led of activity they remain fixed, for both of the ports Fa0/1 and Fa0/2. ?_?
    With the previous IOS ( c1700-adventerprisek9-mz.124-5a.bin )the leds they work normally.
    Bha!
    Tnx so much for any answer!

    hmmm.. so u think there is no way to revive the messages?
    Nokia 8800e-1 (ARTE), V 05.21, 30-11-2007, RM-233
    Phones used: Nokia 3600, 6110, 6600, 8210, 8910i, 9500, N70, N91, 8800 SIROCCO
    Sony Erricsson: K900, T610
    Motorola, V3, L7

  • Flex Mobile: Problems with MultiDPI SplashScreen

    Hi guys,
    The property applicationDPI in my application is 160, and I created three bitmaps to 160, 240 and 320 DPI to be used in the SplashScreen.
    I created this class . see : http://www.adobe.com/devnet/flex/articles/mobile-skinning-part2.html#articlecontentAdobe_n umberedheader_5
    package preloaders
        import mx.core.DPIClassification;
        import mx.core.mx_internal;
        use namespace mx_internal;
        public class MultiDPISplashScreen extends CustomSplash
            [Embed(source="assets/mobile160/splash_160.png")]
            private var SplashImage160:Class;
            [Embed(source="assets/mobile240/splash_240.png")]
            private var SplashImage240:Class;
            [Embed(source="assets/mobile320/splash_320.png")]
            private var SplashImage320:Class;
            public function MultiDPISplashScreen()
                super();
            override mx_internal function getImageClass(dpi:Number, aspectRatio:String):Class
                if (dpi == DPIClassification.DPI_160)
                    return SplashImage160;
                else if (dpi == DPIClassification.DPI_240)
                    return SplashImage240;
                else if (dpi == DPIClassification.DPI_320)
                    return SplashImage320;
                return null;
    Ih the main app:
    <s:TabbedViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                applicationDPI="160"
                                preloader="preloaders.MultiDPISplashScreen"
                                splashScreenMinimumDisplayTime="2000">
    The problem is that Flex does not take the correct bitmap if i run my app at 240DPI or at 320DPI (as does the class MultiDPIBitmapSource)and my splash screen is scaled and grainy! :-(
    Can anyone help me?
    Thnks a lot!
    Francesco

    Hi Francesco,
    Setting the application dpi shouldn't affect the splash screen (you can verify by testing when you don't set the app dpi or by debugging the function).  The dpi that gets passed in to the imageClass should always be the runtime dpi.
    I see that in your MultiDPISplashScreen class extends CustomSplash instead of the SplashScreen.  Maybe that could be the issues, where does CustomSplash come from?
    Edit:
    The issue seems to be that in the SplashScreen class we don't undo the automatic dpi scale factor when the scaleMode="none" (the default).  When this is combined with different images per dpi, this will cause the observed behavior.  Setting scaleMode to any other value should fix the issue.
    If you need to have the image centered and not scaled, then you may follow the work-around posted by Uggers at the end of the thread (bottom of the page) at http://www.adobe.com/devnet/flex/articles/mobile-skinning-part2.html#articlecontentAdobe_n umberedheader_5
    Thanks,
    -Evtim

  • Flex application problem with Sql editor

    Hi,
    I get the error message:
    Error in compiling Flex application (1). When deploying a SQL query iView
    I browsed trough som threads, and see that others have  had the same problem. I looked in the log file but, the same message is displayed there.
    My problem is that I only get this message when I use the SQL editor. I can deploy other iViews perfectly fine.
    The sql statment works fine.
    Can anyone help?
    Ingvild
    Message was edited by: Ingvild Nygaard

    Hi,
    Thanks for helping
    In your document you drag one table( order details) into your iView. When you do this you are only getting data from one table right? If do as you do, drag one table into the iView my SQL will be like this;
    Select ""."MATRICS"."PERIOD"."PERIOD_ID" , ""."MATRICS"."PERIOD"."LAST_MODIFIED_TIME" , ""."MATRICS"."PERIOD"."LAST_MODIFIED_BY_ID" , ""."MATRICS"."PERIOD"."FOLDER_ID" , ""."MATRICS"."PERIOD"."PERIOD_NAME" , ""."MATRICS"."PERIOD"."START_DATE" , ""."MATRICS"."PERIOD"."END_DATE" , ""."MATRICS"."PERIOD"."END_DATE" from ""."MATRICS"."PERIOD"
    If I remove the ." and the " I will get my table printed out, and I can deploy the iView.
    My problem was how to join all my tables in the sql editor, I do not understand how this can only be a copy paste operation. So I can not paste in her my SQL from my VC because I do not know how it is suppose to look in VC. In SQLPlus code is:
    SQL> SELECT indices.index_name, period.period_name, MAX(price.bid)
      2  FROM folder, indices, price, series, period,source
      3  WHERE folder.folder_id = indices.folder_id
      4  AND indices.index_id = series.index_id
      5  AND series.series_id = price.series_id
      6  AND period.period_id = series.period_id
      7  AND series.source_id = source.source_id
      8  AND folder.folder_id = '15351'
      9  AND source.source_id = '573'
    10  AND price.trade_date = SYSDATE -1
    11  GROUP BY index_name, period_name;
    I have solved my problem by crating a view in the database. This mayby the soulution ? Or is it possbile to solve it within VC?

  • Flex display problem with firefox !

    Hi,
    I am getting a wierd problem when running my flex app in
    firefox, however it does work fine in IE.
    Can you please find out the reason to why this kind of
    dissimilarity happen.
    Here is my mxml code which displays an orange area on the
    screen.
    According to the width specified in mxml the width should be
    674 pixels but for some reasons it is displaying the widh more than
    900 pixels, I can see the actual width in gradient but am not
    able to get rid of the background orange.
    This does happen when there is already a browser open (IE or
    mozilla). When all the browsers are closed and
    if we run the app from flex ide, it opens perfectly in
    firefox. As soon as I open a new instance of the application
    the problem arises again.
    In IE it is working perfectly fine.
    Pl. help me to find the solution of such a strange problem.
    Thanks.
    Soundarya

    On MacOsx (firefox 3.0.5) the width is correct (674).
    Probably your javascript embed has been messed up for some
    reason.
    It should be something like:
    <embed width="674" height="680" align="middle"
    type="application/x-shockwave-flash" pluginspage="
    http://www.adobe.com/go/getflashplayer"
    allowscriptaccess="sameDomain".../>
    HTH

  • [Solved] rc.conf problems with modules not auto loading

    hi, i have vboxdrv and vboxnetflt in my rc.conf file but they are not loading when i start the computer. They are installed properly, when i use modprobe vboxdrv and modprobe vboxnetflt they both work. I've only been using arch for a few months, but linux in general for a couple of years, I check what log files i could find but i'm not sure what to look for. Thank you for you time. Please let me know what other info to provide. ps system is up to date as of 10/10/2011.
    edit
    apperently this is not the only issue i'm having, acpi-cpufreq is not loading in rc.conf either. Where do i got to find the log for rc.conf? or how to tell why the modules are not loading. Thanks again.
    Last edited by dkjedi (2011-10-11 17:29:07)

    hope this isn't too log of a post:
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_US.UTF-8"
    HARDWARECLOCK="localtime"
    TIMEZONE="America/Los_Angeles"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    MODULES=()
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="myhost"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    # DHCP: Set your interface to "dhcp" (eth0="dhcp")
    # Wireless: See network profiles below
    #Static IP example
    #eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
    eth0="dhcp"
    INTERFACES=(eth0)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.0.1"
    ROUTES=(!gateway)
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    #NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(syslog-ng netfs crond dbus wicd alsa fuse atd acpi-cpu-freq vboxdrv vboxnetflt !network)

  • Flex + cairngorm problem with 2 webservice

    hi i want to retrive data from 2 webservices using cairngorm.  flex can get data from the firsone and from the second is telling that doesn't see method, for me it is cos service it trying to find method from second webservice in this firstone. so when shoudl i call second service? or how can i clear service, i am sure that i call proper method.
    public function runApp():void
        services.serviceURL = "http://localhost:84/Service1.asmx?wsdl";
        new GetService1Event().dispatch();
        services.logout();
        services.serviceURL = "http://localhost:85/service2.asmx?wsdl"
        new GetService2Event().dispatch();   

    Hi,
    check the type of sandbox when you run it localy and from server.
    Security.sandboxType

  • Problem with CSS files when placed in multiple locations.

    Hi,
    In our application we have a folder structure for the code files. Folder structure looks something like the one shown below:
    ABC
    ---Scripts
    ---Stylesheets
    DEF
    Scripts
    Stylesheets
    Common
      ---Scripts
      ---Stylesheets
      The problem is, if we create a CSS file and place it in its module specific folder (Eg: ABC) to which it belongs to and call the CSS on a page, then the styles are not getting applied to the page. But if we move the stylesheet to the Common folder, then page renders properly. In common folder, we already have a common CSS which is used across the project.
    Facing similar problem with module specific and common js files.
    We have to move all the module specific files to the module folders and all the common files to be placed in the Common folder.
    MII Version: 11.5
    Please help!
    Regards,
    Rajesh.

    Rajesh,
    Also note that, If your html is referencing to multiple css files then the last referenced CSS file style classes will override all the style class having same names in the previous css files.
    for example,
    say CSS1 has
    .bodycolor
    background-color:yellow;
    .button
    color:red;
    h1
    font-size:50pt;
    and CSS2 has
    .bodycolor
    background-color:red;
    .button
    color:yellow;
    And your HTML is,
    <html>
    <head>
    <link rel="stylesheet" type="text/css" href="css1.css"/>
    <link rel="stylesheet" type="text/css" href="css2.css"/>
    <title>CSS Test</title>
    </head>
    <body class="bodycolor">
    <h1>Hello World</h1>
    <input type="button" class="button" name="B1" id="B1" value="      Click         " size="50">
    </body>
    </html>
    In this case the classes "bodycolor" and "button" will be overridden by css2 file but h1 will be taken from css1
    Hope this helps!!
    Regards,
    Adarsh

Maybe you are looking for