Multiple loader component instances

Hi everyone, I'm having some problems with the loader
component... I'm trying to create multiple loader instances
dynamically, but only the last instance is showing. I can't figure
out how to solve that... I've already tried to use
duplicateMovieClip, and it didin't work also.
This is the code I'm using, thanks in advance!

Thanks everyone, I found the problem.
old code:
createClassObject(mx.controls.Loader, "tempLoader" + i,
1, {contentPath: images[ i ], scaleContent: true, width: 80,
height: 60, _x: ((Stage.width-10)-80), _y: (i*70)});
new code:
createClassObject(mx.controls.Loader, "tempLoader" + i,
i, {contentPath: images[ i ], scaleContent: true, width: 80,
height: 60, _x: ((Stage.width-10)-80), _y: (i*70)});
It was o problem of depth

Similar Messages

  • How to create multiple component instances at runtime using java

    Hi,
    I need to create component instances at runtime using java.I found ComponentSet.add method.But I am not finding a way to get handle of ComponentSet.
    I see methods with params of IRuntimeNode.But how to get ComponentSet from IRuntimeNode.
    If anybody knows or have sampel code then please share with me.
    thanks,
    ashok

    Ashok --
    This is a common challenge for those using Configurator Extensions with multiple instantiation for the first time. The problem is that the CIO's representation of the structure for multiply-instantiable Components differs slightly from what both Configurator Developer users and Configurator Runtime users see in those respective applications. Multiply-instantiable Components are not direct children of the Model in which they're defined. Internally, there is an entity that sits between the parent Model and the instantiable Components; that intermediate entity is the ComponentSet object you've found in the CIO documentation.
    If the name of your multiply-instantiable Component is "My Component", then its ComponentSet may be accessed simply by calling getChildByName("My Component") on its parent Model; a List of the instantiated Components may be accessed with the ComponentSet's getChildComponentNodes() method, and instances may be added and deleted using its add() and delete() methods.
    Hope this helps.
    Eogan

  • Multiple component instances for one component usage

    Hi,all
    How can I create multiple component instances for one component usage.
    I'm using the following code for creating  a single component instance for specific component usage:
    if(c_Usage.hasActiveComponent())
          c_Usage.deleteComponent();
    if(wdContext.currentContextElement().getSelectedTab().equalsIgnoreCase("Registered"))
          c_Usage.createComponent("health.gov.registered.Registered";);
    I can't create one more component instance for
    IWDComponentUsage c_Usage
    cause I have to delete the component instance associated with this component usage.
    Any idea how can I do it anyway?
    Regards,
    Michael

    Hi,
    To create another instance of the same component you need to embed the same component under the Used Components more then once. For Example if you have Componet A to which you want to embed Component B then under "Used Components" of Component A add component B twice.

  • Making a Jpeg gallery with the Loader component...

    I'm trying to make a gallery using many loader component
    thumbnail photos that present their larger image in a different
    (loader component) box when rolling over with my cursor...Is this
    right? Is there an easier way I can do this?
    If I can do it this way easily, I'd like to. PLEASE, if
    anybody has the answer let me know, thank you.

    This sounds right. The nice thing is that you can replicate
    the loader component and give it various instance names and just
    point each one to its photo in your ActionScript.
    I did something similar here:
    http://sarajoypond.com/portfolio

  • Loader component problem

    This should be a simple problem. I want to use the flash
    loader component to load pictures. I drag the loader onto the
    stage. Type the pic name in the parameters and save them in the
    same folder but nothing comes up? I'm using flash 8. Do I have
    setting wrong or something?I have a video tutorial on how to do
    this and I follow it eactly but it doesn't work.

    Just a quick checklist.
    1. is the Loader control set to AutoLoad = true?
    2. are you sure the instance name of your Loader is
    contentLoader?
    3. if you type in the contentPath property in the parameters
    window does it work then?

  • Loader Component Trouble

    Hey guys...
    I'm back. I am still working on this site, and have worked
    through numerous challanges and gotten through, but I have now hit
    a roadblock that I cant seem to conquer... Here is the
    situation....I have a “main” file.... I am using the
    technique of loading external swf’s into a loader component
    on the main file. So each individual page is a different swf file.
    I have the navigation set up in a seperate swf file as well, and
    have the nav bar loading into another instance of the loader in the
    “main” file. The navigation has its own action
    scripting that animates it, and I have written action script so
    that when you click the buttons (I have attached the code that I
    wrote for the buttons), the other loader on the main page should
    load the corresponding swf... (still with me?) well I preview the
    “main” page and it runs great and the home.swf
    automatically loads and the nav loads (and animates), but when you
    click the buttons nothing happens... I hope someone can help me
    through this problem.... Thanks so much in advance....

    .......Doesnt anyone know how to help me with this issue?
    Best,
    Ken

  • Loader component with scrollbar

    Hello,
    I'm trying to attach a scroll bar to a loader component and it's not working. i don't want to use the scrollpane because its shows the outline around the box.
    is it possible to get a UIscrollbar attached to a loader component?

    Yes, you could potentially attach a scrollbar to the Loader component, but you are likely better off simply using the ScrollPane and styling it to not show the border.
    myScrollPane.setStyle("borderStyle","solid");
    myScrollPane.setStyle("borderColor", 0xFFFFFF);
    where "myScrollPane" is the instance name of the scroll pane, and 0xFFFFFF is your background color.
    You could go more in depth styling-wise, and skin the rectBorder instance to not have a border at all.

  • Loader component help

    ... I'm trying to get the imaged that's loaded within
    an instance of a loader component.. is there a way to align the
    image that's inside?

    Look in the online help at the Loader object and specifically
    at the info on Loader.content. The example will show you how to
    assign the loaded content as a movieClip instance. Then you can set
    new values to any of the properties of that clip.

  • Remove loader component temporarily?

    Hi,
    I am loading images dynamically into a loader component named
    myPicLoader.
    I want myPicLoader to be "unloaded" when I go to the home
    page, then reloaded when I go to the image page.
    Making the loader visible = false doesn't work since it only
    hides it.
    Any suggestions?

    unload the content:
    myPicLoader.unload();
    Then null out the myPicLoader instance and make sure it's
    recreated when you need it again (good time to have your loader in
    a separate class file. :) )
    myPicLoader = null;

  • Multiple loads to a cube ?

    hello BW Experts,
    Can we do multiple loads to a cube ?
    Thanks,
    BWer

    If it is a FULL LOAD, definitely there would be duplication of data from ODS. I think you should consider dropping of requests in a FULL LOAD scenario or implementing DELTA.
    In you update rules of the cube, do you have the option of Addition or No Update checked.
    if it is No Update, the report might be having a parameter of considering only the most current request. This is possible by using variable of REQUEST ID like "Most Current Data" which is an SAP Exit. In this case, if the cube is compressed the entire data would report as duplicate in your case.
    It is always desirable that the cube contains non duplicate data for efficient processing.
    Hope it helps.
    Regards

  • Failed to load application instance publishLive/live.

    Complete log error is (_defaultRoot_, _defaultVHost_) : Failed to load application instance publishLive/live..  Flash Admin Server and Flash Media Server are running on local machine.  When testing I get [object NetConnection]: NetConnection.Connect.Failed.  When I remove the main.asc file it works...what's going on there?  I had this working at one point...my main.asc is below.
    var nc;
    var ns;
    var nsr;
    // Called when a client connects
    application.onConnect = function(client) {
        // accept the new client's connection
         application.acceptConnection(client);
         // send a message
         trace(client.id + " is connected");   
    // Called when a client disconnects
    application.onDisconnect = function(client) {
        trace(client.id + "disconnecting at " + new Date());
    // Called when the client publishes
    application.onPublish = function(client, livestream) {
        trace(livestream.name + " is publishing into application " + application.name);
        // This is an example of using the multi-point publish feature to republish
        // streams to another application instance on the local server.
        if (application.name == "publishLive/live"){
            trace("Republishing the stream into ustream");
            nc = new NetConnection();
            nc.connect( "rtmp://1.616528.fme.ustream.tv/ustreamVideo/616528" );
            ns = new NetStream(nc);
            // called when the server NetStream object has a status
            ns.onStatus = function(info) {
                trace("Stream Status: " + info.code)
                if (info.code == "NetStream.Publish.Start") {
                    trace("The stream is now publishing");
            ns.setBufferTime(2);
            ns.attach(livestream);
            ns.publish( livestream.name, "live" );
    application.onUnpublish = function( client, livestream ) {
        trace(livestream.name + " is unpublishing");
    // RECORDING
    application.onAppStart = function() {
        this.nsr = Stream.get("livestreamSS");  " <-- this is the server-side instance name
        this.nsr.play("livestream", -1, -1);          " <-- this is the published instance name
        this.nsr.onStatus = function(info){
            if(info.code == "NetStream.Play.PublishNotify"){
                application.startRecording();
            if(info.code == "NetStream.Play.UnPublishNotify"){
                application.stopRecording();
            for(var i in info){
                trace("i: " + i);
                trace("info[i]: " + info[i]);
    application.startRecording = function() {
        var infoObject = Stream.getOnMetaData("livestream");
        trace("Metadata for myVideo.flv:");
        for( i in infoObject ){
            if infoObject[i] == "record" {
                trace("start recording");
                this.nsr.record();
    application.stopRecording = function() {
        trace("stop recording");
        this.nsr.record(false);

    that is my main.asc...if you mean in my client, then yes, here is the publish code for the client
    private function publishCamera():void {
                cam = Camera.getCamera();
                cw = cam.width;
                ch = cam.height;
                switch (cw) {
                    case 160:
                    cam.setMode(320, 180, 10);
                    break;
                    case 320:
                    cam.setMode(640, 360, 5);
                    break;
                    default:
                    cam.setMode(160, 90, 15);
                    break;
                cam.setQuality(0, 0);
                mic = Microphone.getMicrophone();
                ns = new NetStream(nc);
                ns.client = this;
                ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
                ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
                ns.attachCamera(cam);
                ns.attachAudio(mic);
                ns.publish("livestream", "live");
    is that what you are referring to?  Thank you for the reply.

  • AS 2.0 Loader component question

    I have a site that has a gallery with 40 images, takes a long
    time to load so I need to find the best way to correct. The files
    that load manually now are movieclips that play in 10 second frames
    in their own timeline with an alpha effect on each all the jpgs and
    other files are in the main fla which is huge because of this. I
    was going to use the loader component but I see you can only use
    for .jpgs and I can't put the effect on jpgs, other obvious way is
    using loadMovie but then I have to convert all mc's to separate
    swfs. Before I go that route is there another way to do this?
    rderf

    I have a site that has a gallery with 40 images, takes a long
    time to load so I need to find the best way to correct. The files
    that load manually now are movieclips that play in 10 second frames
    in their own timeline with an alpha effect on each all the jpgs and
    other files are in the main fla which is huge because of this. I
    was going to use the loader component but I see you can only use
    for .jpgs and I can't put the effect on jpgs, other obvious way is
    using loadMovie but then I have to convert all mc's to separate
    swfs. Before I go that route is there another way to do this?
    rderf

  • Load external jpgs.. to a loader component to transition

    I need to load external
    images to a loader component, in the main scene, than change
    automatically after 2 seconds in a fade transition,,, please help.

    JamesHammerstein wrote:
    > Dear All - Can anyone help?
    >
    > I have created a spry gallery page with a dropdown to a
    number of different
    > categories...
    >
    >
    http://aster.rhul.ac.uk/STAR/galleries/gallery_prototype.php
    >
    > I want to be able to add links on another page that will
    automatically load a
    > particular gallery from this page, i.e. select a
    particular category to be
    > displayed from a link on another page.
    Try asking your question in the Spry forum where you'll get a
    more focused group of viewers for your question :
    http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • ContentPath not working in a loop for a Loader component

    i'm trying to load pics into a loader in my movieclip, i'm
    looping through about 20 items, to be placed in a movieclips
    dynamically attached...
    this does not work...
    mcContainer['node'+nCount].pic.contentPath=myimagepath;
    this does work...
    mcContainer['node'+nCount].pic.loadMovie(myimagepath);
    but it does not come in scaled / sized like I want...
    any reason why the images do not appear in the loader
    component in the movieclip? it's like the screen is not being
    refreshed or the loader never finishes, when I trace the
    contentPath after the fact it says the right path, but no image is
    there.

    contentPah is used to specify linkageID's only, and will not
    work for a URL. you correctly used the load method to get the
    picture in there, now you just have to scale it. if you set the
    loader's scaleContent to true, your image will scale to the
    loader's size, and vice versa if you set the property to false. if
    you need to do some custom scaling based on the size of the image,
    you can grab those properties like so:
    myLoader.content._width
    not that the above property, and any scaling commands, will
    only work after the loader finishes loading, so you'll need to put
    that stuff in an event handler for the loader.complete event...
    hope that helps

  • Issues using multiple load-config files with ant

    Hello,
    Not sure if this is the correct place...
    I am creating an ant build script to compile our flex application. I am trying to use the default flex-config by doing <load-config filename="${flex.sdkPath}/frameworks/flex-config.xml"/> and project specific config file add the datavisualization module and any other libraries we might need in the future. I am trying to do this as I don't want to modify the flex-config.xml
    The issue I keep running into is I get a compiler error saying "unable to locate specified base class 'spark.comonents.application..". if I place the custome load-config file above the adobe default flex-config it gives errors stating it the "SeriesSlide" type
    <mxmlc file="${project.sourcePath}/FBApp.mxml"
             output="${project.output.binaryPath}/${project.output.fileName}.swf"
             locale="en_US"
             static-link-runtime-shared-libraries="false"
             static-rsls="false"
             use-network="true"
             accessible="false"
             debug="true">
             <load-config filename="${flex.sdkPath}/frameworks/flex-config.xml"/>
             <load-config filename="C:/Hudson/.hudson/jobs/FB 2.0 Flex/workspace/FBApp/FB-config.xml"/>
             <source-path path-element="${flex.sdkPath}/frameworks/libs"/>
             <source-path path-element="${project.sourcePath}"/>
             <library-path dir="${flex.path}/sdks/${flex.sdkVersion}/frameworks/locale/en_US"
                includes="*"/>
             <library-path dir="${project.libraryPath}"
                includes="*"/>
             <keep-as3-metadata name="Protected"/>
          </mxmlc>
    the following is my FB-config.xml
    <?xml version="1.0"?>
    <flex-config>
       <runtime-shared-library-path>
    <path-element>C:\Program Files\Adobe\Adobe Flash Builder 4 Plug-in\sdks\4.1.0\frameworks\libs/datavisualization.swc</path-element>
    <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/datavisualization_4.1.0.16076.swz</rsl-url>
    <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
    <rsl-url>datavisualization_4.1.0.16076.swz</rsl-url>
    <policy-file-url>.</policy-file-url>
       </runtime-shared-library-path>
    </flex-config>
    It seems to be that the first "load-config" ant runs into is the only one that gets used. When looking around the internet I have multiple cases of where people say they have successfully used multiple load-config files.
    This one in particular.
    http://flashdevelop.org/community/viewtopic.php?f=13&t=5629&view=previous
    If I had to guess on what was wrong I believe my FB-config.xml file is incorrect but I can't find an example of anyones custom configuration file.
    Any guidance would be apprecaited.

    I am embarrassed to say that your solution answered my question.
    I was about 10 min away from rewriting my Ant script to just use the mxmlc.exe directly instead of the mxmlc ant tag. I kept running into the -flex-config+=YourConfig.xml for the command line option but never saw the xml variant.
    http://blog.flexexamples.com/2008/12/21/using-a-custom-flex-configxml-file-in-flex-builder -3/
    http://livedocs.adobe.com/flex/3/html/help.html?content=configuring_environment_3.html
    Does Flex have any documenation that shows all the different tags that are available like the Ant documenation?
    http://ant.apache.org/manual/Tasks/delete.html
    Thanks at ton.

Maybe you are looking for

  • ITunes will not open and already deleted reinstalled

    What do I do next after tech support suggested deleting & reinstalling the software. It did work for a few weeks then it quit. I have Windows XP. No SP2 installed because internet explorer doesn't work then. I have everything updated and tight on vir

  • Zen images disappearing

    Hello Everyone. We have been using Zen4.01SR5 for some time and are very happy with it. Recently I have been having problems with an image I am making disappearing when it is done being sent to the server. While the image is transferring, you see it

  • Leopard Hard crash and airport disconnect

    Hello alll I have done a erase and install with leopard on my macbook pro 2 twice now thinking it was a installation issue. My internet connects through a netgear router that worked 100% perfect when on Tiger, but now after random intervals i lose co

  • How to get my software on my 8900 curve and view home security cameras ?

    hello, i was hoping to find a solution on how to access my home security cameras on my 8900 curve ; was told it was possible but the attet tech didnt know how exactly ! is there a way to download my software and view my home cameras on my curve ?   

  • Oracle9i reports take longer time while running in web

    Hi, I have developed few reports in Oracle9i and I am trying to run the reports in web. Running a report through report builder takes lesser time compare to running the same report in web using web.show_document. This also depends on the file size. I