loading and unloading data xml as2

I'm working on an AS2 file and load several FLV files in flv player through xml files. But I am experiencing the slot problem.

I want to load several xml files in the same list (container), linked through buttons.

Each xml file has a different number of FLV files. Now, when I load an xml with 10 files FLV file and then load 5 FLV files through the other list, I see again 10 FLV files in the list instead of 5 new flvs. The list retains the previous flvs down 5 and replaces the top 5 with the new FLV files. I'm not a developer but know base AS2 and AS3.

Any help will be appreciated.

Thank you.

found a simple solution:
If you load the 'data' in a movieclip then you can try to join the container/mc whenever you get a new list of xml and then remove and unloading it just before insertng a new set, worked like a charm, remove the extra bits!

Thanks to my Savior!

Tags: Adobe Animate

Similar Questions

  • Can we load and unload the files in the run time?

    Can we load and unload the files in the run time?

    For example, there are four files named 'test1.h & test1.c' and another series 'test2.h & test2.c' (I have attached as an attachment to this post).

    test1.h contains the code:

    int variable; variable declared as integer

    test1.c contains the code:

    variable = 1; variable a value assigned

    test1.h contains the code:

    char * variable. variable declared as string

    test1.c contains the code:

    variable = "EXAMPLE"; a string that is assigned to variable

    So here, in this case can I dynamically load / unload first & second group files so that the same variable "variable" name can be used as an integer and string? And if so, how to do?

    Hi pa1majeti,

    You cannot simply consider that some code is loaded into memory or not: all code in a compiled application is permanently in memory unless you divide your application into DLLs that you dynamically load if necessary and remove if is no longer necessary.

    But as I understand from your description, you're better given the amount of memory occupied by the data (i.e. the contents of the variables) rather than the code. If this is the case, your only option is to allocate memory for variables dynamically and free it after it has been used. Now, even if this option is useful if you are using large networks of data, there is little or no effect on the unique variables.

    A final Council, given the huge memory installed on modern computers, are you sure you really need that extra work? I mean, the dynamic allocation of memory involves some additional precautions in programming: check the errors on each function malloc or calloc, check that the pointer is valid before each use, freeing pointers before reassignment in order to avoid memory leaks and so forth, so a balance must always be sought between the memory and the difficulty in programming.

  • With the help of a button to load and unload the external SWF in AS3?

    How can I use a button to load and unload a sequence of external SWF files, as a Next button and previous?

    I don't know if it will work because apparently you are trying to load a swf AS1/2, but try

    change the line to be...

    _swfTempClip = MovieClip (event.target.content);

    If this does not work, then you will need to create _swfTempClip as a new MovieClip and add the event.target.content to this MovieClip using addChild().

  • Loading and unloading of the external swf with buttons

    Alright. Here's the deal. I have 7 buttons on my main page, on the left side of the screen. I want the buttons to the external swf on the right to load and unload then when you push a different button. Should I make a table? Do I need a clip vacuum film to load each swf in?

    ///////////////Buttons/////////////////////

    graphics - load the thumbnail scroll bar

    mixed technique - load the thumbnail scroll bar

    photography - load the thumbnail scroll bar

    illustration - charge the miniature scroll bar

    Words - list history of charges

    Contact - contact information of charges

    charges about - bio

    ////////////////////////////////////////////

    Thanks for any help.

    If you are unable to publish for flash player 10, you will need to use the instead of unloadAndStop() unload() method.

  • Load and save data of the façade settings

    Can someone give me some examples of VI that ables user so save his choice front face? And tell me if it is possible to save values and strings of all the fields that have been filled by the user. I want to implent a settings 'LOAD' and 'SAVE', and I want these parameters can be read out of LabView, to facilitate the intereaction of the user.

    It would be wonderful if someone can support me in this.

    Thank you very much

    AMT

    Hello

    I have attached a very quick example and dirty.  But you should get the idea of how do

    Craig

  • Load and unload the swf file

    I am currently using AS2.

    I create a button instance named 'myBtn' and I want it to load the external swf "test2.swf" call all to unload the current swf file named "test1.swf" when you press on / release.

    that fact is I put the following code under mybtn:

    We (Press)

    {

    unloadMovie ("test1.swf");

    loadMovie ("test2.swf", 1);

    }

    the result was that the "test2.swf" was loaded successfully, but the "test1.swf" fail to unload.

    Any help is welcome

    AS2... Scope is your problem. When you are inside the function for delivery you tell the button you used to unload test1.swf of inside of this button (which it is not located in).

    You are probably using the root timeline, so I'll take a bet that it works:

    (press)

    {

    _root.loadMovie ("test2.swf");

    }

    If you want to follow the progress of loading between them, it is a bit more complex.

  • Need HELP loading and unloading SWFs external when the user clicks on the buttons

    Hi everyone, I'm working on a few Web sites at the moment, one for being my online portfolio, as well as my Web site for a product of sleep, that I'm selling.  I have very little experience with AS3, last time I created a Web site that as2 has been used.  I tried a few tutorials online, but nothing performs the work, there is always an error...

    I have an index.swf that loads the default home.swf.   There is also an about.swf, contact.swf, order.swf and testimonials.swf...

    It was a hair pulling 4 days now, not be able to get this working.

    All I need is for the swf external to pull up when you click on the corresponding button, and when the next button is clicked, the current to unload swf and swf to load new file.  It was so simple with AS2, you would think things could be as easy, if not easier.   So any help that all the world can offer, I would be so very you happy for me!  If necessary I can copy my current code, even if it doesn't work!   Thanks, Mike

    var loader: Loader = new Loader();

    addChild (loader);

    home_btn.addEventListener (MouseEvent.Click, loadF);

    about_btn.addEventListener (MouseEvent.Click, loadF);

    contact_btn.addEventListener (MouseEvent.Click, loadF);

    function loadF(e:Event):void {}

    Loader.Load (new URLRequest (e.currentTarget.name.split ("_") [0] + ".swf")); / / assuming that each reference button is also the button's name property

    }

  • load and unload as3 problem

    Hi all

    I'm hard to a project: I have a movie that loads other principal according to theframework. In each framework I put the following code:

    var loader:Loader=new Loader();
    loader
    .contentLoaderInfo.addEventListener(Event.COMPLETE,f);
    loader
    .load(new URLRequest("file#.swf"));
    addChild
    (loader);

    function f(e:Event):void{
    loader
    .scaleX=0.50;
    loader
    .scaleY=0.50;
    }

    The problem , it's that when I charge the next film , an overlay it happens . That's why need of download the swf that cheek and then load the other. I tried un bunch of stuff ()unload /unloadAndStop / removeChild() , but does not. Could someone give a help? Thank you.

    Take the first four lines of your code and simply leave them as what in the first image, loading of any other file you want to load it.

    var loader: Loader = new Loader();
    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, f);
    Loader.Load (new URLRequest("file#.swf"));
    addChild (loader);

    Then just have the line where you load new in the following frames:

    Loader.Load (new URLRequest("file##.swf"));

  • Loading and writing data Budget FDM vs ERPi

    Say you want to load some data from a GL (Suite EBS) in planning and then write this budget data to the EBS. Also need to drill holes in the feature off planning web forms. What is the best way to do it?

    I thought to load data using FDM (so through, users can get the drill) and then write to EBS with ERPi. Does this sound right?

    Hello EssbaseApprentice,

    To answre questions:
    Yes 1A).
    n ° 1 b)

    No. 2A) Although it is handy to help you 'see' data before it is loaded.
    Yes 2 b).

    Thank you

  • problem with loading and unloading Movie

    Hello

    I have a function on the button to load an external swf and then I the anther button to unload

    It works perfectly...

    But when I put it on server to work online, it does not work

    Could someone help please?

    Make sure that sub01.swf is uploaded to the correct directory online and use:

    ////////////////////

    {We (Release)}

    _root. Loader_mc.loadMovie ("sub01.swf");

    }

    and the unloading function is

    ////////////////////

    on (release) {}

    _root. Loader_mc.unloadMovie ();

    }

  • Load and unload

    I'm trying to get a two separate clips in the library to load.  The first is a menu with three buttons and after having selected a film clip menu unloading and a new clip will load.  My code is below, but it doesn't seem to work.  I'm new to this so any help would be appreciated.

    import flash.display.MovieClip;
    to import flash.display.SimpleButton;
    import flash.events. *;
    import flash.ui.Mouse;
    import flash.display.Loader;
    Import fl.transitions.Tween;
    Fl.transitions.easing import. *;

    last_btn.addEventListener (MouseEvent.CLICK, test);

    var my_Loader:Loader = new Loader();

    function test(e:MouseEvent):void {}
    var newMenu:MenuParch = new MenuParch();
    var myTweenAlpha:Tween = new Tween (newMenu, "alpha", Strong.easeOut, 0, 1, 1, true);
    this.addChild (newMenu);
    newMenu.x = 125;
    newMenu.y = 0;

    var newBioButton:CloseButton_Bio = new CloseButton_Bio();
    this.addChild (newBioButton);
    newBioButton.x = 177;
    newBioButton.y = 50;

    newBioButton.addEventListener (MouseEvent.CLICK, testOut);
    function testOut(e:MouseEvent):void {}
    removeChild (newMenu);
    removeChild (newBioButton)
    var newVideo:showVideo = new showVideo();
    this.addChild (newVideo);


    }
    }

    I'm not quite clear on the scenario you described.  Makes you look like a button in the menu, this is what removes things, but by your code, it seems that an independent button you add also dynamically (newBioButton) - what.

    You shouldn't nest called function within other functions... it's usually an accident waiting to happen.  Try to declare your object on the outside so that they are available more broadly and so you can separate these functions...

    last_btn.addEventListener (MouseEvent.CLICK, test);

    var my_Loader:Loader = new Loader();

    var newMenu:MenuParch;

    var newBioButton:CloseButton_Bio;

    function test(e:MouseEvent):void {}
    newMenu = new MenuParch();

    this.addChild (newMenu);
    newMenu.x = 125;
    newMenu.y = 0;
    var myTweenAlpha:Tween = new Tween (newMenu, "alpha", Strong.easeOut, 0, 1, 1, true);

    newBioButton = new CloseButton_Bio();
    this.addChild (newBioButton);
    newBioButton.x = 177;
    newBioButton.y = 50;

    newBioButton.addEventListener (MouseEvent.CLICK, testOut);
    }

    function testOut(e:MouseEvent):void {}
    removeChild (newMenu);
    removeChild (newBioButton)
    var newVideo:showVideo = new showVideo();
    this.addChild (newVideo);

    }

  • The main Application of loading and unloading component

    I want to load in my main application 2 components. Right now I have load with this:

    < components: loadProject id = "loadPrj" visible = "false" click = "loadPrj_clickHandler (event)" red = horizontalCenter '7' = "0" / > "

    and I put only visible to true. Inside this component, there is a canvas.

    But is there another way to do it using a class AS file? I want to load/unload on click, not only the value true or false visible.

    You might miss the import instructions.  Code hinting will offer classes

    that you have not imported.

  • Reading and writing data XML of BC4J

    Hello!

    I try to reproduce "27.7 reading and writing XML data" chapter of 'Developer Framework of developing applications for forms/4GL developers's Guide. "
    Our intention is to read and write at first only XML.
    However, it seems that we need this chapter a database connection.
    To shorten this assessment - is it possible to adf bc only with xml?

    Kind regards
    Torsten

    The solution is described in "27.8 Using programmatic view objects from other Sources of data" in the doc you mentioned. If you use programmatic EO/VO you can do almost what you what to store data. We use xml for some data (but always store in the DB) and read it.

    Timo

  • Smartphones blackBerry automatically roboot and switch off when the loading and unloading...

    my phone gets off power using... and it reboot peremptory I did not able to use the mobile... and also my data is on, but the phone does not connect to the internet. so I couldn't go... my memory of inbuild is also free (137/480) and I already have the micro sd card. Please help me solve this problem...

    Your message is difficult to read and understand. Nevertheless, here are some thoughts and ideas...

    Turn off or restart in use: lack of battery Possible. Possible loss of connection of the battery with the unit because of the movement of battery in the compartment, or dirty or corroded contacts. Possible software or the definition glitch. Failure or damage possible peripheral equipment. Troubleshoot, exclude a possibility at a time, starting with the simple and the less than fresh.

    No BlackBerry data service: no data, or no service book plan. Add line if necessary plan. Do this correctly configured carrier plan. Return service directories.

    Out of memory? Too many applications, too much data. Remove the need to free up needed space.

  • RSL loading and unloading sub-demande

    Greetings!

    Main application which is not related with RSL_A load into child application domain sub-application, which is linked with RSL_A.

    I guess that RSL_A will be loaded into the first image when loading the application.

    Question: RSL_A remains in memory after unloading of application main sub - App logically RSL_A should disappear. Is this true?

    Thank you

    _Ilya

    RSL_A should unload.  Make sure that it actually get loaded into the child

    AppDomain.

Maybe you are looking for