Getting info on objects loaded via xml

Hello:
i am a beginner/intermediate as3 coder, and i am stuck on
something related to objects loaded via XML.
i am able to load JPEG images onto a simulated "shelf", but i
am trying to arrange them on the shelf (like a store shelf) so that
each new item is placed directly next to the previous item as they
load. i can get it to work on a very basic level by specifying the
spacing between items manually betwen the code, but to makre this
reuseable and efficient, the ideal is to have the "next" object
loaded be placed on the shelf based on the width of the previous
object. but when i try to access the width of the object that is
loaded via the imageLoader, i can;t find it. if i trace the image
loader wifth, it is 0; i have tried several ways to name the object
as it loads and then get/save its dimensions somehow, but i am not
having any luck. i use all the Lynda titles and i also use some of
the better books, but i just can;t seem to solve this.
any hellp would be appreciated.
thank you.

Thak you for this -- it did help somewhat, but i am still
stuck.
When i use the contentLoaderInfo listener, you are right, i
can discern the width of the loader. but when i do this it only
works for the last item loaded. here is my problem -- i am trying
to load graphics dynamically, and have each graphic go to it's
proper "place" on a simulated shelf -- so the foirst object might
go to (0,0), then next object should go directly to the right of
the first object, etc, etc. and i am loading all this dynamically
from an xml file. if i just specify a distance, then i can get
everything to load at uniform distances from each other. problem is
each of the graphics has a unique width, height, etc, so i need to
be able to "catch and capture" this info as each one is loaded.
when i wait until the entire loader has loaded, the only
peopoerties left for me to capture and use are the propoerties of
the last itm loaded.
any ideas on how to do this -- anyone?
thanks very much, i just can't seem to figure this out.

Similar Messages

  • Problem Updating Business Partner DI Object loaded via XML

    Hello,
    I'm working with  SB1 8.81 PL 08
    I have to Update a Business Partner Object in a Target SB1 Company Database starting from a Business Partner Objects saved as XML from the Source SB1 Company Database.
    Normally this works fine, I load from XML this Object and calling the Method Update all data is Syncronized in the Target DB.
    But if the Business Partner Object has at least a Contact Person and in the Target Company DB a Marketing Document has been created for this particular Business Partner the Update Method called on the loaded by XML object always fail giving the following error:
    Error: -10
    Message: Contact Person is referenced by another object.  , 'Sales Quotations [...contact Person ID...]'
    The modifications I need to update do not involve contact person in the BP object but only other simple properties like Tel Nr. ...
    In conclusion ... if the target BP has a marketing document created it seems no more possible to update it with an XML load, instead if a load the BP using the   GetByKey() Method and changing manually some properties of the object the Update works fine.
    Thank you for support.
    Max

    Hi,
    First Use the getbykey to get the Business partnet then update.
    sample code is available with B1WS package
    Regards.

  • SWF audio loaded via XML

    Hi, I am currently having trouble with my swf file inserted in adobe presenter 9. I'm trying to load the sound via XML and it plays on the first frame when it's completed. Now, the sound of SWF is heard on other slides after the SWF slide. It looks like it will going to load again the swf file even when I am not in the swf slide. Anyone could help me with this issue? Thanks.

    Thak you for this -- it did help somewhat, but i am still
    stuck.
    When i use the contentLoaderInfo listener, you are right, i
    can discern the width of the loader. but when i do this it only
    works for the last item loaded. here is my problem -- i am trying
    to load graphics dynamically, and have each graphic go to it's
    proper "place" on a simulated shelf -- so the foirst object might
    go to (0,0), then next object should go directly to the right of
    the first object, etc, etc. and i am loading all this dynamically
    from an xml file. if i just specify a distance, then i can get
    everything to load at uniform distances from each other. problem is
    each of the graphics has a unique width, height, etc, so i need to
    be able to "catch and capture" this info as each one is loaded.
    when i wait until the entire loader has loaded, the only
    peopoerties left for me to capture and use are the propoerties of
    the last itm loaded.
    any ideas on how to do this -- anyone?
    thanks very much, i just can't seem to figure this out.

  • Hypertext link from image loaded via xml

    I thought this would be easy but for some reason it's not
    working.
    What I want to accomplish:
    Make an image loaded into my textArea via XML a link. I
    thought I could do something like this:
    <a href='
    http://www.mysite.com"><img
    src="myImage.jpg"/></a>
    Simple enough you'd think but the image appears but with no
    hypertext link capabilities. :(
    Any thoughts? Wisdom?
    Thanks.

    Hi Marghoob,
    Thanks for your reply. Turns out it is a bug with the Flash 7
    player. The code works fine in the Flash 8 and 9 player. I guess
    this was a reminder that I should look for the simple things first.
    Novian

  • Adding Textures to Objects loaded via an Object Loader

    Does anybody know how to add a texture to an object which has been loaded from a file.
    e.g. a model in .obj format

    I would go look for the Java3D Tutorial.
    It has some examples using the .obj format for reading in 3D Objects.

  • How do I get my playlists to load via car USB?

    Some of my newer playlists won't load when hooked up to my car's USB port. I can navigate to the playlist through the dashboard display but when it is selected none of the songs show up. I tried syncing with my computer and hooking it up again but that didn't work. A couple of my older playlists will load. Not sure what's causing this to happen.

    I'll try that.
    The car is brand new... As of Friday haha so I don't think there would be a problem with the system.

  • How to get info from weblogic-ejb-jar.xml? (MDB)

    I'm writing an MDB which is part of a request/reply. In order to reply, I
    need an initial-context-factory and provider-url. Is it possible to get
    this information using the MessageDrivenDescriptorMBean class? I can see
    that MessageDrivenDescriptorMBean has getConnectionFactoryJNDIName() and
    getProviderURL() which should be what I want, but I have no idea how to get
    an instance of MessageDrivenDescriptorMBean. Can I do that in the
    setMessageDrivenContext method of my MDB?
    If not, I can put that information in the env, but I'd rather not do that as
    it is redundant information.
    Thanks.
    Eric

    Forgot... WL6.1.
    "Eric F" <[email protected]> wrote in message
    news:[email protected]..
    I'm writing an MDB which is part of a request/reply. In order to reply, I
    need an initial-context-factory and provider-url. Is it possible to get
    this information using the MessageDrivenDescriptorMBean class? I can see
    that MessageDrivenDescriptorMBean has getConnectionFactoryJNDIName() and
    getProviderURL() which should be what I want, but I have no idea how toget
    an instance of MessageDrivenDescriptorMBean. Can I do that in the
    setMessageDrivenContext method of my MDB?
    If not, I can put that information in the env, but I'd rather not do thatas
    it is redundant information.
    Thanks.
    Eric

  • Loading audio into Adobe Edge via XML issue

    I am having an issue linking the location of an audio file via XML in Adobe Edge. I am able to get the info and post it as text, however I can not get it to load into the audio player. This is my first try at code ever, nothing too complex if possible.
    Here is the code that works along with the part I can not get to work.
    var fromName;
    var outputField = $(this.lookupSelector("xmlOutput"));
    $.ajax({   
        type: "GET",
        url: "edgesound.xml",
        dataType: "xml",
        success: function(xml) {
            fromName = $(xml).find('audio1').text();       
            outputField.html(fromName);    
        var newSound = new Audio();    
         newSound.src = "sound.mp3";
         newSound.volume = 0.5;
         sym.$("soundBtn").toggle(
    function(){
         newSound.play();
         sym.$(this).html('stop'); },
    function(){
         newSound.pause();
         sym.$(this).html('restart'); });
    // XML Try below   
         var newSound_xml = new Audio();    
         newSound_xml.src = "fromName";
         newSound_xml.volume = 0.5;
         sym.$("soundBtn_xml").toggle(
    function(){
         newSound_xml.play();
         sym.$(this).html('stop'); },
    function(){
         newSound_xml.pause();
         sym.$(this).html('restart'); });
    And here is the simple XML doc being called
        <?xml version="1.0" encoding="utf-8"?> <ax>  <audio1>sound.mp3</audio1>  </ax>
    I've also tried taking the .mp3 out of the xml and trying the following in the code with no success.
    newSound_xml.src = "fromName" + ".mp3";
    Thank you and here is a link to demo what I have so far.
    http://www.projectcog.com/audio/xml_audio.html

    Hi Exports,
    I am able to load directly from XML file to oracle tables. I am also successfully reverse engineer the XSD file into oracle relational structure but after that I don't know how to assign XML data file to the schema and load to oracle table
    Can you explain me the steps how to assign XML file to the schema (created from XSD ) and load to oracle table. which KM to use to load from XSD to oracle.
    Thanks,
    Mano

  • Spry = Exception caught while loading data.xml [object Error]

    Exception caught while loading data.xml [object Error]
    I get this mistake message then I look in the Browser to my
    create html page with put in the xml file by Spry. All my xml files
    are not shows, its shows only the error massage.
    What can I do for the repair it?
    Thanks in advance for you answer and regards.

    Hi Jay,
    While in theory it should work offline, you have run into
    the main issue.
    IE7 has a security limitation that prevents the ActiveX
    control that does the XMLHttpRequest from working from the local
    file system.
    Without being about to control the viewing environment, you
    can't guarantee it will work in all instances.
    It will work if running off a web server (
    http://localhost or otherwise).
    I wouldn't recommend it for offline use unless you can
    control the usage.
    Let me know if you have further questions.
    Thanks,
    Donald Booth
    Adobe Spry Team

  • Exception caught while loading clients.xml: [object Error] in IE

    I’m following lesson 9 from Adobe Dreamweaver CS3
    Classroom in a Book which starts with viewing in a browser the
    final web page provided on the CD that comes with the book.
    The problem is that when I browse that file, IE 7 gives this
    error:
    quote:
    Exception caught while loading clients.xml: [object Error]
    Other browsers and versions of IE display the
    page fine.
    From Dreamweaver I ran Browser Compatibility check and it
    reported this:
    quote:
    Found 1 errors in external css files
    Affects: Firefox 1.5; Internet Explorer 6.0, 7.0; Netscape
    8.0; Opera 8.0, 9.0
    Found 2 errors in external css files
    Affects: Internet Explorer for Macintosh 5.2
    Found 3 errors in external css files
    Affects: Safari 2.0
    All errors point to this code from the same
    line:
    href="css/main.css
    and the whole line is:
    <link href="css/main.css" rel="stylesheet" type="text/css"
    media="screen" />
    I also ran validation of the file and it reported this:
    quote:
    2 The tag: "html" doesn't have an attribute: "xmlns:spry" in
    currently active versions.[XHTML 1.0 transitional]
    114 The tag: "div" doesn't have an attribute: "spry:region"
    in currently active versions.[XHTML 1.0 transitional]
    117 The tag: "th" doesn't have an attribute: "spry:sort" in
    currently active versions.[XHTML 1.0 transitional]
    118 The tag: "th" doesn't have an attribute: "spry:sort" in
    currently active versions.[XHTML 1.0 transitional]
    120 The tag: "tr" doesn't have an attribute: "spry:setrow" in
    currently active versions.[XHTML 1.0 transitional]
    120 The tag: "tr" doesn't have an attribute: "spry:select" in
    currently active versions.[XHTML 1.0 transitional]
    120 The tag: "tr" doesn't have an attribute: "spry:repeat" in
    currently active versions.[XHTML 1.0 transitional]
    120 The tag: "tr" doesn't have an attribute: "spry:odd" in
    currently active versions.[XHTML 1.0 transitional]
    120 The tag: "tr" doesn't have an attribute: "spry:hover" in
    currently active versions.[XHTML 1.0 transitional]
    128 The tag: "div" doesn't have an attribute:
    "spry:detailregion" in currently active versions.[XHTML 1.0
    transitional]
    129 The tag: "div" doesn't have an attribute: "tabindex" in
    currently active versions.[XHTML 1.0 transitional]
    134 The tag: "div" doesn't have an attribute:
    "spry:detailregion" in currently active versions.[XHTML 1.0
    transitional]
    143 The tag: "div" doesn't have an attribute:
    "spry:detailregion" in currently active versions.[XHTML 1.0
    transitional]
    The problem is that I don’t know what to do next and if
    and how this file can be fixed.
    Will appreciate greatly your help
    Thank you

    Another bump
    hoping the experts here might help if they check the files, I
    uploaded the project on a public site. You can download it from
    here:
    http://savefile.com/files/1452147
    at he bottom of the page click Download and on the next page
    at the bottom click Download file now
    These are the troubleshooting steps and solutions I
    attempted.
    After I ran check Browser Compatibility it showed problems
    located in main.css file
    I opened main.css and ran Browser Compatibility there too.
    The problems were listed as the following:
    Error Unsupported property: content
    Internet Explorer 6.0, 7.0; Internet Explorer for Macintosh
    5.2
    line 75 .clearfix:after { content: "."; display: block;
    height: 0; clear: both; visibility: hidden; }
    Error Unsupported property: zoom
    Firefox 1.5; Internet Explorer for Macintosh 5.2; Netscape
    8.0; Opera 8.0, 9.0; Safari 2.0
    line 82 .clearfix { zoom: 1; }
    Error Unsupported value: 'hand'
    Safari 2.0
    line 150 .hoverRow, .selectRow{ background-color: #FFFF00;
    cursor: pointer; cursor: hand; }
    also lines 157
    Warning Unsupported value: 'hand'
    Firefox 1.5; Internet Explorer 6.0, 7.0; Internet Explorer
    for Macintosh 5.2; Netscape 8.0
    line 150 .hoverRow, .selectRow{ background-color: #FFFF00;
    cursor: pointer; cursor: hand; }
    also lines 157
    I deleted unsupported properties and changed the unsupported
    value of hand to default and saved the main.css.
    Unfortunately IE still couldn't render the page showing the
    same error.
    I searched the CSS Advisor web site and even entire Google
    but except a few people reporting the same error no solution was
    posted.
    I also tied to contact the publisher of the book but I didn't
    get any replies with solutions yet.
    Since this is a learning project I'm trying to prepare myself
    for real live scenarios and wonder what experienced users would do
    when facing a similar problem if the project was for a client. What
    would you do. What is an acceptable practice? If you can't find a
    solution what would you say to your clients "well IE 7 can't render
    certain things from your page and there is nothing I can do about
    it"?
    I'll appreciate any input

  • Importing BW objects via XML

    Hi,
    CRM 7.0 comes with Data Warehousing workbench. I need to make some reports in CRM which are already present in BW system. The idea is to make cubes in CRM and load from BW and make reports in CRM system.
    I am planning to import the objects (characteristics, key figures, cube etc) via XML import in transport connection.
    I would like to know the limitations of it. Is there any restriction on file size?
    Regards,
    Gaurav

    Hi Dirk,
    thank you for your fast reply!
    I'll check the possibility of using BAPIs.
    The advantage of the approach with exporting, editing and re-importing xml metadata definitions is that I just have to rename the objects in the xml file, which should be a matter of a few hours. But what to do with tags like
    <XMISAPBI:com.sap.bw.cwm.core.InfoObject.descriptionLong xmi.idref="com.sap.bw.cwm.core.Description::81DD390D55F1A048AC444F945"/>
    where the GUID refers to the description later in the xml file. Can I just create my own GUID?
    Some more background information: my first idea was to use the xml export as a helper for automated documentation. And then I thought, why don't develop a small two way tool, which can comfortably create or edit a metadata xml file.
    Kind regards,
    Martin

  • Loading Single Image Via XML

    Hey guys, I am trying to load a single image on to the stage via an xml file.
    Here is my xml file
    <?xml version="1.0" encoding="utf-8"?>
        <pictures>
            <pic>image1.jpg</pic>
        </pictures>
    I'm trying to figure out the actionscript 3 code but I don't know how to code it.
    If someone can please point me to the code or tutorial, it would be much appreciated.

    You would load the xml by doing this:
    var req:URLRequest = new URLRequest("xmlfilename.xml");
    var ldr:URLLoader = new URLLoader();
    ldr.addEventListener(Event.COMPLETE,xmlLoaded);
    ldr.load(req);
    function xmlLoaded(e:Event){
      var xml:XML = XML(e.target.data);
    //see * below..
    * then the code to load the image could go in the xmlLoaded function (in place of that //see below line), and would look like this:
    var imgreq:URLRequest = new URLRequest(xml.pictures.pic[0]);
    var imgldr:Loader = new Loader();
    imgldr.load(imgreq);
    addChild(imgldr);
    Normally you might add a listener to the Loader's contentLoaderInfo, so that you could then size or position the image before adding it to the stage. But hopefully the above code would get you as far as having the image in the top left of the stage.
    Read up more on Loader, URLRequest, URLLoader, and XML, to get a sense of the various parts of the whole process.

  • Changed "Get Info" permissions, now system won't load

    I made a huge mistake and hope someone can help. I  clicked on the Macintosh HD icon, did "Get Info" and under Sharing, changed the setting for "Everyone" to "No access". I left the user (read/write) and admin settings the same. Immediately after, access to everything was cut off. After restarting the computer, the apple icon loads, the the spinner starts to show the system loading, then it freezes owith the grey screen + apple, but that's it. I've restarted multiple times, got in via command -R and checked out disk utilities - disk and permissions verify fine.  Any ideas, or idid I forever padlock this system??

    Hi,
    I have the same problem by applying accidently the "permission No Access to Macintosh HD icon. After I restared the computer, the apple icon loads, the the spinner starts to show the system loading, then it freezes with the grey screen. I've restarted multiple times and tried via command -R and checked out disk utilities - disk and permissions verify fine. I tried to load OSX Lion from the Apple website (by Command+R procces), entering my Apple ID and Password but I got the message that my software (OSX Lion) was not bought by this ID.
    I precise that I bought my iMac used with OSX Lion already installed on it about 2 years ago.
    I am an Apple customer since 2005 and I bought other computer from Apple but this is the first time I have a problem.
    I am really stuck and any help or assistance would be realy appreciated.
    Thank you and best regards

  • Itunes 10.6.1.7 problem: when I change the file "media type" from 'Music' to 'Podcast' the file disapears from ITUNES. I do this via (1) right click, (2) select 'Get Info', (3) select 'options' tab, and (4) change media type. What is the problem?

    Itunes 10.6.1.7 problem: when I change the file "media type" from 'Music' to 'Podcast' the file disapears from ITUNES. I do this via (1) right click, (2) select 'Get Info', (3) select 'options' tab, and (4) change media type. What is the problem?

    Hi Memalyn
    Essentially, the bare issue is that you have a 500GB hard drive with only 10GB free. That is not sufficient to run the system properly. The two options you have are to move/remove files to another location, or to install a larger hard drive (eg 2TB). Drive space has nothing to do with SMC firmware, and usually large media files are to blame.
    My first recommendation is this: download and run the free OmniDiskSweeper. This will identify the exact size of all your folders - you can drill down into the subfolders and figure out where your largest culprits are. For example, you might find that your Pictures folder contains both an iPhoto Library and copies that you've brought in from a camera but are outside the iPhoto Library structure. Or perhaps you have a lot of purchased video content in iTunes.
    If you find files that you KNOW you do not need, you can delete them. Don't delete them just because you have a backup, since if the backup fails, you will lose all your copies.
    Don't worry about "cleaners" for now - they don't save much space and can actually cause problems. Deal with the large file situation first and see how you get on.
    Let us know what you find out, and if you manage to get your space back.
    Matt

  • Album art added via Itunes 'Get Info' not updating on iPhone 5

    Im wanting to use Itunes specifically to add album artwork to my music which is managed manually. With the previous itunes version, it was a case of dragging and dropping a jpeg into the bottom left corner and hey presto! However, now...nothing.
    Ive confirmed all manner of things/issues explained after "research" on the net. So far nothing has worked out. Ive confirmed that the artwork is jpeg (even tried png) and also that its not locked under any specific permissions in Windows 7.
    To illustrate the annoyance of it, i can use a third party program to add the album art to an mp3 (prior to it being synced onto the iphone) and it will show up perfectly then! Now, you may be wondering 'why not just do that? problem solved'. Not quite. Windows is annoying to say the least especially with album artwork. Its all fine adding the artwork to mp3 files, but it then adds hidden artwork files in the folders themselves.
    As i said before, i was able to do it manually with the previous itunes version but now im out of ideas. The 'Get Info' tab then onto 'Artwork' in itunes is where im trying to update the files. I can load them there, they will show on the files under itunes, but not on the iphone. As i manage my music manually ive also attempted to remove all tracks, re-sync and try and add again; nothing.
    Any ideas would be much appreciated. Granted this can only be really described as an annoyance, but its annoying nonetheless.
    Peace

    Klann wrote:
    ...all music that is on the iphone has been merely dragged and dropped from a generic windows folder.
    Dragging music files directly from Windows and dropping onto the device?  I have no idea how that is even possible, but right there you're deviating from the intended design -- iTunes is meant to be the intermediary.
    Are you suggesting that i first update the music in the itunes library and then drag & drop to the iphone? In a way, not manually manage the music?
    Yes, that IS what what I'm suggesting, and that is what manually managing means in the iTunes world.  It is a media manager for your devices, and if you're bypassing it then its no wonder you're struggling.  It sounds like you're coming from a mp3 player perspective, and like it or not, that's not how i-devices work.
    I'm sorry to say, but if you try to force things another way it will be a rocky relationship to say the least.

Maybe you are looking for

  • My iPad 2 doesn't have the app store I have looked in everything, reset the home screen and the restrictions is off but I still can't find it.

    My iPad 2 doesn't have the app store I have looked in everything, reset the home screen and the restrictions is off but I still can't find it.

  • Legend does not display with Line Chart

    I have a query that I wrote with Bex Query Designer v3.5.11 for a BW 3.5 system.  When I click Graphical Display tab in the query results, "Column Chart" shows a legend, showing which colors mean what.  However, when I switch to a different type of c

  • Mac Freezes

    Bought a new mac pro this year and having problems with it freezing up a couple times a day. Seems to occur when I am NOT using the computer. All functions cease except mouse movement (but will not select anything or show Doc). Sometimes will freeze

  • Help sought understanding auditing options

    So, I have been asked to assist a site collection owner in implementing reporting of who has permissions to read or modify files within certain sensitive areas of the site collection. I am aware that there is a way to implement site collection auditi

  • CUA as data source for portal UME

    Hi all We want to use the CUA system as the data source for our EP6's UME. Obviously our end users do not login to the CUA system and therefore have no password to this system. It doesn't seem rational to provide them a password to this system, but t