LOGIN Don't have an account yet?   Register

Forgot password?
 

xml question

  • avatar
    glymax
    on 26/1/12
    In my several year old flash component I configure via xml. I built my xml from the example that came with the component. The xml for each song has an element like: ' item id="1"'. I copied the example and my list consists of 'song' elements, each with an incrementally ascending integer in its 'item:' element:
    first song has 'item id="1"'
    second song has 'item id="2"' etc.
    Do these id values control the actual order of display or is that controlled by the order of the 'song' elements.
    I want to insert songs into the list at various places and need to know if I need to renumber all the item id values in the list.
    Also if I incremented each id by 10 or something to leave 'space' for insertion, would that create screwey looking screens because the item ids are not consecutive integers? Is the ID a simple unique string identifier or are there 'requirements' on its values?
    Thanks for any help Glenn

    Last edit on 26/1/12
  • avatar corneliu.chitanu
    on 30/1/12
    Hello Glenn,

    Usually, on our components, the IDs do not determine the order of the items. They just need to be unique numbers. To play the items in a particular order, you just need to put them in that order in the XML file. If you need an item to be first on the list, just paste it first on the XML list.

    If that doesn't do it for your component, please let us know what component you're using. We'll check it out to see where the problem is, if there's any.

    I hope you'll enjoy the component.
  • avatar
    glymax
    on 5/2/12
    Hi Corneliu....
    I finally got time to alter my xml and it worked correctly according to your instructions. the songs came out in the order they exist in the xml, not by id.

    ( I believe I gave you this URL years ago, but here it is in case you want to look/listen http://emteeman.com/emteeStreamer.html )
    Thanks much.
    Glenn
  • avatar corneliu.chitanu
    on 6/2/12
    Hi Glenn,

    Thanks for the link. We hope you'll enjoy the player, because we did enjoy some of your music.

rss Subcribe to topic RSS

Post a comment

Please login to join the discussions. Don't have an account? Register (it takes 30 seconds)

This week's featured product

Audio Recorder for Adobe Flash

This is a fully customizable Audio Recorder for Adobe Flash, built with support for exporting MP3 files. Your user will be able to record with ease, because everything you need is in the component (no need for a streaming server).

Become a premium member

premium membership Flabell and Themesbell membership provides users with the ability to download any of our components for Adobe Flash and website themes for free, during an entire year.
read more