Access to the XML object

In order to have access to all my code parsed XML needing access to it should be within the displayResources function? I am trying to load a XML outside the function of f and is not workinnnnn.

XMLParser.load ("Q_data/string_assets/string01.xml", null, false, true, onFinish)

function onFinish ($success: Boolean, $parsedObject: object, $xml: XML) {//This function is called as soon in the code XML load and gets analysis.}
If {($success)
displayResources ($parsedObject);
showImage ($parsedObject);
trace($parsedObject.Tool);
} else {}
trace ("FAILED to load XML");
}
}

var OL: Object = new Object();
lo.onLoadInit = function(target:MovieClip) {}
target.forceSmoothing = true;

holder_mc0.onPress = function() {}
holder_mc0.StartDrag (false);

holder_mc0. LineStyle(3,0xcccccc,100);
holder_mc0. LineTo(_root.myWidth,0);
holder_mc0. LineTo (_root.myWidth, _root.myHeight);
holder_mc0. LineTo(0,_root.myHeight);
holder_mc0. LineTo (0,0);

}
holder_mc0.onRelease = function() {}
holder_mc0.stopDrag ();

If (this ._droptarget == ' / string02 ') {}
this.onTarget = true;
_root.string02.gotoAndStop (2);
This ._visible = false;
menu_txt0._visible = false;
zoom0._visible = false;
This.main_txt1.setNewTextFormat (mainText);
This.main_txt1. Text = $parsedObject.tool [0] .name

} else {}
this.onTarget = false;
_root.targetCircle.gotoAndStop (1)
}}

Set it is available:

var parsedObject:Object;

XMLParser.load ("Q_data/string_assets/string01.xml", null, false, true, onFinish)

function onFinish ($success: Boolean, $parsedObject: object, $xml: XML) {//This function is called as soon in the code XML load and gets analysis.}

If {($success)

parsedObject = $parsedObject;
displayResources ($parsedObject);
showImage ($parsedObject);
trace($parsedObject.Tool);
} else {}
trace ("FAILED to load XML");
}
}

Tags: Adobe Animate

Similar Questions

  • To access the elements of the XML object

    A web service is back from the data to me as an XML object. I can access the items in the XML like this:

    & lt; cfset username = #XMLDocument.login.username # & gt; and if I have this dump to screen with cfoutput I get just the user name. But if I try to user the variable username as an attribute within a url cflocation it appears in the attributes with the xml notation, for example in the attributes will be:

    username = & amp; Lt;? XML = 20version & amp %; quot; 1.0 & amp; quot; % 20encoding = & amp; quot; UTF-8 & amp; quo t;? & amp; GT;

    Any help much appreciated. Thank you

    > Username>

    > I can't access like this:
    > #XMLDocument.login.username # this will show all
    > 'User_name '.

    Are you sure? If you view the source, don't you get the whole node?

    > but if I send these details as attributes, as follows:<>
    > url = ' index.cfm? username = #XMLDocument.login.username #... Can I get xml
    > formatting instead of just the user name.

    Well Yes.

    #XMLDocument.login.username # designates the entire node, not just the
    xmlText bit between the tags as you seem to expect. You want to
    just the xmlText node.

    You should probably read the docs on how CF manages XML:
    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=XML_02.html.

    --
    Adam

  • Change "current node" of the XML object

    Hello

    I am trying to edit the "current node" of an XML object, but I still don't know what will be the current node.

    My XML object to load an external XML file:

    < mx:XML id = source="assets/article_text.xml"/ "featureData" >

    and I read that data through a < mx:Repeater > create a < mx:TextArea > for each 'currentItem '.

    < mx:Repeater id = dataProvider = "{featureData.body_text.children ('repeatParas')}" >
    "< mx:TextArea htmlText =" {repeatParas.currentItem} "width ="80% "borderStyle ="none"click =" showBodyEditor (event, event.currentTarget.getRepeaterItem ()) "verticalScrollPolicy =" off "creationComplete ="resizeTextArea (event); "updateComplete ="resizeTextArea (event); "/ > < / mx:Repeater >

    A click on < mx:TextArea > event load a pop-up window containing a RichTextEditor that contains the content of currentItem:

    private void showBodyEditor(event:Event,_item:String):void {}
    var pop1:BodyEditor = BodyEditor (PopUpManager.createPopUp (this, BodyEditor, true));
    Set the properties of the custom component BodyEditor.
    POP1.showCloseButton = true;
    POP1.targetBodyText = event.currentTarget;
    POP1. CurrentNode = item;
    PopUpManager.centerPopUp (pop1);
    }

    I then passes the value of everything that has been entered in the return to the initial < mx:TextArea > RichTextEdior via a function on a button click event '' made '' (processBodyText()):

    [Bindable]
    public var targetBodyText:Object;
    [Bindable]
    public var currentNode:String;

    Transfer data to text boxes
    private function processBodyText (): void {}
    targetBodyText.htmlText = String (bodyTextForm.htmlText);
    currentNode = String (bodyTextForm.htmlText);
    Remove pop-up.
    PopUpManager.removePopUp (this);
    }

    But what I can't do is actually updated for that node in the featureData XML object without explicitly saying what node to update (for example, it works: parentApplication.featureData.body_text.p [1] = String (bodyTextForm.htmlText);) I don't necessarily know which node to update, I just want to be able to update some node I happen to be editing at the time.

    Is this possible?

    Thanks to anyone who can enlighten us!

    I'll reply to my own post (where everyone was watching).

    I just changed the parameters/variables currentNode type Object (instead of string) and within the processBodyText function, I replaced

    currentNode = String (bodyTextForm.htmlText);

    with

    currentNode.setChildren (bodyTextForm.htmlText);

    who updates the node in the XML data provider.

    I still need to get rid of some of the gobblygook of html that is passed to the rear (for example < TEXTFORMAT LEADING '2' = >) but as long as I am able to update the current node, I'm happy (for now).

  • Access to the XML data file

    OK, I need a quick lesson on the access of different tags in an xml file and display them. I have a rather messy xml generated dynamically and the structure cannot be modified due to an Excel application that is already there access.

    The following xml code:
    <? XML version = "1.0" encoding = "utf-8" standalone = "yes"? >
    < files >
    < active >
    account <>
    < sendto > Joe D < / sendto >
    < head >
    < level1 >
    < Envoy > true < / sent >
    < name > MIKE B < / name >
    < str > 1 < / str >
    < date > 18/07/2006 < / date >
    < notes > get this load! < / notes >
    < / level1 >
    < level2 >
    false < sent > < / sent >
    < name > < / name >
    < str > < / str >
    < date > < / date >
    < notes > < / notes >
    < / level2 >
    < level3 >
    false < sent > < / sent >
    < name > < / name >
    < str > < / str >
    < date > < / date >
    < notes > < / notes >
    < / level3 >
    < level4 >
    false < sent > < / sent >
    < name > < / name >
    < str > < / str >
    < date > < / date >
    < notes > < / notes >
    < / level4 >
    < / head >
    < itemcd > 1234567 < / itemcd >
    < desc > TEST < / desc >
    < detail > 5 < / sale >
    < go > AA01 < / go >
    < replcst > 2 < / replcst >
    < Pack1 > < / pack >
    < code > 123456789999 < / upc >
    < vendor name > EMRYW < / seller >
    < venditemcd > 1234567 < / venditemcd >
    < grp > 2 < / grp >
    < s > < / s >
    < insaft > < / insaft >
    < default shallum = 'every' > < / shallum >
    < default fracu = "i" > < / fracu >
    < default occurrence = '0' > < / occurrence >
    "< default allowfr =" "> < / allowfr >.
    < default prium = 'every' > < / prium >
    < default selluf = '1.00000' > < / selluf >
    < default Kathy = "1" > < / Alexandra >
    < default stockum = 'every' > < / stockum >
    < default itemstyp = '0' > < / itemstyp >
    < default traqoh = 'y' > < / traqoh >
    < default rcvum = 'every' > < / rcvum >
    < default rcvuf = '1.00000' > < / rcvuf >
    < default rcvscal = "1" > < / rcvscal >
    < default shipum = 'every' > < / shipum >
    < default shipuf = '1.00000' > < / shipuf >
    < stockingstr >
    < str1 > true < / str1 >
    false < str2 > < / str2 >
    false < str3 > < / str3 >
    < / stockingstr >
    < default pricematlev = '0' > < / pricematlev >
    < default qbreaktable = '0' > < / qbreaktable >
    < default taxflg = 'y' > < / taxflg >
    < default gstcd = '0' > < / gstcd >
    < default tradedisf = "n" > < / tradedisf >
    < default promptpayf = 'y' > < / promptpayf >
    < default commflg = 'y' > < / commflg >
    < default additdescf = "n" > < / additdescf >
    < default talleyitemf = "n" > < / talleyitemf >
    < default nonstkitem = "n" > < / nonstkitem >
    < default assemblyitemf = "n" > < / assemblyitemf >
    < default assemblyitemtype = '0' > < / assemblyitemtype >
    < default assemblyledtm = '0' > < / assemblyledtm >
    < default assemblywrkuts = "n" / > < / assemblywrkuts >
    < default billmattyp = '0' > < / billmattyp >
    < default serialnumf = "n" > < / serialnumf >
    < default bascomitemf = "n" > < / bascomitemf >
    < bascomitemcd > < / bascomitemcd >
    < default lotctrlf = "n" > < / lotctrlf >
    < default lotctrlnum = '0' > < / lotctrlnum >
    < default relitemmsgnum = '0' > < / relitemmsgnum >
    < default hazmatnum = '0' > < / hazmatnum >
    < default strydf = "s" > < / strydf >
    < default keyitemf = "n" > < / keyitemf >
    < default ctrlitemf = "n" > < / ctrlitemf >
    < talleyindiv > < / talleyindiv >

    < textfld2 > < / textfld2 >
    < default numfld1 = '0' > < / numfld1 >
    < default numfld2 = '0' > < / numfld2 >
    < default glacctcd = "" > < / glacctcd >
    < default stkitemrptf = 'y' > < / stkitemrptf >
    < default lifopolnum = '0' > < / lifopolnum >
    < default lifosampf = "n" > < / lifosampf >
    < default pricetabname = "" > < / pricetabname >
    < invcstperc default '0.00' = >
    < str1 > < / str1 >
    < str2 > < / str2 >
    < str3 > < / str3 >
    < / invcstperc >
    < default invcritfac = "0.00" > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / invcritfac >
    < default invglnum = '0' > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / invglnum >
    < default invlngrngfac = "0.00" > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / invlngrngfac >
    < default invminq = "1" >
    < str1 > < / str1 >
    < str2 > < / str2 >
    < str3 > < / str3 >
    < / invminq >
    < default invmaxq = "2" >
    < str1 > < / str1 >
    < str2 > < / str2 >
    < str3 > < / str3 >
    < / invmaxq >
    < default minmaxtab = "DO_NOT_ORDER" >
    < str1 > < / str1 >
    < str2 > < / str2 >
    < str3 > < / str3 >
    < / minmaxtab >
    < default invmingpperc = "49" >
    < str1 > < / str1 >
    < str2 > < / str2 >
    < str3 > < / str3 >
    < / invmingpperc >
    < default invordq = '0' > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / invordq >
    < price1 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price1 >
    < price2 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price2 >
    < 3 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / 3 >
    < price4 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price4 >
    < price5 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price5 >
    < price6 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price6 >
    < price7 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price7 >
    < price8 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price8 >
    < default alley = "XXXXX" >
    AA01 < str1 > < / str1 >
    < str2 > < / str2 >
    < str3 > < / str3 >
    < / go >
    < bin > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / bin >
    < shelf > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / Tablet >
    < invstdcst > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / invstdcst >
    < manminmax > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / manminmax >
    < Text2 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / text2 >
    < numer1 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / numer1 >
    < numer2 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / numer2 >
    < default keyword = "" > < / keyword >
    < default score = "" > that load! < / note >
    < / recording >
    < / current >
    < / files >


    Here is the code I have so far:
    <? XML version = "1.0" encoding = "utf-8"? >
    "" < application xmlns = " http://www.adobe.com/2006/mxml ' layout ="absolute"xmlns:local =" * ">
    < id XML = 'feedData"source ="index.xml"/ >
    < DataGrid dataProvider = "{feedData... active.record}" = "324" XY = "138" width = "500" >
    < columns >
    < DataGridColumn id = "Folder" headerText = "presented by" dataField = "" / >

    < DataGridColumn headerText = "Item" dataField = "itemcd" / >
    < DataGridColumn headerText = "Description" dataField = "desc" / >
    < / columns >
    < / DataGrid >
    < / application >

    What I want to know is how to access and put in the column ' presented by"< files > < active > < record > < head > < level1 > < name >

    Any help would be great, because I'm stuck.

    After digging a little and a few cups of coffee, I managed to shoot some extraction of an XML data in a datagrid control. I can access attributes, node values, etc...

    One thing I noticed, is that you need to refresh the application if you have constantly updated dynamic data up-to-date. So here is some code to help some of you on:

    First some XML (index.xml) examples:




    Architect

    111 Salisbury Rd


    Web Designer

    888 Orchard Rd

    Name of code with two tabs one ( Active), other name ( inactive):

    "http://www.adobe.com/2006/MXML" layout = "absolute" xmlns:local = "" * "pageTitle ="Test App"creationComplete =" srv.send () ">

    http://www.domain.com/index.XML?RAND=math.random (); "resultFormat ="e4x"useProxy ="false"showBusyCursor ="true"/ >


    <>
    private void RefreshData (): void {}
    xActive.refresh ();
    xInActive.refresh ();
    }
    ]]>
























  • Access to the XML schemas from the connection manager?

    The connection manager for a connection opened in version 4 is no longer an 'XML Schémas' icon (Java and XML patterns seem to have been deleted between versions 3 and 4). Is there a definition that can return the XML schemas?

    Using lists yet... »

    XML schemas

    XML schemas are definitions of schema, written in XML, that describe the structure and various other semantics of XML instance documents. For conceptual and information on the use of XML schemas, see the Guide of Oracle XML DB Developer in the Oracle database documentation library.

    You can change an XML schema by right clicking in the connections Navigator XML schema name and selecting open from the menu. You can delete a selected schema by selecting the Drop Schema menu. » ...

    The XML node drawings missing in the connections Navigator is a known issue for the 4.0.1.  The 4.0.2 patch is a fix.

    Regarding the Java node, it seems to me in all versions 4.0.x.  Maybe your Preferences... > Database > Navigation filter turned it off?

    Kind regards
    Gary

    SQL development team

  • best way to see the xml objects attribute existence

    "I have the xml node < type mynode ='sometype" >...

    I do: 'item.@type' and I need to check and if the attribute type is not lifting error, but it seems that "item.@type" will never return null, if there is no attribute "type" not specified, it returns a kind of empty xml or something, is there a particular reason, why it is done that way? and especially, what is the best way to check whether the xml node attribute 'type' defined?

    Thanks in advance


    ! point. (hasOwnProperty ("@type")) | «StringUtil.trim (item.@type) == «»

  • Adding data to XML objects.

    Hello

    I wonder how to add completely new data to the XML data that I hang in a var.

    I am importing XML data in an editor that I've created.  The XML looks like this:

    < itemList_120 >

    < mediaFile order = '1' playTime = '2 ' transIn = transOut '1' = ' 9' > gif.gif < / mediaFile >
    < order = '2' playTime '1' = transIn mediaFile transOut = '6' = "8" > jpg.jpg < / mediaFile >

    < / itemList_120 >

    The code that I put in place to contain the XML data is as follows:

    var theXML:XML;
    var myXML:XMLList;

    function called when the xml file loading is complete
    function onXMLLoaded_120 (e: Event): void {}

    a new instance of the xml object
    Check = new XML (e.target.data);

    Use the object XMLList to children nodes filter thumbnails
    myXML = theXML.itemList_120;

    etc - and it works for importing the XML file - if I trace (myXML), XML data above are displayed.

    I find that you can change the different parts of the XML data in myXML in this way:

    myXML.mediaFile[1].@playTime = 2

    (which changes the second line of XML code for this: < mediaFile order = "2" "2" = transIn playTime transOut = '6' = "8" > jpg.jpg < / mediaFile >)


    My question is:

    Rather than change the existing XML data, how to add completely new data?  That is to say, if the var above who held two lines "mediaFile" of XML, how to add or insert a third?

    Thanks for taking a peek at this.

    Shaun

    check the xml class.  There are all the methods you need to add, insert, and delete nodes, attributes, etc.

  • Using 'this' inside the XML onLoad function

    Hi all

    I use this line of code inside an onLoad() XML:

    this.attachMovie ("MasterBtn", "instance_name", this.getNextHighestDepth (), {_x:50, _y:50});})

    The 'this' keyword points me to the XML object. Are there alternatives to the use of 'this', as the use of a container element.


    concerning

    John
    http://www.javono.com

    So I guess you want on the main timeline? Here's what I do. That ' it's the best, but it seems to work for me. Outside the XML stuff with my other declarations of variables usually, I add the following:

    var host: MovieClip = this;

    Then in the event handler:

    home.attachMovie (etc.)

    I think it should work.

  • Save the XML code that is generated in an XML file

    The following code creates an XML object and the function executes a query from Salesforce and fills the XML object with the results.

    How would I go about recording these XML data in a file, say "data / devNotes.xml"?

    [Bindable]
    private var myDevNotes:XML = < notes > < / notes >;

    private function loadDevNotes (): void
    {
    Request deleted for brevity code
    for (var j: int = 0; j < qr.records.length; j ++)
    {
    var newNote:XML =
    < notes sfid = {qr.records [j]. ID} >
    < name > {qr.records [j]. Name} < / name >
    < detail > {qr.records [j]. QA_Detail__c} < / details >
    < createdBy > {qr.records [j]. CreatedById} < / createdBy >
    < lastModified > {qr.records [j]. LastModifiedDate} < / lastModified >
    < / note >;
    myDevNotes = myDevNotes.appendChild (newNote);
    }
    }

    In the AIR, there is quite a bit easier to do what you want. Here is a code example:

    private function save_xmlData (): void {}
    var xmlFile:File = File.applicationStorageDirectory; File.documentsDirectory or File.desktopDirectory
    (xmlFile = xmlFile.resolvePath('data/devNotes.xml"');
    var outputString:String = myDevNotes.toXMLString ();
    outputString = outputString.replace (/ \n/g, File.lineEnding);
    var stream: FileStream = new FileStream();
    Stream.Open (xmlFile, FileMode.WRITE);
    stream.writeUTFBytes (outputString);
    Stream.Close ();
    }

    Vygo

  • Internet Explorer does not reload the XML data

    Hello

    I created a scroller that reads from a RSS page by using the XML object and Load XML method. Every minute, I call the XML loading method to reload the data. It works well on Firefox and Opera, but it's not reloading on Internet Explorer. Any ideas?

    I use IE 6 SP2 Version. Is this related to the Internet Explorer security? Is there a work around?


    -Thanks in advance

    Put a random var at the end of the xml file:

    ID = ((Math.random () * 15) + "ie43"); just to deodorize the xml
    myXml.load("XMLdata.xml?id="+id)

    --

    Dan mode
    * THE Radio * Online http://www.tornadostream.com
    * Must read * http://www.smithmediafusion.com/blog
    * Flash help * http://www.smithmediafusion.com/blog/?cat=11

    'houses of soon f' wrote in message
    News:e90lqt$49B$1@forums. Macromedia.com...
    > Hello,
    >
    > I created a scroller that reads from a RSS page by using the XML object and
    > XML
    > Load method. Every minute, I call the XML loading method to reload the data.
    > This
    > works fine on Firefox and Opera, but it is not charging on
    > Internet
    > Explore. Any ideas?
    >
    > I'm using IE 6 SP2 Version. Is this related to Internet Explorer
    > Security?
    > Is there a work around?
    >
    >
    > - Thanks in advance
    >

  • How to get the XML from the Request of Java object before sending. SOAP Web services

    I'm building Java request to Online Web Services and we'll call it application A . I got the WSDL forms the second part of the file in order to communicate with their application and we'll call it application B .

    Of the WSDL file generate the Java required classes that are Requests and Responses . classes Application A will send some request object after setting the parameters required and with the exception of response object of application B .

    The connection is established and the two applications A and B communicate with each other.

    Question:

    Of application A How can I get the xml data (or text file) for the request object before sending it to application B ?

    As described the connection is passing Java object such as request and I know that in some point this request will be converted to xml file. How to get it?

    -EDIT-

    Missing important information which can be confusing.

    I'm generated the Java rating were generated using the Axis framework

    The problem is solved by, add the following statements in the bindingStub class that was automatically generated from the WSDL file to the web-services you are trying to access.

       String request = _call.getMessageContext().getRequestMessage().getSOAPPartAsString(); 
     String response = _call.getMessageContext().getResponseMessage().getSOAPPartAsString();
    

    These statements should be placed after the following method call _call.invoke otherwise you will get NullPointerException .

    _callis a variable of type org.apache.axis.client.Cal and it is automatically generated byAxis

  • Remove an object from the XML file generated by PDF

    Hello

    In a step of the workflow user of my PDF, the user presses a submit button that sends XML data to an address. There is an image field that has hundreds of lines of XML code that does not need to send.  Indeed, at the time when this button is pressed "submit", the image field is already "hidden", but of course, it remains in the form.

    Is there an any access or visibility of goods which will remove an object enough that it is not transfer with XML?  How would you dynamically remove a field on the user-end?

    Hello

    One solution, use an ImageField object instead of an Image object. Then go to object > Binding palette and for binding, select without binding data (or none, depending on your version of the designer of the LC).

    Because you are currently using an ImageField you need one line of code to its event docReady (JavaScript):

    this.access = "readOnly";
    

    The lines in the XML data file contains the image to Base64 format.

    Hope that helps,

    Niall

  • Unable to access the doc object

    Hello

    I'm unable to access the doc object, as in doc.mailForm ().

    I tried to access this object as follows, a field event and a global module:

    This.doc (undefined)

    App.doc (undefined)

    Event.Target.doc (undefined)

    doc (blocks JavaScript).

    The app object is OK, I can use app.alert ().

    I use Designer version 8.2.1, using a dynamic XML form.

    Just use event.target which will return the doc object.
    See the code example below
    var doc = event.target;
    doc. Print();
    doc.saveAs ();
    doc.closeDoc ();

    Nith

  • Access to the object in xmlns

    Hello

    I came across this stupid a probem illustrated in the example below:

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="absolute" " xmlns:views = "" * ' creationComplete = "initApp ()" > "
    < mx:Script >
    <! [CDATA]
    Import mx.controls.Text;
    public void initApp()
    {
    Label1.text = "View1 changed."
    }
    []] >
    < / mx:Script >
    <views: View1 label = "View1" width = "100%" / >
    < / mx:Application >

    file View1.xml contains:

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Canvas ' http://www.Adobe.com/2006/MXML "width ="100% "> "
    "< mx:Label id ="label1"x ="10"y ="50" text="View1"/ >"
    < / mx:Canvas >

    It makes the error:


    1120: access of undefined property label1.

    How can I access label1 main file object?

    views: View1 label = "View1" width = "100%" id = "myComp" / >

    myComp.label1.text = 'new view ';

    BaBo,

  • Problem with to access the XML nodes whose namespace

    Hello
    I have a XML file with the following format;

    "" "" "< graphml version ="1.3"xmlns =" http://graphml.graphdrawing.org/xmlns/graphml ' xmlns:y = ' http://www.yworks.com/xml/graphml ' xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance" > "

    < graph id = 'G' edgedefault 'ordered' = >

    < key data 'd11' = >
    < y: SharedData >
    < name there: Brush = "SolidBrush" color = "Black" id = "1" / >
    < / y: SharedData >
    < / data >

    < node id = "G:n0" >
    < y: Labels >
    < y: Text > <! [CDATA [start]] > < / Text: y >
    < / y: Labels >
    < / node >

    < node id = "G:n1" >
    < y: Labels >
    < y: Text > <! [CDATA [end]] > < / Text: y >
    < / y: Labels >
    < / node >

    < / chart >

    < / graphml >


    I access this file as < mx:XML id = "layoutXml" source = "tmp.xml" / > "

    I have no application debugging and found that the layoutXml object contains the xml file as it is. Now when I try to access any child node of layoutXml, every time I found null. Same instruction layoutXml.graph.toXMLString () or layoutXml.graph.toString () returns null.

    I have tryied the following approach as well, but did not work,
    var nameSpace:Namespace = new Namespace (" http://www.yworks.com/xml/graphml");
    var str:String = layoutXml.graph.node. (@id == ' G:n0").nameSpace::Labels.nameSpace::Text.toXMLString();")
    also, this property returns null.

    If anyone has the solution, please answer.

    Thank you.

    Namespace var sets default namespace:
    lack of namespace xml = nameSpace;

    You should then be able to reference nodes normally.

    Tracy

Maybe you are looking for

  • How can I bypass for icloud?

    I recently bought an iphone 6s a friend but its locked by activation of icloud. My friend did not know that apple ID or password. Y at - it any other way? Help?

  • Mail PDF rotation

    Hi, I'm under 10.11.3 on an iMac end of 2013 In Mail, when I attach a PDF file that has been rotated, mail shows the incorrect orientation for the canvas to the image, but the correct orientation of the image in the PDF, which causes the image to be

  • is no longer able to view, edit, or play the old imovie projects

    Hi, the week last after the purchase of the 6 new iPhone and needing access to iCloud, I have finally updated my most old iMac (late 2009) to OSX El Capitan. Model of card: Processor Intel Core 2 Duo 3.06 GHz with 3 MB of cache shared N2; 4GB (2 GB S

  • reminder of database options

    I tried to make a simple seq using a reminder of database options (access database). I get data in the table UUT_RESULT, which mean that the result of my test of numerical limit is not connected. Is something wrong with the schema parameter? Where ca

  • Uninstall the network adapter with Windows 7

    I can not connect to internet on my other PC with Windows 7.  In Device Manager, I found 9 network cards that I can't uninstall.  If this is caused by a virus?  How can I remove additional network cards from my PC?  Thank you.