Loading XML with .AS file

I am new to writing .as files. I have no problem loading in XML format and analysis it when I do it on the first image of one. IN FLORIDA.

Im trying to do the same using statements classes, packages.

Ive tried unsuccessfully

Can someone tell me how close or how far I get this and give help.

Thank you.

package {}
import flash.display.Sprite;
import flash.events. *;
flash.net import. *;
import flash.utils. *;
import flash.display.Loader;

public class productBrochureClass extends Sprite {}
private var: padding: uint = 10;
private var listHolder:Sprite;
private var myXML:XML;
public var xmlLoader:URLLoader;
var xmlLoader:URLLoader = new URLLoader();

public void productBrochureClass() {}
var xmlloader:URLLoader = new URLLoader();
listHolder = new Sprite();

xmlLoader.addEventListener (Event.COMPLETE, handleComplete);
xmlLoader.load (new URLRequest("xml/productBrochuresDatasheets.xml"));

addChild (listHolder);
trace ("listholder")
trace ("xml loaded")
}

}
public void handleComplete(event:Event): void {}
myXML = new XML (event.target.data);
createListFromXML (myXML);
trace ('handshake Complete')
}



private void createListFromXML(myXML:XML):void {}
for (var i: uint = 0; i < xmlLoader.item.length (); i ++) {}
var listItem:ListItem = new ListItem();
listItem.setText ("list item" + i + ":" + xml...) Item[i].@name);
listItem.setID (i);
listItem.y = i * listItem.height + i * padding material.
listHolder.addChild (listItem);
}

}
}

The error means that you lost a brace and close the class leaving something outside the class, also remember that AS3 is case sensitive, don't forget not the scope of vars, if you define a var inside a function, it will be visible inside that work only. I saw not a type of item in list in AS3, it's probably a var inherited type.

Here's a modified version of your class, you just need to change the list item for something else.

package{

     import flash.display.Sprite;
     import flash.events.*;
     import flash.net.*;
     import flash.utils.*;
     import flash.display.Loader;

     public class productBrochureClass extends Sprite{
          private var padding:uint = 10;
          private var listHolder:Sprite;
          private var myXML:XML;
          private var xmlloader:URLLoader
          //public var xmlLoader:URLLoader;
          //var xmlLoader:URLLoader = new URLLoader();

          public function productBrochureClass(){
               xmlloader= new URLLoader();
               listHolder = new Sprite();

               xmlloader.addEventListener(Event.COMPLETE, handleComplete);
               xmlloader.load(new URLRequest("xml/productBrochuresDatasheets.xml"));

               addChild(listHolder);
               trace("listholder")
               trace("loaded xml")
          }

          public function handleComplete(event:Event): void {
               myXML = new XML(event.target.data);
               createListFromXML(myXML);
               trace("handle Complete")
          }

          private function createListFromXML(myXML:XML):void{
               for(var i:uint=0;i 
         

Tags: Adobe Animate

Similar Questions

  • loading XML with flashvars?

    Hey people

    I have a flash photo gallery that uses XML to indicate the flash the pictures to load and display. Works really well, but I want to take a step further and be able to specify the xml file that is loaded from HTML. I guess that using Flashvars, unless there is another method that works best?

    in my actionscript I have this line

    xmlData.load ("images.xml");

    and who says it load in the xml file that has the info for all the photos

    is there a way to replace it with flash vars and actually make it work?

    What we are trying to do is a gallery of different pictures on each page, and instead of making a separate flash animation & xml for each of them, we just have 1 'gloabal"FlashVideo, and then just a different xml file for each different gallery.

    Anyone got any ideas how I can make it work?

    I know that this is probably something easy that I keep missing :(

    You just replace the name of the file: xmlData.load ("images.xml"); with
    your name of variable, set by FlashVars. I suggest using SWFObject to set the
    var Flash - it's really easy.

    Example:
    Then in Flash:
    xmlData.load (xmlFile);

    http://blog.deconcept.com/SWFObject/

    --
    Dave-
    Developer leader
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.Adobe.com/communities/experts/

  • 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.

  • Problem loading xml with the method file

    I use this method to insert in the xmltype table

    INSERT INTO xml_table
    VALUES (XMLType (bfilename ('XMLDIR', 'Test_xml.xml'),
    nls_charset_id ('AL32UTF8')));

    XML gives error
    <? XML version = "1.0"? >
    <!-<! DOCTYPE metadata SYSTEM "http://www.esri.com/metadata/esriprof80.dtd" >->
    < metadata XML: lang = "fr" > < Esri > < MetaID > {299847D5-3DDC-4375-9469-607DC669DD6E} < / MetaID > < CreaDate > 20091029 < / CreaDate > < CreaTime > 12035600 < / CreaTime > < SyncOnce > FALSE < / SyncOnce > < SyncDate > 20091029 < / SyncDate > < SyncTime > 12054400 < / SyncTime > < ModDate > 20091029 < / ModDate > < $modtime > 12054400 < / $modtime > < / Esri > < idinfo > < native Sync = "TRUE" > Microsoft Windows XP Version 5.1 (build 2600) Service Pack 3; ESRI ArcCatalog 9.3.0.1770 < / native > < descript > < langdata Sync = "TRUE" > en < / langdata > < summary > REQUIRED: a brief narrative summary of the data series. < / Summary > < point > REQUIRED: a summary of the intentions with which all the data has been developed. < / purpose >

    but when I delete
    <!-<! DOCTYPE metadata SYSTEM "http://www.esri.com/metadata/esriprof80.dtd" >->

    It runs successfully and the value is inserted of xmltype
    Please suggest how can I insert original xml without error.

    First see if you can access the document using HTTPURITYPE() or UTL_HTTP. Once you've taken the necessary step to access the scheam XML using these packages XDB should work. Note that becomes more complex 11.x

  • Loading XML Labview schema files in python(or matlab)

    Hello

    Does anyone have experience loading labview XSD in python or matlab or similar?  Or is there a better format to the output into that could have an easier interface.  I guess I want to be able to use the labview interface I have as much as possible, but to any other treatment elsewhere.  Vaguely hoped that there could be a simple conversion or schema imput I can use - without having to maintain several different sets of input\output code on different systems - ideas?

    JP

    Thank you

    So I guess if you want something doing...

    I have implemented something that helps with analysis of the XML in python.  I must say that I have not tested much, but it seems to do the simple things I need ok at the moment. I have the joint where it might be useful for someone else.

    Basically, the two files that you need are LabviewXMLDataLoader.py and ContextDict.py - the first is the module that parses the XML, the second is a module that I also stole and maimed so that its easier to have nested 'dicitionaries"which I think are the closest in python to clusters in LV

    PulsedMeasurement_v2.py is an example of how I load a lv object variables into a python object.

    Anyway, as I said it is not perfect, but it's a starting point.

  • JCS: how to load users with csv file into identity Console

    In my Service of Cloud Java: when I go to Console identity I have a "Dependent users" function under "manage users."

    How this CSV file should look like?

    How can I add roles to users?

    I loaded a file yesterday and I still get the message "Maximum number of simultaneous downloads by identity area exceeded. No more downloads will be accepted at this time. Select the UTF-8 CSV file format you want to download. Maximum file size is 256 KB. »

    When will this file be process? Can I cancel this process? How to be notified on a result?

    Kind regards

    Robert

    See http://docs.oracle.com/cloud/131/trial_paid_subscriptions/CSGSG/cloud-manage-user-accounts.htm#BCFDAIJA , adding a lot of user accounts

    file should have a header:

    First name, last name, Email, user login

  • How to remove the xml with indesign file attributes.

    Dear friends,

    I need to remove attributes xml ('ul' element), I try to underside of coding and joint screenshot also, but I made a mistake. I'm not that I lack the coding below.

    Screen Shot 2016-02-22 at 12.57.49 PM.png

    My coding in the below.

    var elements = app.activeDocument.xmlElements[0].xmlAttributes.item["@new_class"] = "list-style-type:none";
        alert(elements.length);
        delete elements["@new_class"];
    

    Please suggest friends,

    Thank you in advance,

    Hello

    Try this...

    var doc = app.activeDocument;
    
    removeAttributes(doc,'ul','style','list-style-type:none');
    
    function removeAttributes(source,element,attributename,attributevalue){
        for (var i = 0; i < source.xmlElements.length; i++){
                try{
                    for(j=0; j		   
  • Problem loading xml using sql loader file

    I am trying to load data into the table test_xml (xmldata XMLType)

    I have an xml file and I want any file to load in a single column

    When I use the following control file and run from the command-line as follows
    sqlldr $1@$TWO_TASK direct control=$XXTOP/bin/LOAD_XML.ctl = true; :

    DOWNLOAD THE DATA
    INFILE *.
    TRUNCATE INTO TABLE test_xml
    XmlType (XMLDATA)
    FIELDS
    (
    tank fill ext_fname (100),
    XMLDATA LOBFILE (ext_fname) COMPLETED BY expressions of folklore
    )
    START DATA
    U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

    the file is loaded in the table perfectly.

    Unfortunately I can't hard-code the name of file as file name will be changed dynamically.

    so I removed the block

    START DATA
    U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

    control file and tried to run by giving the following command line path

    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml = true;

    But strangely it attempts to load each line of the xml file in the table instead of the whole file

    Please find the log of the program with the error

    ------------------------------------------------------------------
    Loading XML through SQL * Loader begins
    ------------------------------------------------------------------
    SQL * Loader-502: cannot open the data file ' <? XML version = "1.0"? > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< root >' XMLDATA field table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < Type > forms < / Type > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < Type > PLL < / Type > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML

    Please help me how can I load full xml in a single column using command line without Hardcoding in the control file

    Published by: 907010 on January 10, 2012 02:24

    But strangely it attempts to load each line of the xml file in the table instead of the whole file

    Nothing strange, that the data parameter specifies the file containing the data to load.
    If you use the name of the XML here, the control file will try to interpret each line of XML as being separate ways.

    The traditional approach this is to have the name of the file stored in another file, say filelist.txt and use, for example:

    echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;
    
  • custom preloader (loading xml files)

    Hello :)

    I want to create the preloader to load xml before application initialization files, I havn't could find no solution on any internet site :(?

    I tried to extend the DownloadProgressBar and then load the xml in the constructor, but systemManager starts initialization of my Application right after that, and before that the preloader is finished, how can I force him to wait until I'm done with loading XML?

    Thanks for any help :) I hope someone can help me :)

    My request and the rest of my containers needs these xml files to initialize.

    Thank you once again :)

    Kind regards
    HW2002

    For other issues with the same problem, which is a lot :)

    You can load your XML files inside createChildren() (), you must override it in your application class and once that the XML file is loaded, call you super.createChildren ();

    and it's all :)

  • Demarshalling xml with the automatically generated class JAXB2.0 file does not work in jdeveloper 11.1.1.9

    I'm trying to familiarize themselves with JAXB in jdeveloper. I am facing some problems. There are a few test cases for which he works, for others it is not.

    Case 1:

    XML file is created manually. Respective java class to xmlelements is created manually. There is no ObjectFactory.java or jaxb.properties. Demarshalling this XML file works fine.

    Case 2:

    XML file is not created manually. All the respective java classes including ObjectFactory.java and jaxb.properties are generated using the widget ' JAXB 2.0 content XML Schema model "jdeveloper. I deleted ObjectFactory.java, jaxb.properties, and package - info.java. Demarshalling xml with this class file works fine.


    Case 3:

    Even in case 2, but this time I do not delete or change whatever it is generated and used as it is. It does not work. Get the following error.

    Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
    javax.xml.bind.UnmarshalException
     - with linked exception:
    [Exception [EclipseLink-25008] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: A descriptor with default root element rss was not found in the project]
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.handleXMLMarshalException(JAXBUnmarshaller.java:816)
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:109)
      at com.example.jaxbintro.JAXBExampleClass.main(JAXBExampleClass.java:36)
    Caused by: Exception [EclipseLink-25008] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: A descriptor with default root element rss was not found in the project
      at org.eclipse.persistence.exceptions.XMLMarshalException.noDescriptorWithMatchingRootElement(XMLMarshalException.java:129)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshallerHandler.startElement(SAXUnmarshallerHandler.java:208)
      at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1598)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:455)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:401)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:239)
      at org.eclipse.persistence.internal.oxm.record.XMLReader.parse(XMLReader.java:157)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:688)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:271)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:258)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:218)
      at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:306)
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:106)
      ... 1 more
    

    The project is included in the annex to this issue. It is ready for use. More information in the commentary to the java code. The main class is JAXBExampleClass.java.

    What is the problem with case 3?

    OK, I've been messing around with codes generated a bit and found the solution. The problem is that the value of the XmlSchema namespace had error in package - info.java class. There is no specified XmlSchema namespace in the XML file. Thus, the given value in the package - info.java was wrong.

    @javax.xml.bind.annotation.XmlSchema (namespace = "http://www.example.org", value / / wrong, set it to an empty string or that of your xml file, if it has any)

    elementFormDefault =

    javax.xml.bind.annotation.XmlNsForm.QUALIFIED)

    package com.example.jaxbintro.xmlerror;

    After you set the namespace to the empty string, since my xml file do not have one, code ran very well.

    @javax.xml.bind.annotation.XmlSchema (namespace = "",)

    elementFormDefault =

    javax.xml.bind.annotation.XmlNsForm.QUALIFIED)

    package com.example.jaxbintro.xmlerror;

    The file package - info.java can also be removed and it will work. For more details on the package and XmlSchema annotated level, what information on the package class is for, be found in the following link.

    https://JAXB.Java.NET/NoNAV/jaxb20-FCS/docs/API/javax/xml/bind/annotation/XmlSchema.html

  • Is it possible: Loading SQL with generic rule file?

    Hello
    When you load a flat file into Essbase, can be defined in the header of the data load domain names. In the load data, dimension names given and at the end of the data. In the file rule under Options > properties of data source > header reference could be made to this line. It works very well.

    We want to load the data with SQL in the same way. A load rule with a variable substitution for the selection view and we can use it for every load of data. We specified the name of dimension in the table column header. The data column has been defined as 'data' - without the quotes.

    The result is so far, it does not load.
    The question is - did someone tried this before and can help me on this?

    Thanks in advance.

    Kind regards
    Philip Hulsebosch
    www.trexco.nl

    the data column can be repersented in several ways, as I do usually is to set for the Member, it belongs to. In my example where your variable substitution & currmth is "Jan" then "Jan" would be the name of the column. The next month when the var void changes to Feb, on Feb.

  • How to update day/change the value stored in a file XML with AS3

    I have the following xml file...

    <Customers>
         <Email address="[email protected]">
              <FName>joe</FName>
              <Surname>bloggs</Surname>
              <DayBirth>02</DayBirth>
              <MonthBirth>01</MonthBirth>
              <YearBirth>1981</YearBirth>
              <House>2</House>
              <Address1>Johns Street</Address1>
              <Address2>Trekville</Address2>     
              <City>Timbuktoo</City>
              <PostCode>CF67TH</PostCode>
              <Gender>Male</Gender>
         </Email>

         <Email address="[email protected]">
              <FName>fred</FName>
              <Surname>bloggs</Surname>
              <DayBirth>03</DayBirth>
              <MonthBirth>02</MonthBirth>
              <YearBirth>1982</YearBirth>
              <House>22</House>
              <Address1>Johns Street</Address1>
              <Address2>Fredville</Address2>
              <City>Cardiff</City>
              <PostCode>CF71TH</PostCode>
              <Gender>Male</Gender>
         </Email>
    </Customers>


    I loaded the XMLfile in my flash site and I am able to filter by the email address and display the corresponding data. Code below...

    var custXML:XMLList;

    var xmlCustLoader:URLLoader = new URLLoader();

    xmlCustLoader.load (new URLRequest ("Customers.xml"));

    xmlCustLoader.addEventListener (Event.COMPLETE, custXMLLoaded);

    function custXMLLoaded(e:Event):void {}

    xmlCustLoader.removeEventListener (Event.COMPLETE, custXMLLoaded);

    load xml in object custXML data

    custXML = new XMLList (e.target.data);

    run the analysis function

    ParseCustomer (custXML);

    }

    function ParseCustomer(customerInput:XMLList):void {}

    trace ("Output XML");

    trace("------------------------");

    var custAtts:XMLList = customerInput.Email. (@address is entEmail;)

    for each {(var custEmail:XML in custAtts)

    trace (custEmail);

    }

    set variables for the filtered result

    entFName = customerInput.Email. (@address is entEmail). FName;

    entSurname = customerInput.Email. (@address is entEmail). Family name;

    entDay = customerInput.Email. (@address is entEmail). DayBirth;

    entMonth = customerInput.Email. (@address is entEmail). MonthBirth;

    entYear = customerInput.Email. (@address is entEmail). YearBirth;

    entHouse = customerInput.Email. (@address is entEmail). House;

    entAdd1 = customerInput.Email. (@address is entEmail). Address1;

    entAdd2 = customerInput.Email. (@address is entEmail). Address2;

    entCity = customerInput.Email. (@address is entEmail). City;

    entPCode = customerInput.Email. (@address is entEmail). Postal code;

    entGender = customerInput.Email. (@address is entEmail). Gender;

    }

    Now, I want to edit a record in this file (for example, change the < FName > Fred to say Paul and save the changes to the Customers.xml.) How can I do this?

    It's because you're not assign the name of the film, time, etc. and I only showed how to solve the problem you asked originally.

    now, ask yourself a different (but related) question.  Here is the solution:

    seat of the var: int;

    var chosenSeat:String;

    b.addEventListener (MouseEvent.CLICK, seat1Click);

    function seat1Click(event:MouseEvent):void {}

    seat = 1;

    set the chosenSeat to the name of the XML tag Seat1 - this will be used to record

    chosenSeat = "Seat1;

    instead of hard-coding these channels, they should be attributed using comboboxes or something else.

    UpdateBooking (bookXML, chosenSeat, seat, "St Davids", "300: Empire builders", "Tuesday", "18:00");

    }

    function UpdateBooking(xml:XML,chosenSeat:String,seat:int,room_name:String,movie_title:String,day__name:String,showing_time:String):void {}

    XML. room. (@name is room_name). Film. (@title is movie_title). Day. (@name is day_name). Display. (@t ime is showing_time) [chosenSeat] = seat;

    }

  • Loading of local swf files with actionscript on air for iOS

    I apologize if this seems like it has already been asked, but I'm not sure that having understood the answer, not on the Adobe site, or elsehwere.

    I am developing an app for iOS, targeting the last 3.9 SDK

    I have a main swf file that loads the local swf files. These local swf files have code actionscript in them. I use Flash Professional CS6.

    I publish the application successfully and everything's fine. When I start the app on the iPad, is the main swf and all is well. When I click on the button that loads the local SWF files, nothing happens. They are not loaded.

    It seems that this has been answered, but I'm losing my mind. I don't know what the problem is. I know that, in version 3.9 Air, it is now possible to load local SWF files are actionscript.

    Air for the Android version works perfectly with these local files loaded and unloaded like a charm.

    Any help would be greatly appreciated

    from the air, 3.6, you can load swf with actionscript and that run actionscript.  before 3.6 air that was not allowed (without additional work).

    but your charger must provide a loadercontext object that uses the current applicationdomain:

    var lc:LoaderContext = new LoaderContext(false,ApplicationDomain.currentDomain,null);

    yourloader. Load (yourexternalswf.swf, LC);

  • Loading XML data in ListView of C++ after extraction of http data

    I'm sorry did searh but could not find any refrence related to my problem
    I am trying to load the xml data returned from a web service HTTP Post QNetworkRequest and QNetworkReply in c ++.

    My XML that gets donwloaded is as

    
     http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
      
        tu7652
        F
        Marry
        Wijaya
      
      
        23
        F
        Marry
        Wijaya
      
    
    

    In My QML, it comes to the ListView can say SearchResult.qml

    ListView {
              objectName: "resultlist"
              dataModel: feedsdatamodel
              listItemComponents: [
                ListItemComponent {
                            type: "item"
                            PeopleListItem {
                                name: ListItemData.givenName + ", " + ListItemData.sn
                                role: ListItemData.ExtFunction
                                leftPaddingText: 40
                            }
                        }
               ]
            }
     attachedObjects: [
           // The data model that contains the content of a XML file
            GroupDataModel {
                id: feedsDataModel
                sortingKeys: [
                    "givenName"
                ]
                grouping: ItemGrouping.None
            }
        ]
    

    PeopleListItem.qml

    import bb.cascades 1.0
    
    Container {
        property alias name: titleLabel.text
        property alias role: functionLabel.text
        property alias leftPaddingText: textcontainer.leftPadding
    
        layout: StackLayout {
            orientation: LayoutOrientation.TopToBottom
        }
        preferredWidth: 768
        preferredHeight: 135
        Container {
    
            id: textcontainer
            topPadding: 10
    
            layout: StackLayout {
                orientation: LayoutOrientation.TopToBottom
            }
            Label {
    
                id: titleLabel
                textStyle.base: SystemDefaults.TextStyles.TitleText
                textStyle.color: Color.Black
            }
            Label {
                id: functionLabel
                textStyle.base: SystemDefaults.TextStyles.BodyText
                textStyle.color: Color.Gray
            }
        }
        Divider {
            verticalAlignment: VerticalAlignment.Bottom
        }
    }
    

    This is the function I'm using to display the QML it is called from main.qml and works correctly.

    void PeopleFinder::onSearchClicked() {
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\t" << "begin";
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\tfname:"
                << m_fname << "\tlname:" << m_lname;
    
        // Create a network access manager and connect a custom slot to its
        // finished signal
        mNetworkAccessManager = new QNetworkAccessManager(this);
    
        // create a data model with sorting keys for lastname and firstname
        Q_ASSERT(
                connect(mNetworkAccessManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(requestFinished(QNetworkReply*))));
    
        //Load the bew QML file of Search from here
        QmlDocument *qml = QmlDocument::create("asset:///SearchResults.qml").parent(
                this);
        qml->setContextProperty("peoplefinder", this);
    
        Page *mypage = qml->createRootObject();
        qml->setParent(mypage);
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\t s444444";
    
        // Retrieve the activity indicator from QML so that we can start
        // and stop it from C++
    //  mActivityIndicator = mypage->findChild("myIndicator");
    
        // Retrieve the list so we can set the data model on it once
        // we retrieve it
        mListView = mypage->findChild("resultlist");
    
        mNavigator->push(mypage);
    }
    

    Once the page loads in the QML it call the launch request providing c ++ file and once the
    query is completed under function is called with the data. I checked that data are downloaded properly

    void PeopleFinder::requestFinished(QNetworkReply* reply) {
        qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                << "response received";
        // Check the network reply for errors
        if (reply->error() == QNetworkReply::NoError) {
    
            // Open the file and print an error if the file cannot be opened
            qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                    << "No error";
    
            // Write to the file using the reply data and close the file
            QByteArray xml = reply->readAll();
            qDebug() << "Data: \n" << xml;
    
            // load the xml data
            XmlDataAccess xda;
            QVariant list = xda.load(xml, "ArrayOfPeople");
    
            qDebug() << "List:::\n" << list;
    
            GroupDataModel *datamodel = (GroupDataModel*)mListView->dataModel();
            // add the data to the model
            datamodel->clear();
            datamodel->insertList(list.value());
            datamodel->setSortingKeys(QStringList() << "givenName" << "sn");
            qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                    << "Datamodel set size:: " << datamodel->size();
    
            // Set the new data model on the list and stop the activity indicator
    
        } else {
            qDebug() << "\n Problem with the network";
            qDebug() << "\n" << reply->errorString();
        }
    }
    

    But now, the real problem begins as in how to convert QByteArray data type of QVariantList which can be loaded into the datamodel
    I don't want to write the data to the XML file and then pass that as a list his will is very slow, once I move test environment to the production environment.

    Please help me solve this problem

    I got it to work using xml parsing with QXmlStreamReader

  • BAM-06008: load XML is not valid; additional content was found.

    Hi all

    Version: 11.1.1.6

    We get the BAM error: "BAM-06008: load XML is not valid; "additional content were found" after I have added a field to another in a BAM Object.I have added this extra field to corresponding data objects .wsdl file as well as in the .xsd. I see the new field in the BAM. However, when I used to send a load with the newly added field it fails with the above error. However, if I add a new data object in BAM with the field he works very well.

    Why I get this error?

    Thank you

    Rahul

    I followed the following steps: -.

    1. make sure the new field entry in the ".wsdl" file that is located in the BAM folder.

    2. make entry new class in file ".xsd".

    3 do the mappings in the file ".xsl" corresponding to the action of the probe.

    Initially, I was just restart BAM and was faced with above mentioned error. After the reboot of SOA and BAM server, it started working.

Maybe you are looking for

  • DEPLETION OF RAM

    Since I installed macOS Sierra, my RAM is running out at a pace much faster than before. Anyone else having this problem? A recommended solution?

  • RAM problem

    I have 8 GB of RAM installed in my MacBook Pro. Suddenly, I found almost all of this is in use, making my computer run like molasses in winter. I recently installed a updat for OSX but don't know if that is the question. I run many apps and just do b

  • Satellite Pro A10 - Modem does not

    I recently reformatted my laptop using recovery discs. The internal modem does not work. It is recognized by the computer, but I get the message "the port that the modem is attacahed to could not be opened." This can be the result of a hardware confl

  • Webcam starts to turn himself.

    my webcam starts to turn himself.somebody's watching me?I could not find any virus or Trojan horse.

  • need driver for NVIDIA

    need driver for ms IE 8 & tv