ASC 2.0 ant - does not load compiler constants from config.xml files

Constants added to the mxmlc task with a config xml file do not work.
Below, the CONFIG::debug and CONFIG::release constants will compile, but the one defined in the config-common.xml file (CONFIG::pi) does not.
Portion of an ant macro:
<mxmlc
file="@{source.dir}/@{source.file}"
output="@{output.dir}/@{project.name}.@{output.extension}"
debug="@{debug}"
target-player="@{target-player}"
accessible="@{accessible}"
use-network="@{use-network}"
swf-version="@{swf.version}"
inline="@{inline}"
default-frame-rate="@{frameRate}"
>
<default-size width="@{width}" height="@{height}" />
<source-path path-element="@{source.dir}" />
<define name="CONFIG::debug" value="@{debug}"/>
<define name="CONFIG::release" value="!CONFIG::debug"/>
<load-config filename="config-common.xml" />
<load-config filename="config-as-beta.xml" />
<load-config filename="@{load-config}" />
<arguments />
</mxmlc>
contents of config-common.xml:
<flex-config>
<compiler>
<define append="true">
<name>CONFIG::pi</name>
<value>3.1415926535897932384626433832795</value>
</define>
</compiler>
</flex-config>
Compiling a ".as" file with something something like "trace(CONFIG::pi);" will result in "Error: Can not resolve config constant: 'pi'" with the ant macro.
Using the Flash Builder 4.7 compiler with "Addition compiler arguments" set to "-define+=CONFIG::debug,true -define+=CONFIG::release,false -load-config+=config-common.xml -inline" does not produce the error. 

I'm not sure I added the bug to the right place anymore.  It's been added to bugbase.adobe.com under AIR 3.4, but  I'm not sure if that covers the actionscript compiler 2 or not because I found another bug tracker at bugs.adobe.com.  The actual bug is here: https://bugbase.adobe.com/index.cfm?event=bug&id=3339017
Does anyone know where to post bugs for the actionscript compiler 2.0?

Similar Messages

  • [svn:osmf:] 17548: Remove left-over event handler, which could trigger an unnecessary event if a player loaded plugins through the config XML file and manually  (e.g.

    Revision: 17548
    Revision: 17548
    Author:   [email protected]
    Date:     2010-09-01 14:09:14 -0700 (Wed, 01 Sep 2010)
    Log Message:
    Remove left-over event handler, which could trigger an unnecessary event if a player loaded plugins through the config XML file and manually (e.g. for static plugins).
    Modified Paths:
        osmf/trunk/libs/samples/ChromeLibrary/org/osmf/chrome/configuration/PluginsParser.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Ecore diagram editor does not load when I click the (aird) file

    When I click on an aird file , which I created for the first time to graphically edit an ecore diagram, the diagram editor does not load, but instead, Eclipse opens the aird file as xml in a text editor! Why this is happening? and how can I solve this? any thoughts?
    I am using Eclipse 4.4.2. in mac.
    I updated the content, with the hope to get a reply.

    Hi, sorry for the lag.
    This might happen depending on the perspective you are using, please try with the "Modeling" perspective.
    You should be able to load the .aird using right-click=>open and then see the corresponding diagrams as childs of the .aird file.

  • Trying to dynamically load CSS for project at compile time via config XML file to select CSS file.

    I'm using the same code base to compile different versions of a project. Each project has different base fonts. I've created multiple css files that use the same style names. The idea being that in the code I reference the style names, then the loaded CSS determines which font (and size, color, etc) is used for each style name.
    The CSS files are compiling to SWFs, and those SWFs are referenced in config.xml files. Before compiling, I select the config file to use.
    I am loading the CSS SWF files via the StyleManager in the Application.mxml, like so:
      styleManager.loadStyleDeclarations( _contentData.elements( 'cssPath' ).@path )
    The path traces out correctly as:
    assets_embed/styles/project2.swf
    For some reasone I must include an fx:Style line in the Application.mxml file or no fonts are recognized. Example:
      <fx:Style source="assets_embed/styles/project1.css"/>
    If I reference the css for project one (as done above) then most, but not all, styles work. Some styles reference the fonts from the project 1 css, others properly use fonts from project 2 swf. If I point to the CSS for the project I'm compiling in the <fx:Style > tag then all fonts work, but that defeats the goal of using XML rather than code to identify the styles.
    So, why do I need the fx:Style line if the css is being loaded via StyleManager?
    Why is there "cross talk" between style definitions?
    Is there a better way to select styles at compile time?

    I read this quickly so I might have missed a detail.  I think your describing an issue with recent Flex releases that is described in the fine print somewhere.  If you don't have any fonts embedded in the main app and are only bringing in fonts embedded in CSS SWFs, you have to force-link the EmbeddedFontRegistry by adding something like this to the main app's script block.
    import mx.core.EmbeddedFontRegistry; EmbeddedFontRegistry;
    (Yes, "EmbeddedFontRegistry" is in there twice, once to define the fully qualified name, the other to create a class dependency to force the linking).

  • Safari does not load frames triggered from within other frames?

    I am a new to Safari and I like the browser very much. I have run into a nasty problem though, that I was unaware of earlier on when using other browsers.
    Some time ago, I made a website that makes extensive use of frames. The index page is actually a frameset page that loads information into the main frame. Through a basic JavaScript in this main frame, additional information is loaded into other frames on the frameset page. Whenever the user hits a link in the main frame, the JavaScript updates the other frames.
    This has always worked fine in Netscape, Firefox, Internet Explorer and Opera, both on the Mac and Windows platforms. BUT not in Safari.
    Can anybody help me out? What am I doing wrong that Safari refuses to execute what other browsers seem to accept as normal?
    I removed the actual site temporarily, as I don’t want to block off Safari users. Yet I created a very basic mini-site that may explain the problem. This mini-site can be accessed at:
    thttp://www.chem.kuleuven.be/safety/grrrrh/start.html
    Try it out with any of the mentioned browsers and then with Safari and you will see what I mean. To access the code, use one of the other browsers and download the frameset page completely. All 5 documents are truly basic and therefor very short. They only show the principle, no whistles, no bells.
    If this kind of question would not belong to this forum, can anyone point me to one that deals with this type of problems?
    Tx fpr helping me out.
    PowermacG5   Mac OS X (10.4.4)   Safari 2.0.3

    Dear Tom & Andy,
    thanks for taking the time to look into my problem.
    I didn't know Safari is really picky on code, so will remember that for the future. Tx for the suggestion, Tom.
    But things are getting even weirder!
    First of all to set things straight, I am on the same versions of Safari and Firefox as the both of you and tested the minisite in Netscape 7 & 8, IE 5 (Mac) & 6 (Wintel) and Opera 8. As I stated eearlier, none of these have trouble reading and interpreting the "messy" code in www......start.html. Only Safari had.
    But when I access my minisite now via the Internet, Safari renders all frames OK. I can see grey, yellow and pink frames with text, as it should be. So now I see what you see also, Tom. The previous problem, as you obviouslyencountered also, Andy, has mysteriously disappeared. Strange.
    Adding insult to injury, when I download all five files from the minisite (start.html, main.htm, nav.htm, banner.htm & Frames.js) and put these in a folder on my local disk, the problem resurfaces again when I click start.html.
    Adding a DOCTYPE statement to the start.html file on my hard disk does not help either.
    Firefox and the other browsers mentioned still do a perfect job rendering the framepage from the downloaded content irrespective of whether the DOCTYPE statement is present or not. Only Safari refuses.
    The only difference I can see between the www....start.html filee and the one from my hard disk is the way I access them: via http or straight by double-clicking.
    I am still (and even more) puzzled.

  • Loading multiple data from a XML file?

    Hi,
    I'm having trouble loading multiple data from the same XML file. In this XML file I have a list of dishes I want to add into a menu. So, how can I load multiple data from different branches of the XML file into my text fields?
    Thanks in advance,
    Rafael Carignato

    I'm not quite sure what you are trying to do.  I have this working with a .JSON file that loads "multiple" date into "multiple" fields in Edge - Is that what you mean?
    Here's an example:
    $.getJSON('slides.json', function(data) {
              for(var i=0;  i<data.length;  i++)
                                  var s = sym.createChildSymbol("slide", "stage");
                                  s.$("photo").css({"background-image":"url('"+data[i].image+"')"});
                                  s.$("title").html(data[i].title);
                                  s.$("price").html(data[i].price);
                                  s.getSymbolElement().css({"position":"absolute",
                                                      "left": i*225+50+"px",
                                                      "top":"100px"});
    Each name above (photo, title, price) has an element on the stage (or in my case, a symbol) and my .JSON file has has a "branch" for each of these:
    "image" : "images/7783.jpg",
    "title" : "SNOCONUTS",
    "price" : "12.00"
    Hope that helps...
    James

  • How to load a variable from an XML file?

    I need to use an XML file so I can update one variable every
    once in a while.
    Let's say I want to load Variable "foofie" into a flash
    movie, and the XML says that "foofie" is 11.
    What code do I put in my flash file to read what 'var foofie'
    is from an XML, and what do I put in the XML so I can frequently
    update what number is stored in 'foofie'
    Thanks!

    look up XML.load(url) in flash help, it's fairly simple
    in the xml you put, for example
    <foofie>11</foofie>
    if foofie is in a database or some other dynamic place,
    (which I assume, since you want to frequently update to its value)
    you need to write a script, in php for example, that returns the
    desired xml data

  • Loading multiple tables from one xml-file

    I've got one xml-file containing information which should be loaded into multiple database tables. How can I do that?

    Please use XSLT to tranform to XML file with XSU recognized format and separated for different table input.
    You may refer to Example in book "Building Oracle XML Applications".
    null

  • Firefox 3.6.12 does not load nay images from Joomla sites 1.5.21 and above. Works on Safari but Not Firefox. This happened after the firefox upgrade. All Joomla 1.5.20 and below work ok. why is this happening?

    I have been developing Joomla sites for more than 4 years now and generally all the Joomla sites work well in Firefox. In this case, however, ever since Joomla upgraded to 1.5.21 and above, all Joomla sites on this level are having problems with Firefox 3.6.12 loading images.
    We have tested a number of Joomla template manufactures and all the results are the same.
    This problem is with the macbook pro only thus far. All the other apple products, like the towers, etc. are fine.
    Not sure why this is happening. Any advice would be greatly appreciated,
    Thanks,
    Leland

    Thanks a lot for your swift response. And sorry if it was a bit too hectic to go through my detailed query (which I did because it was misunderstood when I asked previously). As I've mentioned above, I was informed that updating to 5.0.1 would '''require''' me to '''delete''' the current version and then install the new one. And doing so will involve losing all my bookmarks. I guess I should have been more specific and detailed there. By losing, I didn't mean losing them forever. I'm aware that they're secured in some place and deleting and installing the software doesn't harm its existence. What I meant that if I install the new version, I'd have to delete the old one. And after installing the new version, I'd have to transfer them (bookmarks) back from wherever they are. Get it? When it updated from 3.6.9 to 3.6.13, and from 3.6.13 to 3.6.18, I didn't need to follow that process. They were already present on their own.
    BTW, I'm having no problems with 3.6.18 but after learning about the existence of version 5.0.1, I'm a bit too eager to lay my hands over it.
    Thanks for your help; hope this wasn't extremely long.

  • Ipod does not load any songs from itunes and freezes alot!!!!

    I plug in my ipod and itunes opens and says that it is updating but nothing happens. I downloaded itunes 6 again, and then tries updating the ipod again and it said that it is updated. When i try to load music sometimes switching between disck mode an regular helps, but it isn't doing a thing now. I don't know what to do. PLS HELP!!!!

    yea i guess that could be possable. i guess with 16,000 songs and only 13 did not transfer to ipod i should be happy but this is mac not windows so i would like to think the soft ware would work without flaws.. as for all my dupes i put over 1500 cds in my itunes library. a lot of the cds were various artists etc. that is y i have so many dupes. my imac has a 500g hard drive so i have plenty of space left on my hard drive. i have 2 external hard drives where my music is backed up.i have a 1terrabit lacie that i just use for time machine and a 500g lacie to back up my music and other stuff. iwould never trust my music to be backed up on only 1 external hard drive. if it died my music would be gone forever. thats y i use 2 external hard drives

  • Apple TV does not load rented items from iTunes in less than three (3) hours depsite YouTube, Netflix and network being fine.  How can I get Apple to actually provide the iTunes service I am paying for?

    I'm just tired of waiting on this inept device and it's underserved iTunes counterpart being unable to deliver enough bandwidth to load a show within a reasonable amount of time.  I'm a big Apple fan and an equally big critic.  This whole rig is a big FAIL so far, Apple.  There is nothing ON DEMAND about the iTunes Store at this point.  Netflix and YouTube work better on Apple TV than their own iTunes Store!  And, this has been going on for a few years now, unremedied, and is only getting worse with more people buying these devices!  I do not reccommend this device to people like I used to.
    The good news is, that iTunes will give refunds about 85% of the time if I explain my problem the way I have here.  SO, ATTENTION: EVERYONE WITH AN APPLE TV: If you have this same issue with iTunes Store not properly serving your paid content, do not hesitate to ask for your money back.  It's the least they can do for the amount of life wasted waiting for a show to load.  Not to mention, all the disappointments with the kids at bedtime and when my wife and I want to just relax and turn something on.
    Bottom Line: ITUNES IS UNDER-SERVED!!!
    OR
    There is a massive conspiracy by cable and DSL ISPs against Apple taking away TV viewers.  Is it possible the ISPs are somehow limiting or buffering the data packets coming through the port(s) employed by iTunes Store?  Like I say, with me and many others on this forum, the problem lies solely with iTunes Store.  Youtube, Netflix, Podcasts and everything else generally serve up just fine.  The iTunes Store, however, is a consistent failure.  Something that seems unusual for Apple not to address, being so customer-centric and all.
    Please share any links or insights you have here so the faithful might get to the bottom of this incredibly annoying problem. I WANT MY ATV!

    There is a massive conspiracy by cable and DSL ISPs against Apple taking away TV viewers.
    Most networks are overloaded and operating at full capacity.  However, a solution is coming.
    Technology experts are working on a movie storage system where YOU have physical possession of the movie.
    This system stores the movie digitally on an optical disk system that will not be dependent upon a congested, complicated, and fragile network.
    Because all of the data is stored only a few feet from your television, all the bottlenecks are removed.  Performance and reliability are virtually flawless.
    Further, the system will not utilize any form of security codes, authentications, or passwords. Once the optical disc is purchased it can be moved around freely at will, and can even be lent or given to friends and neighbors with zero hassles.

  • Select a VI on function block does not load VI anymore

    Is there any reason why select a VI does not load a VI from my disk. It worked fine before. What could I have done to disable it?

    oneillco wrote:
    Yes. I saw that one. I did install anti virus. That's it.
    Your response is very ambiguous. What do you mean by "that's it"?
    Was installing the AV the problem or was it simply all you did? Does disabling the AV fix the problem?
    What is the name and version of the AV program? (e.g. avast does not seem to like LabVIEW at all, but causes different problems)
    LabVIEW Champion . Do more with less code and in less time .

  • Reader X, stopped loading, installed XI does not load

    Reader X stopped loading. Decided to install XI. Rebooted PC, but reader still does not load. Removed from Control panel, re-installed, same result. Re-booted PC, control panel selected Repair. No errors, but still does not load.
    Any suggestions?
    Thank you,

    You can try using this tool to remove all traces of previous version(s) of Reader:
    http://labs.adobe.com/downloads/acrobatcleaner.html
    Then, you may download the offline Reader installer from
    http://get.adobe.com/reader/enterprise/
    After downloading, restart your computer and run the installer before doing anything else.

  • Imovie 09  (8.0.6) does not load iphoto picture library anymore

    I had a double change,
    1st: imovie update to 8.0.6 2nd: a new external hard disc for iphoto and imovie (the previous disc died).
    since then imovie shows the video's from iphoto in the event library, but does not load the pictures from iphoto in the picture library. it keeps stating loading iphoto pictures, but they never appear
    any idea's??

    Hi - I have a very similar problem I think.
    Just bought a new iMac and have latest versions of iMovie, iTunes and iPhoto - yes I have checked.
    Trying iMovie for the first time - cannot see anything listed where they are supposed to be in the media browser window.
    Looking at the intro to iMovie etc it clearly shows the folder structures - I get nothing showing at all.
    Reading through the posts here it seems that there is a bug to be fixed.
    Had a problem yesterday with my iPhone not showing in iTunes - an update cleared this problem.
    Message was edited by: Lewin321

  • Applet does not load on app server when Free Design Layout

    Hi,
    I have to embed a an applet in a webpage of an web application. Before I go on to anything.. let me first tell you, I am using Netbeans 6.0
    As shown in the tuorial:
    [http://www.netbeans.org/kb/articles/tutorial-applets-40.html]
    1. I first made the "Applet" source say HelloApplet. java. After compiling and running it I get the HelloApplet.jar.
    2. I created a WebApplication and then from the properties -> packaging -> I "Add Project" HelloApplet.jar.
    3. Then I a webpage I "embeded" the applet.
    4. I run the web app and the applet gets loaded and everything is just fine.
    But before I go on I must tell you that the applet was designed in Null Layout. Now I edited the applet source once again and changed the layout to Free Design Layout*. ( this is available from Netbeans..on the HelloApplet.java .. go to the design view.. right click on the form and from the context menu you can change the layout to FreeDesign or whatever you might want).
    When I expand the "Libraries" node I see the that the library Swing Layout Extensions - swing-layout-1.0.3.jar has been added.
    When I "run" the "HelloApplet.java" file, the applet is shown in the appletviewer. No problems with that.
    But!
    When I try to Clean & Build and Run the WebApplication, the applet does not get loaded. On inspecting the java console I see the following error:
    java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: org.jdesktop.layout.GroupLayout$Group
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 10 moreIt clearly shows that the Free Design Layout has something to do with the GroupLayout which can be found by expanding the "Swing Layout Extensions - swing-layout-1.0.3.jar". Now when the HelloApplet.jar is created only the HelloApplet.class file gets included together with some other data but NOT the swing extensions. Hence when I run the web app the class file looks for the GroupLayout.class definition but can find it in the jar as its not included when the HelloApplet.jar is created.
    But with null layout there isint a problem because null layout takes the definitions from the JRE on the machine.. and so it runs without a hitch.
    My Question is : How can I run the applet with Free Design Layout? or is it possible to package the swing layout extensions in the HelloApplet.jar?<</u>
    Thanks for all your replies.
    Cheers.
    Edited by: arijit_datta on May 15, 2008 4:07 PM

    Solved.
    Here is the solution:
    [http://www.nabble.com/Applet-does-not-load-on-app-server-when-Free-Design-Layout-to17259115.html|http://www.nabble.com/Applet-does-not-load-on-app-server-when-Free-Design-Layout-to17259115.html]
    Cheers..
    Edited by: arijit_datta on May 16, 2008 7:41 AM

Maybe you are looking for

  • Syncing Microsoft Wireless Laser Mouse 8000

    I was wondering if the Microsoft Wireless Laser Mouse 8000 could be synced to the Mac with Apple's bluetooth technology. Microsoft has provided a USB bluetooth device, but I was wondering if I could use the Bluetooth Setup Assistant to set up this pa

  • Can't open itunes with lion

    Hey Everybody So I installed the new lion OS X, and just got an ipod, but when i tried to open itunes it showed following message (linked). I tried to unistall itunes and then install it again, but it doesn't work. Can anybody please help me? Kind re

  • Xcode Changes My Capitalization

    Sometimes, when I type something in Xcode, it changes the capitalization. For example, I type psSimpBox, and it changes to psSimpbox. That's OK since it's just a variable, but it is annoying. However, here's a real problem: When I type stringValue(),

  • DNG and Camera Raw 5 settings

    Will I be able to save all the new nifty settings that are coming in ACR 5 in the DNG file or will I be needing sidecar files? Thanks, Michael

  • RAID 5 Disk Failure

    I have 4 1 TB HDs configured in a RAID 5 configuration in a Mac Pro.  I just had one drive fail.  I have replaced the drive and need to know if I need to format it using Disk Utility or will the RAID card automatically rebuild the drive or do I need