[svn] 4939: * Some changes necessary to get the improved SWC cache working in Flex

Revision: 4939
Author: [email protected]
Date: 2009-02-12 10:07:37 -0800 (Thu, 12 Feb 2009)
Log Message:
* Some changes necessary to get the improved SWC cache working in Flex
Builder 4 and some potential bug fixes.
tests Passed: checkintests
Needs QA: YES
Needs DOC: NO
Bug fixes: SDK-18905
API Change: NO
Reviewer: Pete F.
Code-level description of changes:
tools/oem/Library.java
Modified link() to pass the file name into SwcDynamicArchive's
constructor even when using an OuputStream, so the file name can
be used as a cache key.
Added refreshLastModified() so Flex Builder can update the
timestamp in the SWC cache after writing it's OutputStream to the
SWC file.
tools/oem/Builder.java
Added setSwcCache().
tools/PreLink.java
Modified postRun() to use the value returned from
ResourceContainer.addResource() instead of the value passed in,
because it could be different. This might fix SDK-18493 and
SDK-17840.
compiler/PersistenceStore.java
Modified readCompilationUnit() to also use the value returned from
ResourceContainer.addResource().
compiler/CompilerAPI.java
Modified updateDependentLastModifiedTimes() to check for a null
CompilationUnit.
compiler/swc/SwcDynamicArchive.java
Added path param to OutputStream based constructor to be used as a
cache key.
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-18905
http://bugs.adobe.com/jira/browse/SDK-18493
http://bugs.adobe.com/jira/browse/SDK-17840
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/PersistenceStore.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcDynamicArchive.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcGroup.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Builder.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Library.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/LibraryCache.java

I figured out what was going here.  When I was statically linking my copy of textLayout.swc, it wasn't being loaded soon enough and the other parts of the framework were barfing because they couldn't get at the TextContainerManager class when they expected to find it.  What I have done to solve the issue is created a custom SystemManager which forces the TextContainerManager class to be loaded sooner.  This does increase my file size a bit, but not nearly as much as having to statically link all of the framework's libraries! Here is a short example app of what I did for anyone curious:
main.Main.as :
package main {
     import spark.components.Application;
     [Frame(factoryClass="main.CustomSystemManager")]
     public class Main extends Application {
          public function Main() {
               super();
MainApplication.mxml :
<?xml version="1.0" encoding="utf-8"?>
<main:Main 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:main="main.*">
</main:Main>
main.CustomSystemManager.as :
package main {
     import mx.managers.SystemManager;
     import flashx.textLayout.container.TextContainerManager;
     public class CustomSystemManager extends SystemManager {
          public function Custom Manager() {
               var c:Class = TextContainerManager; // force the inclusion of this class
               super();
I found a lot of good information for using a custom system manager (in the context of making your preloader a bit shinier here: http://custardbelly.com/blog/?p=211

Similar Messages

  • How to get the Wiki search functionality working?

    hi,
    Another Wiki question regarding the 7.1u1 Portal wiki functionality: What is necessary to get the wiki search functionality working? Right now when using the wiki search page all it does is return to the search form, no errors but no hits either. I guess some additional administrative work is needed to get search working?
    thanks, tom

    haven't touched anything except for the wiki template jsps to change the design. it is a linux rh4 install. there are no communities on that server (yet), just the wiki portlet in a tab so far. is the wiki search dependent on the portal search server or totally separate (ie self contained wiki search)? any additional services or such that need to be started for it to work?

  • [svn:osmf:] 11341: Added some unit tests to get the metadata package above 80%

    Revision: 11341
    Author:   [email protected]
    Date:     2009-10-30 16:24:35 -0700 (Fri, 30 Oct 2009)
    Log Message:
    Added some unit tests to get the metadata package above 80%
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/metadata/TestTemporalFacet.as

    The nature of the Media class is that it accesses it asynchronously. This means that when you create an instance of it, and then immediately query it, the data you want may not be available yet. This is all in the Javadoc, see the doc for Media:
    The media information is obtained asynchronously and so not necessarily available immediately after instantiation of the class. All information should however be available if the instance has been associated with a MediaPlayer and that player has transitioned to MediaPlayer.Status.READY statusSo you could associate the Media with a MediaPlayer, and then wait until it goes to the Status READY, and then read the length of the Media.
    As for your 2nd question, getMetadata() returns a Map. You can just loop through it:
      for(Map.Entry<String, Object> entry : media.getMetadata()) {
        // etc
      }However, the same restrictions apply as with Media -- you will probably need to wait before the information is available -- that's why the Listener approach works, because it will notify you as soon as the information is added to the map.

  • I bought the HD season version of breaking bad, however I only need the regular @ 19.95. How can I change this and get the difference refunded?

    bought the HD season version of breaking bad, however I only need the regular @ 19.95. How can I change this and get the difference refunded?

    When you purchase an HD video on a supported device or computer, only HD video will be downloaded. To download the SD version, you need to download the video again from your Purchased page. Conversely, if you purchase an HD video on an unsupported device, the SD version will be downloaded. Then, you will need to download the HD version from your Purchased page. Learn more about downloading previous purchases."
    iTunes: Purchasing and viewing HD videos

  • HI everyone. Im looking for some help. Im getting the Itunes error 50 and No network connection error. I have a perfect connection. My iphone will download and my ipad but nothing from my computer. any help would be great.

    HI everyone. Im looking for some help. Im getting the Itunes error 50 and No network connection error. I have a perfect connection. My iphod will not  download and my ipad  any help would be great.

    A lot of people are experiencing it, which suggests that Apple is having issues. If that is the case all people can do is wait it out.

  • On Apple TV, my pictures have loaded, but I cannot get the slideshow function to work.  It has been "loading" 28 pictures for over 5 minutes.  What is wrong?

    On Apple TV, my pictures have loaded, but I cannot get the slideshow function to work.  It has been "loading" 28 pictures for five minutes.  What am I doing wrong?  I have Windows 7 on my PC.

    I don't have any direct experience with D-Link equipment, but I may be able to provide some general advice. See if you can use a Web browser to connect to the D-Link's configuration screen. This probably involves visiting a URL such as http://www.192.168.0.1 . If you haven't changed the sign-on parameters, a quick Google search should find them for you.
    Once there, note as many configuration details as you can find. You'll need those to configure your Time Capsule.
    Use the AirPort Utility to configure the Time Capsule.
    One last thing: It's quite possible that the Verizon network will have locked onto the "MAC" address of your D-Link router. Something needs to be done to reset this. If there's a separate box at your house that came with the FIOS equipment that's "upstream" from the D-Link router, I'd cycle power on it to see if that does the job. Otherwise you'll probably need to call Verizon to ask them to reset things once your Time Capsule is installed in place of the D-Link router.

  • Cannot get the Mobile Template to work in SharePoint Foundation 2013

    Hello all,
    I am trying to get the Mobile View to work in SharePoint Foundation 2013. When I access the site on any phone it gives me the following error:
    "Cannot complete this action. Please try again."
    The URL it forwards me to is "http://<sitecollectionurl>/_layouts/15/mobile/mblwpa.aspx?Url=%2Fdefault%2Easpx
    So it seems to me like it's working, but there's something wrong with the template. The template has definitely never been modified.
    Can anyone help?
    Thanks,
    Vinny
    Vinny

    So I've got some more info for this issue. We are seeing:
    Control template "Mobile_STS_HomePage_Redirect" does not exist.
    Control template "Mobile_1_HomePage_Redirect" does not exist.
    Does anyone know how to enable these? I tried by name, but it doesn't find them. This is the error I get:
    PS C:\> Add-SPSiteSubscriptionFeaturePackMember <FeaturePackGUID> -FeatureDefinition Mobile_STS_HomePage_Redirect
    Add-SPSiteSubscriptionFeaturePackMember : Cannot find a Feature object with Path or Id: Mobile_STS_HomePage_Redirect in scope Local farm.
    At line:1 char:1
    + Add-SPSiteSubscriptionFeaturePackMember <FeaturePackGUID> -Fe ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (Microsoft.Share...aturePackMember:SPCmdletAddSite...aturePackMember) [Add-SPSiteSubscriptionFe
       aturePackMember], SPCmdletPipeBindException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletAddSiteSubscriptionFeaturePackMember
    Vinny

  • How do I get the RSS feeds to work in iWeb'08 when published to FTP server?

    There are so many unresolved questions because I have published to an FTP server (Netfirms). HOWEVER, my next task at hand is to resolve the issue of a non-working RSS feed and download capabilities.
    The published website is www.vibrationalvoyages.com.
    When using Cyberduck to upload to Netfirms, I have to call the file name vibrationalvoyages.com because Netfirms organizes my files under a main folder called www (I also purchased the .org and .net extensions along with the singular spelling of the title, have forwarded those url's to the .com extension, which means I have different website names under Netfirm's main folder www, all pointing to www.vibrationalvoyages.com).
    I have to drop the www. in front of vibrationalvoyages.com when publishing to a folder on my computer so, when Cyberduck uploads the files into the main www folder, they are read correctly and published as www.vibrationalvoyages.com. In Cyberduck, the ftp address to upload is vibrationalvoyage.netfirms.com
    Before uploading, I use iTweak to insert the Statcounter tracking codes. Then, I use Rage to optimize the site to cut down on the weight (lots of photos). Then, finally, I get to upload which takes about an hour and a half.
    SO, HOW DO I GET THE RSS FEEDS TO WORK AS WELL AS THE OPTION TO DOWNLOAD AN MP3 RECORDED MEDITATIONS? I eventually also want to include the download option of podcasts.
    Please help! I am doing the best I can to stay in love with Mac but he is turning out to be a pot load of work and the love affair is wearing a little thin.
    I haven't even asked about why iWeb still calls some pages 'The family picnic" or why it switches the url addresses to the individual pages. Probably because in the early stages, I copied an entry rather than just do a new one... but I'll worry about that later. I want to get this 'fixed' first and then I'll address the issue, following Roddy's advice to another writer about installing a flash player, for easy download of the MP3 meditations and for when I record the lessons as podcasts. Until I get this RSS issue resolved, however, podcast downloads are out of the question!

    Thank you for checking, Tom,
    I'm confused. What do YOU get when you push the feed button? And why is it working on yours and not either of my machines?
    Today, my Mac (w/Safari 4) gets the same error message: Safari can’t open the page Safari can’t open the page “feed:http://vibrationalvoyages/vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml”. The error is: “The feed could not be loaded because the content is not in a known feed format.”
    My little ASUS (with a Linux operating system) gets a screen that says "The requested URL was not found". The URL on that page is http://vibrationalvoyages./vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml
    On both error messages, the URL I was checking was:
    http://www.vibrationalvoyages.com/DivineLight_Vibrations_Principles_and_Applications/Divine_Light_Vibrations_Principles_ andApplications.html
    The last URL was, of course, the URL generated by iWeb.
    So, my question still is:
    HOW CAN I GET MY FEEDS TO WORK PROPERLY? If the problem is there shouldn't be an http:// after feed: then, how do I get iWeb to set it up properly?
    Any ideas?
    GG

  • I get the "firefox has stopped working" message after closing browser

    Hello.
    My problem is that when I close the FireFox browser I get the "FireFox has stopped working" message. It's pretty annoying. I've read some other posts here that described a similar problem and have tried some of the suggestions in them including:
    A clean install, a browser reset, running in safe mode, unchecking hardware acceleration, disabling extentions and plugins one at a time, uninstalling my antivirus (avast), rolling back to version 23.01 and checking run in compatibility mode that someone claimed helped them. None of this was effective.
    It seems like after a computer restart the browser will be ok for 2-4 closings and then it will start with the message on every closing. Also, after I uninstalled avast it was good for 6 closings. Rolling back also gave me about 6 message free closings. But then the messages start and doesn't stop.
    Is there anything else I can try? Thanks in advance for any suggestions.

    One thing is for sure, and that is if the only page i visit is the Google homepage (not logged in) or this site (mozilla forum), the problem does not occur, ever. I can't make it happen.
    If i visit yahoo.com (not logged in) (or ighome.com, logged in), as examples, it happens every time.

  • I have a MacBook, made in 2010. I can't get the eject function to work. I have a DVD in now and want to eject it and put another one in. Command-E, dragging it to the trash or Find-Eject does not work. Ideas?

    I have a MacBook, made in 2010. I can't get the eject function to work. I have a DVD in now and want to eject it and put another one in. Command-E, dragging it to the trash or Find-Eject does not work. Ideas?

    Hi there. Hear are some other options . Hold down for click on the track pad while restarting and keep it down all the way thru boot. Or use right click on a mouse. If it's stuck, sometimes sticking a business card in top edge of slot while trying the eject option can work.

  • Code to get the all Records in Work Book

    Hi,
    I have a Report to show on work book, Now I am used REFERENCE to get the data.
    In Work book i have used formula for one cell and i draged that to few rows(for example 100).
    Here my problem
    If i get below 100 records there is no problem, if it exceds 100 i won't get the records.
    some times I get in my result <b>REFF #</b>
    to solve this problems any macro code or any other solution?
    cause my report is dynamic report some times it give 1000 records some times 100, it should be automatically .
    i know dragging the cell poor quality of coding.
    any code which help my problem will be appreciated.
    Thanks
    Priya

    Hi Priya,
    I do not understand the problem.  Please show the formula you are using.
    Does the REF# problem occur when you first put the formula in the cells, or only after the query is refreshed?
    If the former, you have an Excel problem.  If the latter, the problem is that BW will delete the old query result table before it inserts the new query result table, and the REF# means that the reference cells were deleted.  In this case, the solution is simple and a simple macro will fix the problem for you.
    I can help you if I understand which problem you are having.
    - Pete

  • I cannot get the numerical keys to work on my Mac pro any ideas?

    HI
    I am trying to return something bought on line and need to fill out various information on the website. I cannot get the numerical keys to work anybody any ideas as to what I may be doing wrong?
    GL

    Hi Goostrey Lou,
    Thanks for visiting Apple Support Communities.
    Start with the tips in this article if some keys on your keyboard are not working:
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    All the best,
    Jeremy

  • Since upgrading my iPhone 5 to ios 7, I cannot get the internet, email to work on 3g.  I get the message ""could not activate mobile data network. You are not subscribed to a mobile data service".  How do I fix it?

    Since upgrading my iPhone 5 to ios 7, I cannot get the internet, email to work on 3g.  I get the message ""could not activate mobile data network. You are not subscribed to a mobile data service".  How do I fix it?
    I've contacted o2, tried all of their suggested updates and changes, reset my phone 3 times and still no luck.
    Any help appreciated.
    Thanks,
    Louisa

    Hi, l have the same problem, were you able to resolve?

  • How can I get the readability bookmarklet to work

    Firefox 3.6.8 in Windows XP Home on a Toshiba netbook. How can I get the "readability" bookmarklet to work? It works just fine in Camino on an Apple mini desktop computer running OS X 10.4.11 (Tiger.) Readability uses javascript, which I do have turned on. The problem (of it not working) doesn't seem to have anything to do with the NoScript add-on either, as I tried allowing everything on the page and it still didn't work. Any ideas of what to try next?
    ''Duplicate post, continue [https://support.mozilla.com/en-US/questions/746624 here]''

    Hi there.
    By chance, I too have the readability bookmarklet installed (but I don't use it that much, to be honest), and it works ok for me. It's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and themes and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.
    If the problem does not disappear when all add-ons are disabled, please tell me, so we can work from there. Please have no fear of following my instructions to the line, as all can be easily undone.

  • Linking an LOV to a form in webDB 3.0 and getting the help files to work ?

    Hi All I can link an LOV to a form in webDB 2.2 I can link an LOV to a report in webDB 3.0 but I cannot seem to figure out how to link an LOV to a form in webDB 3.0 can anyone help me ?
    Also I can't get the help files to work I get the message : Database Log In Failed ?
    null

    quote:
    Originally posted by:
    kglad
    lol, flash was confused?
    Ok... maybe I caused some confusion? In my nested MC, first I
    added some animation and keyframes and THEN I went back to name the
    instances. This caused multiple instances with the same name along
    my timeline thus "cunfusing" flash.
    My bad!
    live and learn! (hehe)
    Pat

Maybe you are looking for

  • Audiobook has been synched from computer to iPad but not showing up on iPad anywhere

    Why are audiobooks treated completely differently as a song ? When i download a song from iTunes it goes right into my iTunes library. How come the same thing doesn't happen when i purchase an audiobook ?!?!?!? Went on a road trip with just my iPhone

  • List "View" with current time in column

    Hi. I know that list view does not support fields calculated on page load. But I have to realize such functionality. Can someone provide options for realizing this? "Hack" some internal SQL query, inject JS on a view page, use .NET code somehow? Usin

  • Error while importing sca file in local development

    Hi, I am trying to import a sca file (MDMJ71006_0-10006189.SCA) into the local development of my NWDS. I right click on local development--> Import SC --> Gave path of SC --> Next (All DCs gets displayed) --> Finish. After clicking finish I am gettin

  • Pricing condtion PR00 is inactive in sales order item.

    Hi, I have issue in sales order all the pricing condtions become inactive for one line items .For PR00 it is Inactive with "W" The document item is statistical ans also the other condtions also with same . please let me know how to activate in Sales

  • Audio Interface not working Please Help

    I have been using Logic express with no problems with my Tascam us-122 audio interface , I recently downloaded a program for firefox to be able to capture webpage-video i.e. You-tube etc, and now I cannot get sound out of my interface, even after try