[Flex 4] Application not including Spark Components

I'm building a module-based application where a main application SWF loads several Module SWFs to serve in the app. I have noticed a strange problem in loading the Modules. If I don't have a certain component (for example: spark.components.Panel) manually compiled into my application SWF, it will not compile in at all. I assumed that the entire Flex framework was automagically compiled into the main SWF (or in a RSL) by default.
Perhaps I've set things up wrong. I am building the project with Ant, so my tasks look like this:
<!-- compile the main application -->
<target name="compile.main" depends="flex.setup">
     <mxmlc file="${flex.src.dir}/application.mxml" incremental="true"
               output="${flex.main.file}" debug="true" link-report="${flex.linkreport.file}">
          <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
          <load-config filename="conf/project-config.xml"/>
     </mxmlc>
</target>
<!-- compile modules -->
<target name="compile.modules" depends="flex.setup">
     <mxmlc file="${myApp.module.file}" load-externs="${flex.linkreport.file}"
               output="${forum.module.output.file}"
               incremental="true"
               debug="true">
          <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
          <load-config filename="conf/project-config.xml"/>
     </mxmlc>
</target>
Both of those targets are of course pointing to a configuration file, which I have here:
<?xml version="1.0"?>
<flex-config>
     <target-player>10.0.0</target-player>
     <compiler>
          <source-path append="true">
               <path-element>../src</path-element>
          </source-path>
           <library-path append="true">
                <path-element>../lib/as3commons-lang-1.0.0.swc</path-element>
                <path-element>../lib/as3commons-logging-1.0.0.swc</path-element>
                <path-element>../lib/as3commons-reflect-1.0.0.swc</path-element>
                <path-element>../lib/as3corelib.swc</path-element>
                <path-element>../lib/flexunit-4.0.swc</path-element>
                <path-element>../lib/flexunit-lib-1.0.swc</path-element>
                <path-element>../lib/flexunit-uirunner-4.0.swc</path-element>
                <path-element>../lib/hamcrest-as3.swc</path-element>
                <path-element>../lib/monsterdebugger-2.0.4.swc</path-element>
                <path-element>../lib/spring-actionscript-core-0.8.swc</path-element>
                <path-element>../lib/swfaddress-2.3.swc</path-element>
           </library-path>
     </compiler>
</flex-config>
I am not having any problems or warnings in compiling the above code. Is there something I'm missing here? Do I have to manually embed the classes/swcs? I'm using Flex 4.0.0.7219.

How can I use the RSL? I already have this chunk in my {FLEX_HOME}/frameworks/flex-config.xml:
   <!-- runtime-shared-library-path: specifies a SWC or directory to link against and an RSL URL to load with optional failover URLs -->
   <!-- TextLayout SWC -->
   <runtime-shared-library-path>
      <path-element>libs/textLayout.swc</path-element>
      <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.0.0.7219/textLayout_427.swz</rsl-url>
      <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
      <rsl-url>textLayout_427.swz</rsl-url>
      <policy-file-url></policy-file-url>
   </runtime-shared-library-path>
   <!-- Framework SWC -->
   <runtime-shared-library-path>
      <path-element>libs/framework.swc</path-element>
      <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.0.0.7219/framework_4.0.0.7219.swz</rsl-url>
      <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
      <rsl-url>framework_4.0.0.7219.swz</rsl-url>
      <policy-file-url></policy-file-url>
   </runtime-shared-library-path>
   <!-- Framework_textLayout SWC -->
   <runtime-shared-library-path>
      <path-element>libs/framework_textLayout.swc</path-element>
      <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.0.0.7219/framework_textLayout_4.0.0.7219.swz</rsl-url>
      <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
      <rsl-url>framework_textLayout_4.0.0.7219.swz</rsl-url>
      <policy-file-url></policy-file-url>
   </runtime-shared-library-path>
   <!-- Flex4 SWC-->
    <runtime-shared-library-path>
      <path-element>libs/flex4.swc</path-element>
      <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.0.0.7219/flex4_4.0.0.7219.swz</rsl-url>
      <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
      <rsl-url>flex4_4.0.0.7219.swz</rsl-url>
      <policy-file-url></policy-file-url>
   </runtime-shared-library-path>
   <!-- RPC SWC -->
    <runtime-shared-library-path>
      <path-element>libs/rpc.swc</path-element>
      <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.0.0.7219/rpc_4.0.0.7219.swz</rsl-url>
      <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
      <rsl-url>rpc_4.0.0.7219.swz</rsl-url>
      <policy-file-url></policy-file-url>
   </runtime-shared-library-path>
Since these are present and I'm still getting the error, what is going wrong? I assume that Flex is failing over to the Adobe hosted RSLs, but I don't know. Because I'm loading multiple flex-config files for my application, would that affect what I'm doing?

Similar Messages

  • Optimizing Flex Mobile Applications(not Games)

    I have now been developing aplications for Mobile devices using Flex framework for quite a  while and published 3-4 apps to marketplaces. But if we see the performance of the AIR apps as compared to the Native ones, its still not that much smooth.
    Any idea how I can optimize the Flex applications? There are resources avaialable for optimizing games but in case of Apps it is something different. The issues are like, buttons are not sometimes that much responsive to touch events, the screen transitions are not that smooth etc.
    Also I would like to know how to create Apps using only ActionScript as I guess they might be smoother as compared to the Flex version. But if it is created using AS3 only, how to best manage the screens so that they don't take up too much memory and give native like performance.

    You can't achieve native performance in most situations. Doing anything ARM/Flash-centric you will always find spark native components are slower than their native counterparts. Even hand-coding them (e.g. blitting) will get you no more performance, just more lines of code and more headaches.
    This should be obvious.
    Aside that you need to weigh in that the code base you build for your app can mostly be used to output an app for several other targets (if you speak XCode). AIR for IOS, Android and Blackberry. That's both phones and tablets. Also Desktop Mac OSX and Windows as well as the Web (without AIR).
    So if you want native performance, be prepared to build your app from scratch several times. The performance loss of going the Adobe route gives you the flexibility of exporting your app to multiple targets. That justifies the so-called "boggy" performance for me and my multi-billion dollar clients.

  • What is the correct procedure to install a TCS application not included in the initial installation?

    I can go through the installation procedure to the point when I've switched to the 2nd DVD. Setup resumes and a few seconds later states that no application was installed.
    I'm adding Captivate to my initial installation of FM9, Acrobat9 and Photoshop. I'm not uninstalling them first. Should I? Why?
    The initial installation was a year ago. The OS is Windows 7.
    TIA
    Douglas

    On 06/01/2011 10:12 PM, Jeff_Coatsworth wrote:
    So you already have TCS2 but didn't install the full suite the first time around? So now you just want to add Captivate? I believe in that case you just select it off the list. The installer skips all the ones that you haven't selected and only does the one you have. I think Captivate is on the 2nd DVD (at least it was on the TCS2.5 upgrade one I got), so you may have to start with that one first.
      Yes, I just want to add Captivate. I've been successfully doing the  canonical installation (DVD1 > setup (autoplay wouldn't work due  according to the error message to a  Unicode error in the lang.dat file)  up to the switch to DVD2.
    As far as starting from DVD2 is concerned, there's no setup file on it  to launch. So that route is out.
    Another option (because some have reported issues with installing from DVD) is to copy the contents of both DVDs to a temp folder on your hard drive and start the install from there.
      Copying DVD2 to the HD might be a solution. Unless data is somehow  corrupted on DVD2, but in that case, why did the original installation  succeed?
    Thanks again for your prompt answers.
    Best regards,
    Douglas

  • How to Detecting Network Connectivity(internet is on or off) in Flex web application?

    Hi
    Detecting Network Connectivity in Flex web application not in AIR Application.
    how to check wheather internet is on of off in PC via Web appliaction in Flex?
    Thanks
    Sunil

    Thank You  very much  yancaoshi

  • Where Can I Find Components And Footprints Not Included In The Circuit Design Suite Databases?

    One of the most common questions asked by users of the Multisim and Ultiboard suite is about finding components. From time to time you may come across the need of a particular component or footprint (lanbdpattern) that is not included in the master databases. So where can you look for these components? There are multiple places to begin your search, both 3rd party and from NI that are free and readily accessible:
    One of the long-standing free resources is the Kittmaster's Component Database which is maintained by Kittmaster (Chris) one of our proven active veterans of this board as well as a Beta Tester of the Circuit Design Suite. You will find a vast collection of already built parts in Multisim and Ultiboard formats that have been submitted by users like you that have register on kittmaster's database and that actively upload custom component creations. I encourage you to register and share.
    NI has recently created the Circuit Design Community in response to requests from users around the world. The Circuit Design Community aims to provide an open resource for designers that need or would like to share Multisim components, Ultiboard footprints, sample design files and other documents that are of use for the design community. The basic difference between the Circuit Design Community and this Circuit Design Discussion Forum is that the Community is tailored for document and file sharing, whereas the Forum is designed with problem solving, tip sharing and general support questions in mind. Again, I encourage you not only to search, but also to share any components you may have created that are useful for other designers.
    Most manufacturers that offer SPICE or PSPICE models in their websites would typically allow you to download them free of charge, in most cases accepting a license agreement. The first step is to identify who the manufacture of the part you are looking for is, as well as cross-reference manufacturers. Then search in their corresponding websites for the product folder or design resources section. If you find SPICE or PSPICE models you can easily import those when creating a new component, remember that Multisim is highly compatible with PSPICE models, and every new release adds more compatibility. If you cannot find the model, it does not hurts to call or email the manufacture and ask directly if they have such models, in many cases they are not advertised in the web.
    Last, but not least, use your favourite internet search engine and see if anyone out there has posted or worked on a similar model.
    Thank you for using the support resources and I hope that these options fulfill most of the component searches that you may need to do.
    Message Edited by nestor on 04-14-2009 02:52 PM
    Nestor
    National Instruments

    You can have a look at some established projects that are using similar tools - where do they put the application files etc.
    There are things like XDG_CONFIG_HOME, XDG_DATA_HOME etc. http://standards.freedesktop.org/basedi … atest.html

  • Flex 4 web application not loading (blank white swf)

    We've recently updated our code-base from the Flex 4 Beta 2 SDK to the Flex 4 final SDK.  The release builds using the final SDK do not load on all user's machines (the Beta 2 builds were all ok).  The flash player version varies on our systems, but in all cases the version is higher than 10.0.  All machines (we all use Win XP sp3) with the debug player will load the release version without a problem.  Some machines with the non debug player will load the application, others will not (it loads to a blank white swf and the Flex SDK does not load (the preloader is not visible)).
    In the compiler settings in Flash Builder 4, I've tried to add -debug=false -optimize=true but that had no effect.  I've also done a search for any debug-only code in the application (there are 2 "trace" statements in there) and have commented that code out.  Also no effect.
    Any suggestions as to where I should look next?

    Yup, we tried that, but it didn't fix anything.
    One thing we did do was go to http://kb2.adobe.com/cps/155/tn_15507.html on all of the computer where it didn't work.  After going there, the site loaded fine.  I'm not sure if going to the site had anything to do with it (I don't see how it would), but in all cases, after visiting that site, the application loaded fine.  Very strange.  I guess it could be that one of our load balancing servers wasn't serving the application correctly and it fixed itself in the time that we went to that site.
    Is it posible that the Flash player was not registered on the system correctly and by visiting that site, it registered correctly?

  • Why it is popular applications are not included in the official repo?

    Why it is very popular applications like yaourt (GPL), pacman-color (GPL) and many other free programs are not included in the official repositories?
    Why not create an official "non-free" repository for popular non-free software?

    There will never be an AUR helper in the official repositories because it runs counter to the AUR policy - which is: it's unsupported, so we're not facilitating its use. You need to be aware about the potential drawbacks of its usage, which involves getting you, the user, to make that call to install an AUR helper - which involves more than just calling pacman. Can't comment on pacman-colour, but apart from colour, it doesn't really add any functionality afaik .

  • Application Loader ERROR ITMS-90072: "The IPA is invalid. It does not include a Payload directory."

    Hello -
    The below error is being received when submitting an app via Application Loader (3.0).
    Application Loader ERROR ITMS-90072: "The IPA is invalid. It does not include a Payload directory."
    Has anyone encountered this issue?  If so, please advise on how to resolve.
    Many thanks in advance.

    This is an error with Apple's submission verification and you will need to open a developer support request with them. See Re: "Invalid Bundle." "...viewer.app does not support the minimum OS version specified in the Info.plist" for more details.
    Neil

  • PDF Not loading anymore on Flex Air Application

    Hi,
    Ever since I updated my Adobe Readed to Version 11, I can't view any PDF on my Flex Air Application anymore. Is there anything i need to do?
    AIR version: 3.6
    OS: Mac OS X
    Flex Builder: 4.6
    Adobe Reader: 11.0.02
    Flex components used: mx:HTML
    Please help.
    Thanks!

    Yes.  This is a well known bug in Air/Google Maps.  A lot of folks reported it on the Google Maps forums and here.  It was reported over a year ago with no action yet.  Major show stopper.
    For this main reason, I switched to the http://developer.mapquest.com AS3 API.  Plus they also recently released a Mobile Flash API that works great.
    I suggest you check it out because I don't anticipate any action on this issue on either side any time soon.
    Good luck!
    Don

  • Flex Application Not loading in case of using RSL.

    If anyone can help, I release my Flex Application using RSL but now this appication is not loading on some system. I upload application.swf and framework_3.0.0.477.swz and also crossdomain.xml but application not uploading and getting error  #2032.

    Search the internet for solutions for that error.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Identical flex-air applications do not compile

    I'm having terrible difficulty with writing Air Applications for compiling with the flex 3.2 SDK.
    I have two identical basic flex air applications, but one will not compile, the other will.
    When I try to run the application from flex builder the first app runs fine while the second one doesn't.
    any ideas?
    http://www.andy-hayes.com/download/TestApp.zip
    http://www.andy-hayes.com/download/TestTransparentApplication.zip
    I've just about had enough of flex builder's bs. tbh.

    Hi Randy,<br /><br />This forum really isn't the place to try to get support on app compilation.  We try to keep discussion here to development of the SDK itself.  I'd suggest looking at the regular Flex forums or flexcoders and posting more details as to the error you're seeing.<br /><br />Matt<br /><br /><br />On 1/13/09 3:51 AM, "randy gland" <[email protected]> wrote:<br /><br />A new discussion was started by randy gland in<br /><br />Developers --<br />  Identical flex-air applications do not compile<br /><br />I'm having terrible difficulty with writing Air Applications for compiling with the flex 3.2 SDK.<br /><br />I have two identical basic flex air applications, but one will not compile, the other will.<br /><br />When I try to run the application from flex builder the first app runs fine while the second one doesn't.<br /><br />any ideas?<br /><br />http://www.andy-hayes.com/download/TestApp.zip<br />http://www.andy-hayes.com/download/TestTransparentApplication.zip<br /><br />I've just about had enough of flex builder's bs. tbh.<br /><br />________________________________<br />View/reply at Identical flex-air applications do not compile <a href=http://www.adobeforums.com/webx?13@@.59b78044><br />Replies by email are OK.<br />Use the unsubscribe <a href=http://www.adobeforums.com/webx?280@@.59b78044!folder=.3c060fa3>  form to cancel your email subscription.

  • Hi, I am from Palestine trying to use visa card to purchase an application. It doesn't work because my country seems not included in the list. I hope to find a solution for that . Thanks in advance

    my country is not included for visa card options

    Nope. You can only have one credit card attached to an account at a time. Its not that big of a deal to use two accounts, users do this all the time. Create the second account(UK Account) in iTunes on your computer...sign out of your Italian account first. Then authorize your computer for this new account: Store>Authorize this computer. Then sync your phone. Now, to switch accounts on your phone: Settings>Store...tap the ID shown...sign out...then sign back in with the ID you want to use.

  • Spark components in pure AS3

    How do I use Spark components in Flex if I'm coding a pure Actionscript file? I want to use components like the Checkbox and NumericStepper in my project, but I'm not up to the task of learning MXML
    It seems that the addChild function doesn't add those components to the parent.

    Is your parent container a Flex control too? If so, then Flex componens are added using the .addElement() method of the parent. The parent needs to descend from the Group component to have this method, e.g. an Application, a View or similar. Info here:
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf62b90-7fe9.html
    Adding Flex components to a plain MovieClip in Flash CS5.5 is a lot more complicated, because Flex does a lot of work behind the scenes that you'd have to take over. Info here, esp. in the comments:
    http://seeing-is-believing.blogspot.com/2007/11/flex-components-in-flash-example-with.html
    MXML is actually quite easy once the penny drops, especially if you already know Flash/AS3, and makes  a lot of things much siimpler and quicker to implement.

  • [svn:fx-trunk] 13288: Changing the workaround for custom whitespace preservation in spark components in order to cater for fixes to SDK-24699 and SDK-24611 .

    Revision: 13288
    Revision: 13288
    Author:   [email protected]
    Date:     2010-01-05 15:21:57 -0800 (Tue, 05 Jan 2010)
    Log Message:
    Changing the workaround for custom whitespace preservation in spark components in order to cater for fixes to SDK-24699 and SDK-24611.
    We now preserve whitespace for all of the spark "text" tags at compile time (but not only-whitespace content if an alternate text attribute was specified).
    QE notes: Please ensure that whitespace preservation continues to work, including for the scenarios mentioned in previous issues SDK-22601, SDK-23160, SDK-23972.
    Doc notes: N/A
    Bugs:
    SDK-24699 - Binding does not work with Spark TextInput "text" property
    SDK-24611 - MXML compiler should preserve whitespace in FlowElement tags (such as
    Reviewer: Paul
    Tests run: checkintests, mustella RichText, List, TextArea (the 2 baseline position failures existed prior to these changes)
    Is noteworthy for integration: Yes
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24699
        http://bugs.adobe.com/jira/browse/SDK-24611
        http://bugs.adobe.com/jira/browse/SDK-22601
        http://bugs.adobe.com/jira/browse/SDK-23160
        http://bugs.adobe.com/jira/browse/SDK-23972
        http://bugs.adobe.com/jira/browse/SDK-24699
        http://bugs.adobe.com/jira/browse/SDK-24611
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/MxmlScanner.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/Node.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java

    This bug figures out also when creating a custom spark ComboBox, then trying to programatically update the userProposedSelectedIndex property. The proposed selected index is selected, but does not apply the same skin as when mouse is on rollover or item is selected due to up and down keys.
    The issue seems like updating the status of the item renderer to rollover or selected to get the same skin applied.
    Please could you attach DropDow nList.as that you edited ?
    Thank you so much.

  • Flex 2 SWF not loading on the web browser when Flash Player 8 is running

    I got a Flex 2 application that is not loading on the web
    browser when the users workstations got Macromedia Flash Player 8
    installed. Please advice on what could be the issue, i got security
    calls included i.e. securty.allowInsucureDomain, crossdomain.xml,
    etc.
    The application shows no issues on web browsers with Flash
    Player 9 installed.

    if you have read developersGuide it says that there somewhere
    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part2_DevAp ps_048_1.html
    here is workaround
    http://kb.adobe.com/selfservice/viewContent.do?externalId=749eaa47&sliceId=1
    flex 9 is complete rewrite (almost) and its lot mor fast and
    effecient) you should't want to use flash 8 if you can anyways, but
    somethimes I guess there is not other way out..

Maybe you are looking for