Preloading folders of content with PreloadAssetManager?

I'm currently using the following code to preload images into the browsers cache:
import gs.dataTransfer.PreloadAssetManager;
var preloader_obj = new PreloadAssetManager(["images/SS001small.jpg","images/sticker.jpg"], onFinish);
this.onEnterFrame = function() { //Just to update the preload status bar
    preloader_mc.bar_mc._xscale = preloader_obj.percentLoaded_num;
    preloader_mc.percent_tf.text = Math.round(preloader_obj.percentLoaded_num) + "%";
function onFinish(pl_obj:PreloadAssetManager):Void { //Gets called when all the assets are preloaded.
    trace("Finished preloading all " + pl_obj.assets_array.length + " assets!");
    var a = pl_obj.assets_array;
    for (var i = 0; i < a.length; i++) {
        trace("--Asset: " + a[i].url_str + " had a width of: " + a[i].width + ", a height of: "+a[i].height);
        if (a[i].fileType_str == "flv") {
            trace("FLV duration: "+a[i].duration);
    _root.onEnterFrame = null;
    gotoAndPlay("start");
stop();
these images are embedded using <img> tags in .xml files to make the website easy to update. At the moment everything works great, but the problem is that the code I have for my preloader requires you to list all of the images seperatly, which defeats the purpose of updating the content via XML. (Obviously, if you add any more images to the folder, you will need to edit the main website file to update the preloader)
Is there a way I can somehow tell this code to load all images inside the /images folder instead of listing the images seperatly?

Hello, if this is happening on multiple computers Intel and PPC, I doubt it is a new bug.
It sounds like a permissions problem. How is the backup drive formatted and or partitioned?
I just remembered something...some HD manufacturers blocked users from copying copy-write
material to some external drives(MP3's for example)...what type of external drive do you have?
You might be able to solve it by right-clicking (Ctrl-Click) the folder in question and select
"Get Info" from the drop down menu. At the bottom, click to unlock the "Permissions & Sharing"
then see if "Everyone" is "Read & Write" (you can change this by clicking the arrows under "privileges"
After Changed click on the gear icon just right of the +/- buttons and choose "Apply to inclosed items"
This MAY work...but I don't have this problem w/my systems.
Cheers,
Glynn

Similar Messages

  • BI content with folder structure in portal Content Area

    HI Dear Friends,
    I have  a requirement in my current project where i am integrating the BI reports with SAP EP.Iviews are associated with BI Reports.In the portal on clicking workset it should display folders in the portal content area with Icons instead of in Detail navigation .On click of the displayed folders it should display its sub content with Icons.
    I tried in all ways but later i came to know there there is a SAP BI business package which would come up with predifined iviews associated with BI. By importing this business package we can dispaly the  BI content in the portal in a folder format .
    I am using BI and EP 7.0 versions.
    Ratnakar

    Ratnakar,
       Let me understand your requirements, correct me if I understood it wrong. You need to display BI reports in Folder structure that is similar when you log on through BEx analyzer or WAD. If this is correct, then you need to upload the BI Role which contain all the required Folder structures and it BI Queries or BI Queries url assigned to that role.Once you upload this role on to portal , you will see folder structure on PCA.
    Example
    BI Reports  - Folder 1
      I--> FI reports  -- Subfolder 1
      I            I--> AP reports 1
      I--> CO reports  -- Subfolder 2
                   I--> Cost Report 1         
    Hope it helps,
    Cheers,
    Balaji

  • Creating email folders that sync with Outlook

    I want to be able to organize my mail both on my computer and on my iphone by being able to place mail in different folders. I want to save messages on either computer or iphone and have them sync with each other so that I have the same folders and content in both places.
    I created the folders in Outlook but couldn't get them into iphone mail. I then set up a Ymail account and it syncs with the folders and incoming mail but wont sync the content in the folders. My mail account is sbcglobal.net
    Can this be fixed?
    Message was edited by: kemgreen

    You need an IMAP account which is specifically designed for this.
    All server stored mailboxes with an IMAP account are kept synchronized with the server automatically with each email client used to access the account.
    You can store the account's Drafts, Sent, and Trash mailboxes on the server with each email client used to access the account with each mailbox kept synchronized with the server automatically. Send a message with the iPhone's mail client and the sent message will be available in the account's Sent mailbox with the email client used on your computer for accessing the account automatically and vice-versa.
    You can also create additional server stored mailboxes for the account with the email client used on your computer or via webmail access for the account using a browser to sort received and sent messages by category. Any additional server stored mailboxes created for the account with the email client on your computer will be available when checking the account with the iPhone's mail client automatically, and all server stored mailboxes for the account will be kept synchronized with the server automatically with each email client used to access the account.
    This is not possible with a POP account. Although it is possible to access a POP account with more than one email client, a POP account is designed to be accessed with a single email client only. A sbcglobal account is a POP account only - it cannot be accessed as an IMAP account.

  • Transporting KM Content with WebDAV or ICE?

    Hello all,
    does anybody know what are the main differences between transporting KM content (folders, files,…) with ICE and WebDAV? Especially in the scope of transmitted data.
    About transporting KM Content with ICE I found a lot of Information, e.g. predefined properties and ACL’s are transmitted but no service ACL,….
    But how is it with WebDAV?
    Our idea is to to use the WebDAV repository manager to access the development portal (source)and make its content available for read and write access in Content Management of the test portal (destination). After that we want to transmit the data per copy & paste from the WebDAV repository (source) to the destination folder.
    Which datas will be transported <i>(acl’s, predefined properties, custom properties, system properties and folder settings like approval,versioning, manual ordering…..)</i>?
    Is there any documentation about this?
    Thanks in advance for any help.
    Best regards
    Nicole

    That's not really a WebDAV question. The KM's copy command copies a certain set of information, no matter what the repository manager is.
    This includes content and custom properties, but that's it.
    Best regards, Julian

  • Folders showing content in review status

    Hi,
    I'm facing an issue with Folders. I'm using Webcenter Content 11.1.1.6 and the component Framework Folders.
    The problem is that when user1 checks-in a content with a workflow activation condition, user2 can see the content even if it's still in review status.
    NOTE: User2 is NOT the content author or reviewer, but has RW privileges on the folder/content.
    Is that a normal behaviour on Folders? Is there any way to show only published/released content?
    Thanks in advance!
    hfolguera

    Hi Jiri,
    If I'm not wrong I think CollectionReleasedOnly=true variable refers to Folders_g component and not the Framework Folders component.
    Anyway, I added the variable in Admin Server>General Configuration>Additional Configuration Variables and restarted the CS. Folder continues showing the content in review status.
    hfolguera

  • Every time I open iPhoto a window opens telling me that there are 3 photos that have not been imported. Recovered folders are opened with no photos and I cannot find which photos have not been imported. Help please!

    Every time I open iPhoto a window opens telling me that there are 3 photos that have not been imported. This happens twice. When I answer yes then nothing happens and if I answer no then a recovered folder is opened with no photos in it. These recoverable folders keep opening with no photos in them. I cannot find which photos have not been imported. Can anyone assist please?

    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Import' or 'Importing'.
    Drag it to the Desktop. *Make no other changes*.
    Start iPhoto. Does that help?
    If it does then look inside that folder on your desktop. Does it contain anything you want? If not you can trash the folder.

  • MY system folder, including hidden folders are littered with duplicate folders and files with the suffix (from old Mac) How do I remove them

    I have a Macbook Pro running Leopard 10.5.8. I had a problem with my my operating system (my fault, I moved a file I shoudnt have) couldnt boot up but was able to boot up from a backup. I managed to repair my original system except now all the system folders, including hidden folders are littered with duplicate folders and files with the suffix (from old Mac).  For the most part the dupes are an exact copy, but not always.  I want to remove them to free up space and cant imagine duplicate folders in the /system/library are not hindering my computer. But I dont know where to start and am afraid of doing irreparable damage. Any ideas

    pacull,
    Use iCal>View>Show Notifications to choose what to do with the notification.

  • Spry Tabbed panels + Progressive Enhancement and Dynamic Loading of Content With Spry

    Is there any way to combine tabbed panels together with "Progressive Enhancement and Dynamic Loading of Content With Spry"?
    Visit: http://labs.adobe.com/technologies/spry/articles/best_practices/progressive_enhancement.ht ml#updatecontent
    And click on the "Using Spry.Utils.updateContent()"
    The 3rd example shows how to use a fade transition whenever the content changes.
    I already have tabbed panels. My menu contains buttons (on tabs) and my Content div contains the panels.
    Tabs code;
    <ul class="TabbedPanelsTabGroup">
              <li class="TabbedPanelsTab">
                   <table class="Button"  >
                        <tr>
                        <td style="padding-right:0px" title ="Home">
                        <a href="javascript:TabbedPanels1.showPanel(1);" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
                        </td>
                        </tr>
                   </table>
              </li>
    etc
    etc
    etc
    and the panel code:
    <div class="TabbedPanelsContent" id="Home">
         CONTENT
    </div>
    I hoped i can use the example code from the link into my tabbed panels.
    I thought this code:
    onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;"
    could be added to the tab code like this:
    <a href="javascript:TabbedPanels1.showPanel(1);" onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
    But the content doesnt fade...
    I know i need to change the header etc.
    The following is from the link:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Aquo Events</title>
    <script src="../../../includes/SpryEffects.js" type="text/javascript"></script>
    <script src="../../../includes/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function FadeAndUpdateContent(ele, url)
    try {
         Spry.Effect.DoFade(ele,{ duration: 500, from: 100, to: 0, finish: function() {
              Spry.Utils.updateContent(ele, url, function() {
                        Spry.Effect.DoFade(ele,{ duration: 500, from: 0, to: 100 });
    }catch(e){ alert(e); }
    -->
    </script>
    <style type="text/css">
    /* IE HACK to prevent bad rendering when fading. */
    #event { background-color: white; }
    </style>
    </head>
    So i changed my header etc, put the SpryEffects.js and SpryData.js into position and nothing changed...
    Is there a way to keep my tabbed panel (or change as less as possible) and let
    A. The fade work
    B. The loading work.
    The problem now is that it loads all pages instead of only the home. Therefore i wanted this Progressive Enhancement.
    And the fading part is just because its nice...

    It doesnt show in the post but off course i changed this link;
    "data/AquoThonFrag.html"
    into;
    "javascript:TabbedPanels1.showPanel(1);"
    I must say i dont know if this even works...

  • Can I share my iTunes content with my kids new iPod touch ?

    Can I share my iTunes content with my kids new iPod touch ?

    yes, if you activate home sharing
    Also, you could sync your kids iPod Touch to your iTunes.

  • How do i share content with my family without becoming responsible for payment of everybody's purchases? with familysharing i mean, not home sharing

    how do i share content with my family without becoming responsible for payment of everybody's purchases?
    with familysharing i mean, not home sharing
    i have set up a familyshare for my parents and 3 siblings, all mid twenties. everybody is used to paying their own way. how do i make that continue to be the case and still keep the sharing facility open?
    e.g I don't want to pay for my sisters' music purchases - half of it i don't like - but would like access to it now and then.

    -> Home Sharing is different than logging into the iTunes store.
    You enable Home Sharing using one AppleID. Doesn't matter which you use but all devices must use the same AppleID for Home Sharing.

  • How can I share my purchased content with my grand kids on their new iPad?

    I purchased a lot of videos and games for my grand kids on my iPad.  I just gave a new iPad Air for Christmas to my daughter and son-in-law and I want to share all that content with my two grand babies (sync it on their new iPad) so they can enjoy it anytime.  We're not sure if my daughter and son-in-law should set up their new iPad under my own Apple ID or if there's a way for us to sync the shared content on their new iPad under their own new Apple ID.

    yes, if you activate home sharing
    Also, you could sync your kids iPod Touch to your iTunes.

  • How do I stop 10.9 caching servers sharing content with other peers?

    We have a problem on a school district network where Mac Servers are sharing their caching content with their registered peers. We have set MaxPeersToQuery to 1 but can't set that value to Zero. We have tried PeerRangeFilters array but that doesn't work either. Apple documentation seems to include a double negative. We have no access to the network, that is controlled by the Local Authority. We just need a Mac Server within a school to only serve the local subnet (The option is ticked) and not query any peers for assets. Any help appreciated.

    What was the values you set for PeerRangeFilters?  Based on the documentation, this sounds like it should be able to provide what you are looking for. 
    But it sounds like you are trying to control two different things here.  It sounds like you want to make clients from each subnet access the subnet's server.  That can be accomplished by using the ListenRange key on each server.  For example, if you have a server on a 172.16.0.0/24 you can define that server to listen only to client requests from that range.  Then your server on 172.16.1.0/24 can be configured to listen on that subnet range.
    The second thing you are trying to limit is the sharing across the servers based on peer sharing.  I have not attempted this before but the PeerRangeFilter sounds like the right thing.  Share what you configured.
    R-
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store.

  • Error in loading Portal Content with IE

    Hi,
    I have some problems with customization of Sap Portal, maybe someone can help me
    with some informations.
    I am using Sap Netweaver Portal 7.0 with IE 6.0.2900 SP2 and Mozzila Mozilla/5.0.
    When I try to display Content Administration -> Portal Catalog with IE I have one
    error(after a long period of "Loading..."):
    Error: Object required - and the Portal Content is not displayed at all .
    In this way, I don't have acces to Portal Content with IE.
    I also tried with other browsers (Opera, Netscape, Lotus) but there is the
    same issue.
    In Firefox, the Portal Content it's displayed, but there is another issue:
    I open a Role object and I try to Edit it's properties: these aren't displayed
    in the right corner of the screen. I checked in the Error Console of Firefox
    and there is a JS err: event is not defined: error in roleeditor.js
    In this way I am not able to handle any issue regarding Portal Content.
    Maybe some of you, guys, had this problem or have any idea about solving it.
    Thanks.
    Edited by: Andreea Melinte on Nov 21, 2008 3:02 PM
    Edited by: Andreea Melinte on Nov 21, 2008 3:03 PM

    Yes, the error appears when you access the portal with the IP address which should not be the approach.
    Use the domain name instead ... i.e hostname.domain.com:portnumber.

  • Catch all error information while validating xml content with xsd schema

    Hi experts,
    I created a java mapping to validating the input xml content with xsd schema (schema validation). What I want is to catch all error message to the xml not just the first error. I used SAXParser in sapxmltoolkit.jar to do the schema validation. The below is a part of my java mapping.
    XMLReader parser = XMLReaderFactory.createXMLReader("com.sap.engine.lib.xml.parser.SAXParser");
    parser.setFeature( "http://xml.org/sax/features/validation" ,  true);
    parser.setFeature( "http://apache.org/xml/features/validation/schema" , true);
    parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");          parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",this.getClass().getClassLoader().getResourceAsStream(schema)); // schema is my schema name
    parser.setErrorHandler(new ParseErrorHandler()); // ParseErrorHandler is my own ErrorHandler which extends DefaultHandler
    parser.parse(new InputSource(new ByteArrayInputStream(sinput.getBytes())));
    // In error handler, I comment all code so as not to throw any exception
    public class ParseErrorHandler extends DefaultHandler
         public void error(SAXParseException e) throws SAXException
              // sSystem.out.println("Error" + e.getMessage());
              // throw e;
         public void fatalError(SAXParseException e)
              // throw e;
              // System.out.println("SAP Fatal Error" + e.getMessage());
    Unfortunately the program always stopped while catching the first error. Check the below log.
    com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
    ERRORS :
    cvc-simple-type : information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is not valid, because it's value does not satisfy the constraints of facet 'minLength' with value '1'.
    cvc-data : information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is is not valid with respoct to the corresponding simple type definition.
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is associated with invalid data.
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]' is not valid with respect to it's complex type definition..
    -> com.sap.engine.lib.xml.parser.ParserException:
    I tried using Xerces and JAXP to do validation, the same error happened. I have no idea on this. Does xi has its own error handler logic? Is there any body can make me get out of this?
    Thanks.

    <h6>Hi experts,
    <h6>
    <h6>I created a java mapping to validating the input xml content with xsd schema (schema validation). What I want is to catch all <h6>error message to the xml not just the first error. I used SAXParser in sapxmltoolkit.jar to do the schema validation. The below <h6>is a part of my java mapping.
    <h6>XMLReader parser = XMLReaderFactory.createXMLReader("com.sap.engine.lib.xml.parser.SAXParser");
    <h6>parser.setFeature( "http://xml.org/sax/features/validation" ,  true);
    <h6>parser.setFeature( "http://apache.org/xml/features/validation/schema" , true);
    <h6>parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");          <h6>parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",this.getClass().getClassLoader().getResourceAsStream(schema)); <h6>// schema is my schema name
    <h6>parser.setErrorHandler(new ParseErrorHandler()); // ParseErrorHandler is my own ErrorHandler which extends Default Handler
    <h6>parser.parse(new InputSource(new ByteArrayInputStream(sinput.getBytes())));
    <h6>
    <h6>// In error handler, I comment all code so as not to throw any exception
    <h6>public class ParseErrorHandler extends DefaultHandler
    <h6>{
    <h6>     public void error(SAXParseException e) throws SAXException
    <h6>     {
    <h6>          // sSystem.out.println("Error" + e.getMessage());
    <h6>          // throw e;
    <h6>     }
    <h6>
    <h6>     public void fatalError(SAXParseException e)
    <h6>     {
    <h6>          // throw e;
    <h6>          // System.out.println("SAP Fatal Error" + e.getMessage());
    <h6>
    <h6>     }
    <h6>
    <h6>}
    <h6>
    <h6>Unfortunately the program always stopped while catching the first error. Check the below log.
    <h6>
    <h6>com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
    <h6>ERRORS :
    <h6>cvc-simple-type : information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is not valid, because it's value does not satisfy the constraints of facet 'minLength' with value '1'.
    <h6>cvc-data : information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is is not valid with respoct to the corresponding simple type definition.
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is associated with invalid data.
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item '/:ShipNotice[1]' is not valid with <h6>respect to it's complex type definition..
    <h6> -> com.sap.engine.lib.xml.parser.ParserException:
    <h6>
    <h6>
    <h6>I tried using Xerces and JAXP to do validation, the same error happened. I have no idea on this. Does xi has its own error <h6>handler logic? Is there any body can make me get out of this?
    <h6>Thanks.

  • Linking table of contents with pages 5.0

    I write some help-books for friends and the family.
    I wrote down everything I need and I've created a table of contents with page numbers.
    Now you can push the numbers behind the headings and you are automatically on the right page for reading the text. (In Pages document)
    In pages 5.0 these things are still working fine, but....
    When I export the document into a pdf, you can't push/touch the headings and the numbers behind there headings.
    With the old pages, after exporting the document into a pdf, you could import it into iBooks on the iPad. In iBooks now you can touch a heading and you'll get on the right page.
    That was realy helpfull, 1 click and you could read the text on which you're interested.
    But with the new pages 5.0 this feature is deleted... or I do something wrong.
    Could anyone of you help me for getting this feature back, if I do something wrong?

    Well there is a standard body for EPUB - http://idpf.org/epub
    And, Apple furnishes the TEMPLATE - the Pages 09 TEMPLATE - automatically (supposedily) makes the TOC links which - then - you can export to EPUB.
    Again, the problem I'm daling with is that the Kindle for the iPad, does not see the TOC. It des see it in the Kindle Softward for the Mac - which is different - for some reason. I have authored two books on Pages but Amazon converts my EPUB file to fit the Kindle device itself.

Maybe you are looking for

  • Help with Auto calculations

    I have an existing pdf that i am trying to edit and make it more functional...i.e. fillable info with auto calculations of cost based on a given number (times a specific cost) Example on the form.... Car Registrations (per car) _____ X $25 _________

  • PDF Output Problem

    I have a servlet that takes a file from the server, reads its bytes with the FileInputStream, and writes them to the ServletOutputStream. The types we allow are pdf, tif, doc, and xls. The only problem I am coming across is some PDF files won't come

  • How to hide prompts panel for WebI documents opened in PDF via openDocument

    I am linking to a WebI document via openDocument call with sOutputFormat=P. The report opens in PDF format but within another browser window with top panel and left prompts panel.  I tried to set different Web Intelligence Interactive settings in CMC

  • Column Prefix from Logical to Relational Model

    Hi, is there any option, that data modeler append an prefix (table short name) to a column, when the logical model will be transformed to relational model? (Same behavior as Oracle Designer) Example: Logical Model TABLE: PERSON TABLE-SHORT: PERS COLU

  • Can anyone explain how i can share music using the ipod?

    my friend has window xp and i have mac osx, how can we share music on her ipod?