How to load 2 xml galleries loop only function.

How to load 2 xml galleries loop only function.

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();

preloader var = 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 ("store /" + thumbURL, myThumb_mc);  I want to load this 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)

{

The 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 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)

{

The 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 into a single xml files if you want to create a gallery.

If you want two different galleries that display at different times, tear down the wall of movieclip after that finished with gallery1 and run myGalleryXML.load("gallery2.xml");

Tags: Adobe Animate

Similar Questions

  • How to load an XML file and save it as a file fm

    Hi Experts,

    I have a bunch of XML files in a folder. I want to make is that I want iteratively, load the xml using a StructuredApplication and save it as a file FM. I was able to sucessfully load the XML file, but I'm having trouble to save a file of FM.

    Here is the code I wrote so far:

    If (sourceFolder! = null) {/ / If a valid file is selected}

    files = new Array();

    fileType = "*.xml";

    files = sourceFolder.getFiles (fileType);  Download all the files that match the pattern

    If (files.length > 0) {/ / get the destination to save the files}

    destFolder = Folder.selectDialog ('Select the folder where you want to save the converted XML files.', ' ~');

    for (var i = 0; i < files.length; i ++) {}

    Set the options to open the XML file.

    var openParams = GetOpenDefaultParams();

    var j = GetPropIndex (openParams, Constants.FS_OpenAsType);

    . propVal.ival openParams [j] = Constants.FV_TYPE_XML;

    j = GetPropIndex (openParams, Constants.FS_StructuredOpenApplication);

    . propVal.sval openParams [j] = "XML Snpsbook";

    j = GetPropIndex (openParams, Constants.FS_FileIsOldVersion);

    . propVal.ival openParams [j] = Constants.FV_DoOK;

    j = GetPropIndex (openParams, Constants.FS_FontNotFoundInDoc);

    . propVal.ival openParams [j] = Constants.FV_DoOK;

    j = GetPropIndex (openParams, Constants.FS_FileIsInUse);

    . propVal.ival openParams [j] = Constants.FV_DoCancel;

    j = GetPropIndex (openParams, Constants.FS_AlertUserAboutFailure);

    . propVal.ival openParams [j] = Constants.FV_DoCancel;

    var returnParams = new PropVals();

    I'M NOT ABLE TO GET THIS LINE TO RUN. sourceDoc RETURNS a REFERENCE of OBJECT INVALID.

    sourceDoc = Open (files [i] .name, openParams, returnParams);  Returns the document object

    Alert (SourceDoc.Name);

    Function to save. XML file. Extension of the FM

    var saveParams = GetSaveDefaultParams();

    var returnParamsp = new PropVals();

    Change the extension .xml FM

    var k = GetPropIndex (saveParams, Constants.FS_FileType);

    saveParams [k].propVal.ival = Constants.FV_SaveFmtBinary;

    saveAsName = sourceDoc.name.replace (/ \.) [ ^\.\\]+$/,".fm");

    var saveInFile = record (saveAsName, saveParams, returnParamsp);  Save as file FM

    saveInFile = new file (destFolder + ' / ' + targetFile);

    saveInFile.close ();  Close file

    }

    Alert ("the files are saved in the FM to ' + destFolder");

    } else {}

    Alert ('no matching files found!');

    }

    }

    Hi reda,.

    You are very close, but there are a few critical flaws in your code that will prevent the proper functioning:

    -Your paths in string literals must have sequences to escape the backslashes. A backslash character is treated as an adverb in an escape sequence, so those need to be escaped themselves. For example: "C:\\Users\\rajrev\\file.xml."

    -Your OpenXMLFile () function does not return anything, then the original DocumentSource variable never gets made.

    -It is better to use the ObjectValid() method to test a valid object of FM.

    -I am not an expert of regular expression, but I can't understand the logic in your replace() method, to create the new path of the file. In addition, the property "name" of the fileObject is invalid, it must be 'name '. I think that there are simpler ways to do.

    -Your call to the Save() method is incorrect. It should be fileObject.Save (saveAsName, saveParams, returnParamsp).

    All that being said, here is a quick review, without comment, that works for me:

    var sourceDoc = openXmlFile("C:\\Users\\rajrev\\file.xml","XML snpsbook");
    if (sourceDoc.ObjectValid()) {
    
        var path = sourceDoc.Name;
        var filename = path.substring((path.lastIndexOf("\\") + 1), path.length);
        filename = filename.replace(".xml", ".fm");
    
        path = path.substring(0, (path.lastIndexOf("\\") + 1));
        path = path + "transformed_files\\" + filename;
    
        //path testing
        //alert(path);
    
        saveToFm(sourceDoc, path);
        sourceDoc.Close(0);
    }
    
    // Function to open and XML file
    function openXmlFile(filePath, structApp) {
        var openParams = GetOpenDefaultParams();
        var i = GetPropIndex(openParams, Constants.FS_OpenAsType);
        openParams[i].propVal.ival = Constants.FV_TYPE_XML;
        i = GetPropIndex(openParams, Constants.FS_StructuredOpenApplication);
        openParams[i].propVal.sval = structApp;
        var  returnParams = new PropVals();
        var doc = Open(filePath, openParams, returnParams);
        return doc;
    }
    
    //Function to save the opened XML as an FM file
    function saveToFm(fileObject, savePath) {
        var saveParams = GetSaveDefaultParams();
        var i = GetPropIndex(saveParams, Constants.FS_FileType);
        saveParams[i].propVal.ival = Constants.FV_SaveFmtBinary;
        var saveAsName = savePath;
        var returnParamsp = new PropVals();
        fileObject.Save(saveAsName, saveParams, returnParamsp);
    }
    
  • How to load an XML file for salesforce using API BULK?

    Hello

    Please let me know how to download an XML file for salesforce using API bulk?

    Thank you

    AND

    Hello

    I think it's a matter of SalesForce.com more and think that you will have better luck in looking at SOAP API Developer Guide for salesforce. Sending of a server API SOAP request is very straight forward and there are several tutorials and well documented in this topic.

    See you soon,.

    Stefan

  • How can I say ios10 music playing ONLY what is loaded on the phone?

    How can I say ios10 music playing ONLY what is loaded on the phone? There was a way under ios9, but I can't find anything on ios10. When I shuffle a kind (like ROCK that has only 4 artists, I chose it), I want to shuffle only what is loaded on the phone, not what's on my mac (in the cloud)... I load only a few artists both because of space constraints. I have over 200GB of music on my mac...

    I don't want to see the playlists and artists who are not loaded on the phone either, but I can't find how to solve either!

    Launch the music application and go to the library > music downloaded. This shows that what is stored locally on the phone.

  • How to load xml with base64 big element using sqlldr

    Hello
    I'm trying to load xml data into Oracle 10 g 2. I want to use tool standard sqlldr if possible.
    (1) I recorded my schema successfully:
    -Put the 6kbytes schema in a table
    - and
    DECLARE
    schema_txt CLOB.
    BEGIN
    SELECT the text IN schema_txt patterns;
    DBMS_XMLSCHEMA.registerschema ("uddkort.xsd", schema_txt);
    END;
    -Success: I can create table like:
    CREATE TABLE XMLTYPE XmlTest
    XMLSCHEMA 'uddkort.xsd '.
    ELEMENT 'profile '.
    ;
    -USER_XML_TABLES shows:
    XMLSCHEMA, SCHEMA_OWNER, NOM_ELEMENT, TABLE_NAME, STORAGE_TYPE
    "XMLTEST", "uddkort.xsd", "THISE", "profile", "OBJECT-RELATIONAL".

    (2) how can I load XML data into that?
    -An element of the schema is < xs: element name = "billede" type = "xs: base64Binary" minOccurs = "0" / >
    -This data field may be 10kbytes or more

    I tried many control files - search the net but no luck so far.
    Any suggestions?
    / Christmas, DK

    I regret - it seems, Miss me some basic understanding here (XBD is new to me...):

    Reread this part of the documentation on the XML to mappings of SQL types:
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14259/xdb05sto.htm#sthref831

    When you save the relational storage schema object, Oracle creates SQL object types to support the underlying structure.
    In particular (see table 5-6 in the link), XS: base64Binary is mapped to a compatible SQL binary data type: RAW (default), or BLOB (if we use the annotation).

    In my example, the generated object type is:

    SQL> desc "image888_T"
     Nom                                       NULL ?   Type
     ----------------------------------------- -------- ----------------------------
     SYS_XDBPD$                                         XDB.XDB$RAW_LIST_T
     name                                               VARCHAR2(4000 CHAR)
     content                                            BLOB
    

    I don't understand how this can be (is) done automatically?

    When you load an XML instance in the table, the contents of the string encoded in base64 is automatically converted into format binary original and stored as a BLOB (that's works the mapping).
    Then, when you run:

    select extractvalue(t.object_value, '/image/content') from images_table t;
    

    It follows a BLOB column containing the original image, not the string base64, so you won't need a converter.

  • How do you load external XML into a dataProvider?

    I looked through the docs and found a couple of entries discussing how to load XML external. Unfortunately, this is where the example stops and there is no example to do something useful with the data.

    So far, I managed to get my XML file loaded into actionscript/flex:
    function getExternalXML (): void {}
    request = new URLRequest ('source.xml');
    loader = new URLLoader();
    Loader.Load (request);
    loader.addEventListener ("complete", loadXML);
    }
    function loadXML(e:Event):void {}
    combo.dataProvider = loader.data;
    }

    Obviously, the foregoing does not at all. I don't know how to convert the loader.data in a format which includes the ComboBox.dataProvider. I can't believe I have to write a function to parse the XML file. There must surely be a way to simply convert the XML in a table, or something?

    Looks like your xml file? If your xml file looks like this:




    ...

    Then try this:

    function loadXML(e:Event):void {}
    combo.labelField = "@bar";
    combo.dataProvider = (new XML (loader.data)) .children ();
    }

  • 'ERROR 01' as I have only 66 MB of free space on my MacBook Air: (how to load the external Creative cloud on a hard drive software?

    I bought the full package, but I couldn't get it to load on my laptop.

    So my question is:

    How to load the external Creative cloud on a hard drive software?

    Or do you spend, how the "Installer Creative Cloud' to load it on an external hard drive?

    Thanking you in anticipation.

    : )

    you have the cc office application installed on your computer?

    If not, install the - apps Download Adobe Creative Cloud | CC free trial Adobe

  • Loading an xml to an XML file

    I'm trying to load a xml from an XML file, but I'm having problems. My first xml file is very simple - it contains only an attribute with the name of another file xml in it (eventually I'll have several here xml files and loop through them... that is why I want to load an XML to an xml file).

    Currently, with the code below, I can get the main xml file to load ("main.xml"), but I can't get the secondary xml files to load from the main.xml.

    I want to get childNode values in the secondary xml file, then use them in my .swf in the areas of text and whatnot.

    Any guidance? I think I'm wrong on the line where I say "i.newxml.load (i.attributes.location);"

    -How can I get it work?

    not so count and _root.count are the same:

    Count is variable digital. address and phone properties impossible to attribute to it.

    Try:

    Addressâ = [];
    phoneA = [];
    parseXML() {} function
    addressA.push(this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue);
    phoneA.push(this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue);
    }

  • My code servlet JasperViewer report mode more download it in pdf in chrome. How to modify this code it gives only the view in JasperViewr?

    Mr President.

    My servlet code does two things

    1 see the report in JasperViewer

    2. it download it in pdf in chrome.

    How to modify this code it gives only the view in JasperViewr?

    My code is

    package esh.view;
    
    
    import esh.model.AppModuleImpl;
    
    
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.PrintWriter;
    
    
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    
    
    import java.util.HashMap;
    import java.util.Locale;
    import java.util.Map;
    
    
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.annotation.WebServlet;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    
    
    import net.sf.jasperreports.engine.JasperCompileManager;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.design.JasperDesign;
    import net.sf.jasperreports.engine.xml.JRXmlLoader;
    
    
    import net.sf.jasperreports.view.JasperViewer;
    
    
    import oracle.jbo.client.Configuration;
    
    
    @WebServlet(name = "MultiReportServletJasper", urlPatterns = { "/multireportservletjasper" })
    public class MultiReportServletJasper extends HttpServlet {
        private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
    
    
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
        }
    
    
        protected Connection getConnection() {
                
                PreparedStatement st = null;
                String amDef = "esh.model.AppModule";
                String config = "AppModuleLocal";
                AppModuleImpl am = (AppModuleImpl ) Configuration.createRootApplicationModule(amDef, config);
                
                st = am.getDBTransaction().createPreparedStatement("select 1 from dual", 0);
                Connection conn = null;    
            
                try {
                    conn = st.getConnection();
                    return conn;
                } catch (SQLException e) {
                }   
            
                return null;
            }
    
    
        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            String var0 = "";  
            String reportName = "";  
            try {  
                 reportName = request.getParameter("reportName");  
                } catch (Exception e) {  
                        e.printStackTrace();  
                       }  
                 response.setContentType(CONTENT_TYPE);  
                 Map parameters = new HashMap();  
                 parameters.put("format", "pdf");  
                 parameters.put("WEBDIR", getServletContext().getRealPath("/"));  
                 parameters.put("REPORT_LOCALE", new Locale("ar"));                             
                                                                                            
                 Connection conn = null;  
                 InputStream is = null;  
            try  
                {  
                 conn = getConnection();  
                 is = getServletContext().getResourceAsStream("/WEB-INF/reports/"+reportName+".jrxml");  
                              
                             
                 response.setContentType("application/pdf");  
                 response.addHeader("Content-Disposition", "attachment; filename="+reportName+".pdf");                                        
                 JasperDesign jasperDesign = JRXmlLoader.load(is);  
                 JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);  
                 JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, conn);                      
                 JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());  
                 JasperViewer.viewReport(jasperPrint,false);                                                                                
                  conn.close();  
                }  
                   catch (Exception e) {  
                         e.printStackTrace();  
                    } finally {  
                        closeConnection(conn);  
                    try {  
                           if(is !=null){  
                              is.close();  
                         }                                                             
                } catch (Exception localException1)  
                    {  
                      }  
                }                      
        }
        
        protected static void closeConnection(Connection conn) {
                try {
                    if(conn !=null){
                       conn.close();
                    }           
                } catch (Exception ex) {
                    //  System.out.println("Developer Msg : Exception in printReport1Servlet.closeConnection()");
                }
            }
        
        
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    Concerning

    Change: response.addHeader ("Content-Disposition", "attachment; filename = "reportName +".pdf");"

    To: response.addHeader ("Content-Disposition", "inline; filename = "reportName +".pdf");"

    Browser first tries to show the PDF, and if no pdf reader is available, you will get the download dialog box.

    (and remove JasperViewer.viewReport (jasperPrint, false);  )

    Dario

  • load the XML file field Companion without cross-domain policy file

    Hello.

    Assuming that there are two areas companions on the same server: /public_html/domain1.com and /public_html/domain2.com

    I'm trying to load the XML from domain2.com in domain1.com without using a cross-domain policy file (since it does not work with xml files in my case).

    So the idea is to use a php file to load XML and read it back to Flash.

    I found an interesting scripts that seems to do the job, but unfortunately I can't make it work. In my opinion, there is somewhere with AS3 part problem. Please take a look.

    Here's the AS3/PHP scripts:

    AS3 (.swf in www.domain1.com):

    location of the xml file you want to load, full http address

    var xmlLoc:String = " " http://www.Domain2.com/MyFile.XML ";

    location of the php xml grabber, regarding the .swf

    var phpLoc:String = "loadXML.php";

    var xml;

    var loader: URLLoader = new URLLoader();

    var request: URLRequest = new URLRequest (phpLoc + "? location =" + escape (xmlLoc));

    loader.addEventListener (Event.COMPLETE, onXMLLoaded);

    loader.addEventListener (IOErrorEvent.IO_ERROR, onIOErrorHandler);

    Loader.Load (request);

    function onIOErrorHandler(e:IOErrorEvent):void {}

    trace ("there was an error with the xml file" + e);

    }

    function onXMLLoaded(e:Event):void {}

    trace ("RSS feed has been loaded");

    XML = new XML (loader.data);

    / / string value, because it is passed from php as object

    XML = XML (xml.toString ());

    xml_txt.text = xml;

    }

    PHP (loadXML.php to www.domain1.com):

    <? PHP

    Header ("Content-type: text/xml");

    $location = "";

    {if (isset($_GET["location"]))}

    $location = $_GET ['location'];

    $location = urldecode ($location);

    }

    $xml_string = getData ($location);

    return the url encoded Flash vars

    echo $xml_string;

    Loops of a URL and returns

    function getData ($query) {}

    / / create resource curl

    $ch = function curl_init();

    / / cURL url

    curl_setopt ($ch, CURLOPT_URL, $query);

    Set some required params for the use of CURL

    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);

    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);

    Execute the loop works and decode the returned JSON data

    $result = curl_exec;

    return $result;

    / / Close the curl resource to free up system resources

    curl_close ($ch);

    }

    ? >

    I think you might be right about / permissions on the server for php settings. Unfortunately I'm not allowed to adjust.

    So I wrote my own script - this time I used the path instead of the http address of the XML file.  It works fine in my case.

    Here it is:

    XML file on domain2.com:

    SWF on domain1.com:

    var imagesXML:XML;

    var variables: URLVariables = new URLVariables();

    var varURL:URLRequest = new URLRequest ("MyPHPfile.php");

    varURL.method = URLRequestMethod.POST;

    variable = varURL.data;

    var MyLoader:URLLoader = new URLLoader;

    MyLoader.dataFormat = pouvez;

    MyLoader.addEventListener (Event.COMPLETE, XMLDone);

    MyLoader.load (varURL);

    function XMLDone(event:Event):void {}

    var imported_XML:Object = event.target.data.imported_XML;

    imagesXML = new XML (imported_XML);

    MyTextfield_1.text = imagesXML;

    MyTextfield_2.text = imagesXML.image [0] .attribute ("thumbPath");  reference sample to assign "thumbPath' of the first item

    }

    php on domain1.comfile:

    <>

    $xml_file = simplexml_load_file('.. /.. / /galleries/gallery_1/MyXMLfile.xmldomain2.com');  Directory of XML file on the same server

    $imported_XML = $xml_file-> asXML();

    Print "imported_XML =". $imported_XML;

    ?>

    Concerning

    PS: for those who have read the foregoing: the first and the second script works but you need to test which one is best for your situation. The first script will work also between two domains located on different servers. No. cross necessary domain policy file.

  • Miniature load using XML sequence

    Hello

    I'm still learning how to use XML to load photos and I'm confused about something. Need some advice...

    Andrei has provided a link to a tutorial and I'm having good luck with it. I have created the XML file and am load as shown below.

    Now I would like to add the duplicates of the thumbs in order to appear as a reflection. Created another charger and charge of each file again. (I tried "ldr2.content = ldr1.content" and many other versions of this statement to try and together the second content loader to do the same as the first, but could not do anything at work. So I resorted to loading new thumbs).

    Did. As well, all right. Even used the "rotationX = 180" wrong guys showed me to reverse the pictures. The value 'y' in the ldr2
    "ldr1.y - event.target.content.height 'I learned from yous as well." Got this work and have now two rows of photo thumbnails. Just looking forward to the application of a mask (something other guy showed me) to reflect really well melted.

    HOWEVER, at runtime, it load the pictures in the two rows of Chargers in a different sequence. They are displayed OK, and it would work except for the fact that the second row of pictures, those 180 degrees along their X - axis rotation - "Reflections" - are not in the same order as the first line.

    I'm probably missing a few very basic knowledge about how to do this, but I'm out of ideas. Can anyone suggest how to control the order in which the XML file is loaded while the two rows of photos (thumbs, actually) to the height? Just things load faster and seem random, even if the same XML file is used?

    Thank you!

    (Sorry, don't know how to reach code this question.)
    ====================================================

    AS3=======================
    var xmlRequest:URLRequest = new URLRequest ("DiagPMpics.xml");
    var xmlLoader:URLLoader = new URLLoader (xmlRequest);
    var imgData:XML;
    var numKids:int = 0;
    var imgNum:int = 0;
    var hite:int;
    var wit: int;
    var startX:int = 100;
    var startY: int = 100;
    var newX:int = 100;
    var newY:int = 100;
    var rawImage:String;
    var bigLoader:Loader = new Loader();
    var Xaccum:int;
    var x 2: int = agree;
    var y2:int = y + 200;


    xmlLoader.addEventListener (Event.COMPLETE, xmlLoadedF, false, 0, true);

    xmlLoader.load (xmlRequest);

    function xmlLoadedF(event:Event):void {}
    imgData = new XML (event.target.data);
    numKids = imgData. * () .length;

    while(imgNum<4) //numKids)
    {
    rawImage = imgData.pic [imgNum] .thumb;
    var ldr:Loader = new Loader();
    var refl:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener (Event.COMPLETE, kmp);
    refl.contentLoaderInfo.addEventListener (Event.COMPLETE, kmp2);
    LDR. Load (new URLRequest (rawImage));
    refl. Load (new URLRequest (rawImage));

    imgNum ++;
    }
    }

    function kmp (event): void {}

    Event.Target.Content.x = agree;
    Event.Target.Content.y = y - event.target.content.height;
    addChild (event.target.content);
    Agree += event.target.content.width + 2;

    }

    function kmp2 (event): void {}
    var sp2:Loader = new Loader();
    Event.Target.Content.x = x 2;
    Event.Target.Content.y = y + Event.Target.Content.Height + 2;
    event.target.content.rotationX = 180;
    addChild (event.target.content);
    x 2 += event.target.content.width + 2;
    }

    ==========================

    XML=======================
    <!-note: XML this file was created for a different project and the "Polish", "imgH,' 'BIGimgW', and 'BIGimgH' fields are not used here. ->

    <? XML version = "1.0" encoding = "utf-8"? >
    < photos >
    < pic >
    thumbs/1t.jpg < go > < / inch >
    images/1.jpg < big > < / big >
    < > 57 imgW < / imgW >
    < > 31 imgH < / imgH >
    < BIGimgW > 922 < / BIGimgW >
    < BIGimgH > 500 < / BIGimgH >
    < / pic >
    ...
    ==========================

    Thank you very much.

    Yes, if you do not control the loading process and just use a loop to load things in, then files can arrive in a different sequenxce than what the code says.  To control the load order you want to load images one at a time, using the completion of loading one to trigger calling charged to the other.  So in your xmlLoaded function you would simply call a function that will load one of the images rather than having the while loop.  You will assign a listener for the completion of loading and when triggered, the function he calls does that image in place, set the value of imgNum and if imgNum is not yet equal to numKids, again calls the load function.

  • How to: display specific Xml entry in AS3

    I have a simple line of code that I'm trying to change to display a specific entry in an xml file:

    AS3 code:

    The first step is to enable the XML object

    AmbientSettingsXML = new XML();

    /*

    With the now active XML object, it is now for you to load an XML foramtted document.

    Any DTD or XLS format will be ignored.

    */

    AmbientSettingsXML.onLoad = myLoad;

    AmbientSettingsXML.load ("settings.xml");

    Before moving off into the program, make sure that the XML document has loaded

    Extract information from the XML file

    function myLoad (ok) {}

    if (ok == true) {}

    trace ("ok");

    trace (AmbientSettingsXML);

    }

    }

    The exhibition traces:

    Ok

    <? XML version = "1.0"? >

    < Parameters >

    < appearance >

    < Event > Streaming Demo 1 < / event >

    < / appearance >

    < / Parameter >

    So the question is, how to display the entry "Event" only? (String)

    Any help is appreciated,

    Thank you!

    var loader: URLLoader = new URLLoader();
    loader.addEventListener (Event.COMPLETE, completeHandler);

    var request: URLRequest = new URLRequest ("yourxmlfile.xml");

    Loader.Load (request);

    function completeHandler(event:Event):void {}
    var loader: URLLoader = URLLoader (event.target);
    var XML = XML (loader.data);

    XML. Child ("Appearance") [0]. Child ("event_title") [0];
    }

  • How to start two events different loops depending on tab selection

    Hello

    I have a tab control with two tabs and various controls and indicators on the subject.

    In the background is a while loop that contains a structure of the event which reacts on the different button-"change value" - events.

    There is one "end"-button on the Panel that stops the loop. "."

    Now the question:

    How can I add a while loop second with a second structure of the event and depending on the selection tab that the corresponding loop should run.

    Because I would like the events of two separate tabs.

    I think that it s possible to wire the stop at the value tab loop but how do to restart the loop?

    Thx for the help

    Iliale wrote:

    Why is the event in the attachment execution?

    If I have the wiring on the right side of the DI_1:ValueSignaling property, then it still runs and can only be stopped by the Task Manager...

    THX

    Because every time you write for the value property and event signage is queued up.  This occurs even if the value has not changed.  You probably want to add a registry node or shift of feedback to ensure the follow-up of the State of the LED.  XOR the current value with the previous.  If the XOR is true, it means that the value has changed.  Only write in the property node when the value changes.

  • [Database Toolbox] possibility to Load From xml file in Labview and then in the database

    Before you write in my database, I want to save it and reload if the user wants to cancel the new charge that can last several minutes.

    If he cancels the load I get back my previous database data.

    I managed to save my database in XML through the "DB tools SaveRecordSet To File" VI. This VI records directly contains my database table in the xml file. And finally, I only if the other VI to load file will do the same thing, means load the file and save it in my database but it gives just a recordset in labview.

    Question: is it possible just to load the xml file into the database directly through Labview?

    Why, finally, these screws do not have the same behavior?

    I don't know, but I just thought I would chime, that if you fail to do with LabvIEW, you might want to look by making your writing in a 'Transaction' database, if your DBM takes in charge (most except MS Access)

  • How to make a page QML figurentsur only the first launch

    How to make a qml page appears only on the first time the application is started?

    I need to create a tabbed pane and the number of tabs depends on n the input from the user to whom it provides the first launch. How to make this happen?

    You can use QSettings to store parameters.

    Create two main qmls (mainHasInput.qml and mainHasNoInput.qml). When the user runs your application for the first time, load mainHasNoInput.qml. If the user enters the input values correct, who writes in your QSettings. The next time that the launch of the app, you check if a setting has been stored in your QSettings. If not, show your mainHasNoInput.qml, if yes, see the mainHasInput.qml (which is your main 'normal' screen)

    for an example how to use QSettings, see https://developer.blackberry.com/native/sampleapps/ -> 'persistent objects '.

Maybe you are looking for

  • Min/max number of conclusion in a selected range of dates - Please HELP!

    Hi all I'm not very advanced at complex formulas however using this forum in recent weeks thanks to everyone here, I was able to create the automated collection of amazing data workbook. I searched for the last missing piece, and according to two exp

  • XML file does not appear if it is a local file and XSLT file is on a server.

    If I have a local XML file with a XSLT file local XML file is displayed as expected. If the two files are on my server again that the XML file is displayed correctly. However if the XML file is local and the XSLT file is on the server (and the XML fi

  • MSN messenger does not work

    I use a dell inspiron laptop which has windows 7 and internet explorer 9 and I can't install windows live... I get this error... someone please help... Problem event name: BEX Application name: msnmsgr.exe Application version: 14.0.8117.416 Applicati

  • Why messenger in English

    the opening of messenger in English I don't just understand the french Thank you

  • Files open with laptop instead of Adobe

    Whenever I have download a file that is supposed to open with Adobe, Notebook, opens instead, and it is encrypted so I can't read it.  Someone out there who like helps to STOP!  Adobe reader 9.4 software whatever, whatever, whatever.  I HATE this fre