Load different xml structure in single flash file

Hi to all,
How can i call different xml structures in single file..
actually i am looking for 2 different menu galleries in single
file.. first menu contains.. some 4 to 5 buttons.. done with this..
in other flash file..having some of 4-5 buttons.. and these
buttons.. to show in main flash file.. can i load 2 different swf
files in single main file and with different xml structure please
help me on this.. thanks in advance.
Best Regards
Satish Kumar Rajula

yes, you can use one xml instance with an if-statement, but
it's easier and cleaner to use different xml instances and
different parsing code for each xml file loaded that has different
structure.

Similar Messages

  • How to load 2 xml galleries in single function loop.

    how to load 2 xml galleries in single function loop.
    my function is--------
    var myGalleryXML = new XML();
    myGalleryXML.ignoreWhite = true;
    myGalleryXML.load("gallery.xml");
    function callThumbs()
        _root.createEmptyMovieClip("wall",_root.getNextHighestDepth());
        wall._x = _root.gallery_x;
        wall._y = _root.gallery_y;
        wall.addEventListener(MouseEvent.CLICK);
        var clipLoader = new MovieClipLoader();
        var preloader = new Object();
        clipLoader.addListener(preloader);
            for (i =0; i <6; i++)
            thumbURL = myImages[i].attributes.thumb_url;
            myThumb_mc = wall.createEmptyMovieClip(i, wall.getNextHighestDepth());
            myThumb_mc._x = _root.thumb_height * i;
            myThumb_mc._x = _root.thumb_position = -3100 + (i-j) * 765;
       clipLoader.loadClip("shop/" + thumbURL,myThumb_mc);  // i want to load this  by xml gallery "gallery1.xml"
    preloader.onLoadStart = function(target)
                target.createTextField("my_txt",target.getNextHighestDepth(),0,0,10,10);
                target.my_txt.selectable = false;
            preloader.onLoadProgress = function(target, loadedBytes, totalBytes)
                target.my_txt.text = Math.floor((loadedBytes / totalBytes) * 100);
            preloader.onLoadComplete = function(target)
                new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
                target.my_txt.removeTextField();
                target.onRelease = function()
                    callFullImage(this._name);
                target.onRollOver = function()
                    this._alpha = 100;
                target.onRollOut = function()
                    this._alpha = 100;
        for (i = 0; i < 6; i++)
            thumbURL = myImages[i].attributes.thumb_url;
            myThumb_mc = wall.createEmptyMovieClip(i, wall.getNextHighestDepth());
            myThumb_mc._x = _root.thumb_height * i;
            myThumb_mc._x = _root.thumb_position = -7210 + (i-j) * 765;
            myThumb_mc._y = _root.thumb_position = 180;
            clipLoader.loadClip("banner/" + thumbURL,myThumb_mc);  // i want to load this  by xml gallery "gallery2.xml"
            preloader.onLoadStart = function(target)
                target.createTextField("my_txt",target.getNextHighestDepth(),0,0,10,10);
                target.my_txt.selectable = false;
            preloader.onLoadProgress = function(target, loadedBytes, totalBytes)
                target.my_txt.text = Math.floor((loadedBytes / totalBytes) * 100);
            preloader.onLoadComplete = function(target)
                new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
                target.my_txt.removeTextField();
                target.onRelease = function()
                    callFullImage(this._name);
                target.onRollOver = function()
                    this._alpha = 100;
                target.onRollOut = function()
                    this._alpha = 100;

    combine the two xml files into one if you want to create one gallery.
    if you want two different galleries that display at different times, remove the movieclip wall after you're done with gallery1 and execute myGalleryXML.load("gallery2.xml");

  • Concatenate different reports in a single PDF file

    Hi,
    I need to concatenate different reports in a single PDF file.
    What I want is to have a single PDF file as a result of a single URL request; but my request runs different reports having a single file as a result.
    In other words, I already have the report A, B and C.
    I'd want to build a new report "D" that invokes A, B and C returning a single PDF that contains A + B + C.
    How can I do it? Is there a SRW function?
    Thanks in advance for your help
    Samuele Gallazzi

    You can concatenate pdf's together using Ghostscript on unix. Just a bit of scripting.

  • Merge Flash Player Skin with Flash Video for Single Flash File

    My company uses a content management system for it's website and I am the administrator. The CMS does not require or use html code. I am a new to Flash, but I am able to produce some simple files. I have compiled a simple 2 minute video clip that I need to upload to my companies website. The Flash file requires a player skin which I was able to produce. I understand that when you output to Flash, two files are created. As I understand it, one file is for the skin and the other is for the movie along with the html code that links the two. Unfortunately, our content management system does not recognize the link between these two sets of files and I am unable to import them. I can import the flash movie clip without the player, but that does not suit my needs. I can import the player skin without the movie, but there would be no point. Is there a way to output both files into a single Flash file with the player skin embedded into the Flash movie? I have the full Adobe Master Suite CS4, is it possible another program could be used for that purpose or is this an impossibility? Any information you could provide would be appreciated...thanks...

    My company uses a content management system for it's website and I am the administrator. The CMS does not require or use html code. I am a new to Flash, but I am able to produce some simple files. I have compiled a simple 2 minute video clip that I need to upload to my companies website. The Flash file requires a player skin which I was able to produce. I understand that when you output to Flash, two files are created. As I understand it, one file is for the skin and the other is for the movie along with the html code that links the two. Unfortunately, our content management system does not recognize the link between these two sets of files and I am unable to import them. I can import the flash movie clip without the player, but that does not suit my needs. I can import the player skin without the movie, but there would be no point. Is there a way to output both files into a single Flash file with the player skin embedded into the Flash movie? I have the full Adobe Master Suite CS4, is it possible another program could be used for that purpose or is this an impossibility? Any information you could provide would be appreciated...thanks...

  • Load different xml docs to same database table

    I have 2 different xml documents that contains the information about rows which should be loaded into a database table.
    File 1:
    <customer>
    <name>Company1</name>
    <city>Helsinki</city>
    </customer>
    File 2:
    <client>
    <clientname>Company2</clientname>
    <clientcity>Helsinki</clientcity>
    </client>
    The data in the 2 different files should be read and inserted as a row into the same database table.
    Instead of creating a java program for each xml file to insert the content into the database, I would like to first "translate" the content of the xml files and create a file for each xml file which uses the same tags, so that my java programs only reads the new "translated" files and inserts the data into the database.
    This means that when I receive a new xml file with different tags but information about a row that should be inserted into the same table, I just have to "translate" this file, and use the same java program to insert the new file data into the database.
    I would like to know which technology should be used to perform this task.

    XSLT is quite commonly used for this.
    Or, for more a formal approach, google 'xml "architectural forms"'
    Pete

  • Help needed to load different xml playlists by clicking button

    Hi there,
    I have a series of buttons, when i double click a button i want to load a new xml file
    I have some functioning code, but when i click on more than one button per run of the application, it will only use the first xml that was clicked / loaded.
    Does anyone have any suggestions I would be really grateful
    Thanks!
    // Music player populated via XML formatted data with associated .mp3 audio files
    // songs to play structured as an XMLList class
    // displays artist and song title in the interface
    cover.visible = false;
    cover2.visible = false;
    // song list base on an XMLList class
    var songList:XMLList;
    // total number of songs in list
    var songsTotal:Number;
    // sound class variable
    var sound:Sound;
    // sound channnel variable to play, pause and stop the sound
    var soundChannel:SoundChannel;
    // holds a reference to the current song playing
    var currentSong:Number = 0;
    // variable to store the song position when paused
    var songPosition:Number;
    // flag to check if current song is paused
    var songPaused:Boolean;
    //  loader for XML via a URL
    var XMLLoader:URLLoader = new URLLoader();
    // various buttons to control songs via the interface
    next_btn.addEventListener(MouseEvent.CLICK, onNext);
    prev_btn.addEventListener(MouseEvent.CLICK, onPrev);
    pause_btn.addEventListener(MouseEvent.CLICK, onPause);
    play_btn.addEventListener(MouseEvent.CLICK, onPlay);
    album1.doubleClickEnabled=true;
    album2.doubleClickEnabled=true;
    album1.addEventListener(MouseEvent.DOUBLE_CLICK, loadalbum1);
    album2.addEventListener(MouseEvent.DOUBLE_CLICK, loadalbum2);
    // check the data has loaded correctly
    XMLLoader.addEventListener(Event.COMPLETE, processXML);
    // this function processes the XML data
    function processXML(e:Event):void {
    // create an XML playlist structure
    var anXMLplayList:XML = new XML(e.target.data);
    // associate the playlist songs with the internal song list
    songList = anXMLplayList.SONG;
    // set the total songs to those found in the XML data
    songsTotal = songList.length();
    // remove the eventlistener and restore variables
    XMLLoader.removeEventListener(Event.COMPLETE, processXML);
    XMLLoader = null;
    // this function starts the first song in the list
    // when the play_btn is pressed via the onPlay function
    function playSong(aSong:Number):void {
    // variables for the Title, Artist and associated song in the song list
    var aTitle = songList[aSong].@TITLE;
    var anArtist = songList[aSong].@ARTIST;
    var aURL = songList[aSong].@URL;
    // populate the interface with the current song data
    title_txt.text = aTitle;
    artist_txt.text = anArtist;
    // check to see if the sound channel is active
    if (soundChannel) {
      soundChannel.stop();
      soundChannel.removeEventListener(Event.SOUND_COMPLETE, onNext);
    // create a new sound object
    sound = new Sound();
    // load the sound from the URL song data
    sound.load(new URLRequest(aURL));
    // activate the sound channel via the play method
    soundChannel = sound.play();
    // when the current songh completes - play the next song via the onNext function
    soundChannel.addEventListener(Event.SOUND_COMPLETE, onNext);
    // this function plays the next song in the list
    function onNext(e:Event):void {
    // increment the current song
    currentSong++;
    // reset the current song if no more to play
    if (currentSong>=songsTotal) {
      currentSong=0;
    // else play the current song via the playSong method
    playSong(currentSong);
    // this function plays the previous song in the song list
    function onPrev(e:MouseEvent):void {
    currentSong--;
    if (currentSong<0) {
      currentSong = songsTotal-1;
    playSong(currentSong);
    // this function pauses the current song playing and sets the boolean flag
    // accordingly
    function onPause(e:MouseEvent):void {
    if (soundChannel) {
      songPosition = soundChannel.position;
      soundChannel.stop();
      songPaused=true;
    // this function plays the current song or restarts a paused song
    function onPlay(e:MouseEvent):void {
    if (songPaused) {
      soundChannel = sound.play(songPosition);
      songPaused=false;
    } else if (!soundChannel) {
      playSong(currentSong);
    function loadalbum1(e:Event):void {
    cover.visible = true;
    cover2.visible = false;
    // load the XML formated playlist
    XMLLoader.load(new URLRequest("playlist1.xml"));
    function loadalbum2(e:Event):void {
    cover2.visible = true;
    cover.visible = false;
    // load the XML formated playlist
    XMLLoader.load(new URLRequest("playlist2.xml"));

    You should try to limit the code you post to what is relevant to the problem... it is hard to track things down, especially when your code is not formatted properly with indentations.
    I didn't search farther than finding that you remove the event listener for the URLLoader...
    XMLLoader.removeEventListener(Event.COMPLETE, processXML);
    so if you remove it after you load the first file and do not restore one for it, then chances are you don't "processXML" any more than the first file you load

  • Total XML structure into single table field

    Hello All,
          I want to send total XML structure(including Tags and Data) into single field in a Table.
    Ex: <MaterialDetails>
           <MaterialNumber>00111</MaterialNumber>
           <MaterialQuantity>200</MaterialQuantity>
         </MaterialDetails>
    Plz Can anyone tell me How to do this indetail?
    Thanks
    San

    Generate this entire string in a UDF and assign it to the respective element.
    VJ

  • Complex swf/xml structure with "donwload updated files" ?

    Hello to all, sorry for my bad english.
    i have a complex structure of swf + xml structure.  something like 200 files..  i was wondering if is it possible to create an air application for install all this package on a client and then check is some file of the structure is updated on the server and then after a user confirmation download and replace those files.
    if is it possible someone could give me guideline for develop this application?
    thank you so much

    AIR doesn't support incremental updates. Any update package is a full install.

  • How to load multiple swfs to my main flash file??

    I am using the following code
    In actions for Frame 1:
    var myrequest:URLRequest=new URLRequest("A.swf");     
    var myloader:Loader=new Loader();
    myloader.load(myrequest);
    img1.addEventListener(MouseEvent.CLICK, clickButton);
    function clickButton(event:MouseEvent):void{               
        stage.addChild(myloader);
    img1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);
    function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void
         gotoAndStop(13);
    In action for Frame 13:   (img2 is another button)
    img2.addEventListener(MouseEvent.CLICK, unloadFunction);
    function unloadFunction(event:Event):void{
         stage.removeChild(myloader);
    This code works perfectly fine. My only problem is, How do I get multiple swf loaded. When I tried to copy and paste the same code for the other swf, but the following errors appear. I'm pretty sure theres a way to have multiple swfs (btw the multiple swfs will be linked from different frames).
    Scene 1, Layer 'PAGES!', Frame 2, Line 7 1021: Duplicate function definition.
    Scene 1, Layer 'PAGES!', Frame 2, Line 2 1151: A conflict exists with definition myloader in namespace internal.
    Scene 1, Layer 'PAGES!', Frame 2, Line 1 1151: A conflict exists with definition myrequest in namespace internal.
    Can someone please help me with this. Thanks

    You define the same variable or function names more than once in a file.  But you can reuse them in other frames.  Try something more like the following in frame 2....
    myrequest=new URLRequest("A.swf");     
    myloader.load(myrequest);
    leave all of the rest out for starters... the same function from frame 1 can be re-used without rewriting them.  I don't know what the deal is with img1, but if you need to change what it does, then add that back in.

  • Is it possible to deploy two different EJBs in one single descriptor file?

    Hi, I'm working with two EJBs I wanna deploy them in one single jar, so my question here is, is it possible to deploy two or more EJBs within the same xml descriptor file?, if so, could you please give me an example of it?, I'm working with Stateless session beans, thanks in advance.

    You can have as many beans in an EJB deployment descriptor as you like - i think, i have not run into a limit yet...
    <ejb-jar>
    <enterprise-beans>
    <session>
    <description>Session Bean ( Stateless )</description>
    <display-name>BEanOne</display-name>
    etc...
    </session>
    <session>
    <description>Session Bean ( Stateless )</description>
    <display-name>BeanTwo</display-name>
    etc...
    </session>
    </enterprise-beans>
    </ejb-jar>
    m

  • Need to load and unload swf from single htm file

    I need to load or unload swf file or we can say that i need load 3 project one by one in current window

    mit,
    So are you saying you need to have one swf file call a second file to play, then call a third to play...
    Which Captivate version are you using?
    Are the swf files all captivate published swf's?
    Do you have access to Flash Professional and if so what version?
    how are you running your file, is it scorm packaged or just html based?
    I may be able to help with your issue, but need these details.

  • Is there a maximum number of small mp3 files that can be in a single flash file

    my flash program fails to respond after adding one more mp3 file to the mix. Is there a maximum number of files it accepts? I have tested the mp3 file on a new fla file and there is nothing wrong with it.

    there are maximums to to everything in flash including scenes, frames, layers etc and there are computer memory limits.

  • How to spilt the screen in to frames and load different pages in a single window??

    i want to split the screen in to frames using flex help me...

    Welcome to the forum!
    The video I want to create is look like a cubic, with my face all around the centre and looking to her ( a video of her will be in the centre) and 8 different video of mine looking to hers.
    Put the clip(s) of you on 8 different video tracks in the timeline above each other, and the clip of the girl you want in the center on a 9th video track.
    Double-click one of the clips to open it into the viewer. Click the motion tab. There, adjust the scale value so it is the right size and the center value so that it is correctly positioned. Repeat for the other 8 video tracks.
    Hope this helped,
    Sasha

  • Flat file with different  layouts in a single file

    Hello Friends,
    Good Morning.
    I am new to ODI - Oralce Data Integrator 11G.
    I have a flat file where I had to load the flat file data to a oracle DB ( 11G ).
    The flat file has 5 different layouts ( Data of 5 different suppliers coming as a single file and each layout is different ) and each layout corrresponds to one supplier information.
    I had to load each layout data into a different table using a single source file ( That has all supplier information).
    Please advice.
    Thanks/Kumar

    Ok below are the layouts.
    BASE record                                                                                                    
    DS01 record                                                                                                              
    RM01 record                                                                                                         
    CR01 record                                                       
    NW01 record                                                       
    Few more question to you.
    Are they always come in sequential like below ?
    BASE record                                                                                                    
    DS01 record                                                                                                              
    RM01 record                                                                                                         
    CR01 record                                                       
    NW01 record
    BASE record                                                                                                    
    DS01 record                                                                                                              
    RM01 record                                                                                                         
    CR01 record                                                       
    NW01 record
    BASE record                                                                                                    
    DS01 record                                                                                                              
    RM01 record                                                                                                         
    CR01 record                                                       
    NW01 record
    Do you want only insert or insert/update as well ?

  • Convert IDOC XML structure to flat file - and now?

    Hi,
    we are working with input message ORDERS05 and want to convert it to flat file.
    So we used the implementation description from "how to convert an IDOC-XML structure to a flat file....".
    Looks like this is a standard procedure described here fitting for all IDOCs.
    We followed the guide, making XI ready for Abap-Mapping, implemented the Abap class like described, added an interface mapping with source ORDERS05 to a mess.type dummy destination, added with type Abap-class the class implemented from the guide and completed the Int.Dir. implementation.
    For comparism purpose we have two systems as receiver, one with a standard flat file with regular graph.mapping in XI, one with the Abap mapping.
    Result:
    Error description in SXMB_MONI:
    Didn´t expect something like that! The IDOC was delivered successfully to the other simple flat file receiver.
    Any idea what we made wrong (we are on SP17) or if there is a standard mistake you can do when following the guide?
    Best regards
    Dirk

    Hi,
    I've got the same problem. He the solution in my case:
    The problem is:
    My IDOC has no element <STDMES>, but the method IF_MAPPING~EXECUTE from the 'HOW-TO Guide' does not check this situation:
    el_element = idocument->find_from_name('STDMES').
    ls_edidc-stdmes = el_element->get_value().
    thows the exception.
    Solution:
    make shure that the field STDMESis set or change the method to:
    el_element = idocument->find_from_name('STDMES').
    if not el_element is initial.
        ls_edidc-stdmes = el_element->get_value().
    endif.
    Best regards
    Dieter

Maybe you are looking for

  • Using the EDK in ASP Pages

    Hi there, I have an ASP Portlet that I would like to move to use the EDK. (It formerly used the GDK). As it is quite a large application, moving it to .NET is not possible at this time. Does anyone have any experience with this? The overall objective

  • Aperture won't launch a second time... must restart Mac

    I have a huge amount of photos; so many that I had to break the library down into several smaller ones. Until yesterday, everything worked fine. I could open Aperture by double clicking on any library or switch between them with ease. Today, however,

  • Issues with iPhone 4 Face time

    Issue faced as follows : Part A : 1. I made a call to a friend 2. Clicked on Face time and call was successful. 3. Hung up and it stored a record in an iphone as Name of the person i called , FaceTime,Camera icon Part B : 1. Now i re-dial the above s

  • Where can I get Messaging Server 3.5 with 128-bit encryption?

    Where can I get Messaging Server 3.5 with 128-bit encryption? <P> Messaging Server 3.5 is available for export (40-bit encryption) and domestic (128-bit encryption). The domestic version includes support for Fortezza.

  • Is Photoshop CC 32 bit, or 64??  From what i can tell, it looks like there's versions of both.  So h

    Is Photoshop CC 32 bit, or 64??  From what i can tell, it looks like there's versions of both.  So how do i know which version i have downloaded in the $9.99 year trial?