LoadXML external XML

Hello everybody,
Question, How I can load the external xml file data in the form.
For examle I have owned a dropdown list box that contains the following give: A, B, C.
And then I have fields in my form: TextField1, TextField2,textField3.
By changing event dropdownlist box I must load the xml dynamically:
http://mywebsite.com/userdata/myxml-A.xml
or
http://mywebsite.com/userdata/myxml-B.xml
or
http://mywebsite.com/userdata/myxml-C.xml
The XML file is loaded in the fields fill in the form:
for example:
textField1.rawValue = C.textForField1
textField2.rawValue = C.textForField2
textField3.rawValue = C.textForField3
Does anyone could give me an example how I shouldproceed?
Thank you in advance.
------------------------------------------Here is my scipt // don't work
Projects.Page1.lstProjects::change - (JavaScript, client)
var xmlURL = "http://www.mywebsite.com/userdata/myXML-"+xfa.event.newText+".xml";
app.alert(xmlURL); //work, response : http://www.mywebsite.com/userdata/myXML-A.xml";
xfa.datasets.loadXML(xmlURL, false, false);
xfa.datasets.saveXML();
var projectXML=xfa.datasets.resolveNode("Project");app.alert(projectXML); // don't work var numberOfNodes = projectXML.nodes.length;
app.alert(numberOfNodes); //don't work
Here is the structure of myXML file (myXML-A.xml) :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Project SYSTEM ".dtd/project.dtd">
<Project>
     <OfficialNumber>001</OfficialNumber>
     <Title>Title of my test project</Title>
     <DateReceived showFormat="YYYY-MM-DD" defaultFormat="YYYY-MM-DD">2011-06-30</DateReceived>
     <TypeOfProject>Type1</TypeOfProject>
     <Organisation>Organisation1</Organisation>
</Projec

No, I need to do this with in pdf Ineractive Form.
I think it possible.
Here is my scipt // don't work
Projects.Page1.lstProjects::change - (JavaScript, client)
var xmlURL = "http://www.mywebsite.com/userdata/myXML-"+xfa.event.newText+".xml";
app.alert(xmlURL); //work, response : http://www.mywebsite.com/userdata/myXML-A.xml";
xfa.datasets.loadXML(xmlURL, false, false);
xfa.datasets.saveXML();
var projectXML=xfa.datasets.resolveNode("Project");
app.alert(projectXML); // don't work
var numberOfNodes = projectXML.nodes.length;
app.alert(numberOfNodes); //don't work
Here is the structure of myXML file (myXML-A.xml) :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Project SYSTEM ".dtd/project.dtd">
<Project>
     <OfficialNumber>001</OfficialNumber>
     <Title>Title of my test project</Title>
     <DateReceived showFormat="YYYY-MM-DD" defaultFormat="YYYY-MM-DD">2011-06-30</DateReceived>
     <TypeOfProject>Type1</TypeOfProject>
     <Organisation>Organisation1</Organisation>
</Project>

Similar Messages

  • Load external XML into DataGrid with AS3

    I've really looked hard to find an example/tutorial for
    loading external XML data into a DataGrid component using AS3. The
    code I'm using at the moment has the XML data in the AS code. If
    anyone can point me to a good resource(s) for code or a tutorial
    I'd be very appreciative. It needs to be AS3. ~steve
    Here is the code that is working for internal XML data:
    import fl.controls.dataGridClasses.DataGridColumn;
    import fl.data.DataProvider;
    stop();
    var emailXML:XML = <emails>
    <email date="06-04-07" code="EMRPAAV" campaign="This is
    the campaign details."/>
    <email date="06-11-07" code="EMRPAAW" campaign="This is
    the campaign details."/>
    <email date="06-18-07" code="EMRPAAX" campaign="This is
    the campaign details."/>
    <email date="06-25-07" code="EMRPAAY" campaign="This is
    the campaign details."/>
    <email date="07-02-07" code="EMRPAAZ" campaign="This is
    the campaign details."/>
    <email date="07-09-07" code="EMRPABA" campaign="This is
    the campaign details."/>
    </emails>;
    var dateCol:DataGridColumn = new DataGridColumn("date");
    dateCol.headerText = "Date";
    dateCol.width = 60;
    var codeCol:DataGridColumn = new DataGridColumn("code");
    codeCol.headerText = "Source Code";
    codeCol.width = 70;
    var campaignCol:DataGridColumn = new
    DataGridColumn("campaign");
    campaignCol.headerText = "Campaign";
    campaignCol.width = 300;
    var myDP:DataProvider = new DataProvider(emailXML);
    emailData.columns = [dateCol, codeCol, campaignCol];
    emailData.width = 440;
    emailData.dataProvider = myDP;
    emailData.rowCount = emailData.length;
    // end code

    Here is how you build it for external XML. in my example am
    using the same xml format that you are using . The xml file called
    "dataGrid.xml"
    import fl.controls.dataGridClasses.DataGridColumn;
    import fl.data.DataProvider;
    import fl.containers.UILoader;
    import fl.data.DataProvider;
    import fl.events.*;
    import flash.xml.*;
    var emailXML:XML;
    var myList:XMLList;
    function parseXML():void
    var url:String = "dataGrid.xml";
    var urlRequest:URLRequest = new URLRequest(url);
    var loader:URLLoader = new URLLoader();
    loader.addEventListener("complete" , loadXML);
    loader.load(urlRequest);
    /*var emailXML:XML = <emails>
    <email date="06-04-07" code="EMRPAAV" campaign="This is
    the campaign details."/>
    <email date="06-11-07" code="EMRPAAW" campaign="This is
    the campaign details."/>
    <email date="06-18-07" code="EMRPAAX" campaign="This is
    the campaign details."/>
    <email date="06-25-07" code="EMRPAAY" campaign="This is
    the campaign details."/>
    <email date="07-02-07" code="EMRPAAZ" campaign="This is
    the campaign details."/>
    <email date="07-09-07" code="EMRPABA" campaign="This is
    the campaign details."/>
    </emails>
    parseXML();
    function loadXML(evt:Event):void
    emailXML = new XML(evt.target.data);
    myDP = new DataProvider(emailXML);
    emailData.dataProvider = myDP;
    var dateCol:DataGridColumn = new DataGridColumn("date");
    dateCol.headerText = "Date";
    dateCol.width = 60;
    var codeCol:DataGridColumn = new DataGridColumn("code");
    codeCol.headerText = "Source Code";
    codeCol.width = 70;
    var campaignCol:DataGridColumn = new
    DataGridColumn("campaign");
    campaignCol.headerText = "Campaign";
    campaignCol.width = 300;
    var myDP:DataProvider;
    emailData.columns = [dateCol, codeCol, campaignCol];
    emailData.width = 440;
    emailData.dataProvider = myDP;
    emailData.rowCount = emailData.length;

  • How do you load external XML into a dataProvider?

    I have been looking through the docs and have found a couple
    of entries discussing how to load external XML. Unfortunately, that
    is where the example stops and there is no example of doing
    anything useful with that data.
    I have managed thus far 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 above doesn't work at all. I don't know how to
    convert the loader.data into a format that the
    ComboBox.dataProvider understands. I can't believe I have to write
    a function to parse this XML. Surely there must be a way to simply
    convert the XML to an array or something???

    That link uses the flex beta 3 docs. You may want to use the
    current livedocs.
    Here
    is a direct link to the section I was talking about.
    Scroll down about halfway to the part that says "However,
    using a raw data object..."
    If you want the PDFs (easier to read IMO) you can get them
    here.
    Here
    is a direct link to the Developer's Guide:

  • How can I set connection to external XML file with Dreamweaver to buiild AIR app?

    Hello,
    I try to do simple AIR app in dreamweaver. It's not problem
    to use static data. But I'd like to use dynamic data from external
    XML file. I try to use Spry and evrything works fine in web browser
    but i have problem with loading external XML data into my app in
    AIR. Can I simply transform my spry based html app into AIR?
    What should I add to do this?
    Pawel

    Daniel Lichtenwald wrote:
    What are the requirements and steps for arranging to receive this large file using File Transfer Protocol (FTP)?
    Usually, we don't speak of "receive" when using FTP, since the file is transferred from server to client, so it's more of a case of "download".
    At your end, it's simple. You use an FTP client; under SL, that includes Finder and Safari, so you don't even need to get any additional software.
    At the other end, it's more complicated; the 'sender' must set up an FTP server on his machine.
    Alternatively, you can set up your own Mac as an FTP server, and have the 'sender' connect to you with an FTP client and upload the file; but, if your Mac lives behind a router, then you have more work to do with the router settings.
    That's why it's much easier to use the file sharing services mentioned above -- if they are available in both sender's and receiver's locations. (Keep in mind that some countries block access to all those mentioned -- except perhaps <www.transfer.ro>, of which I know absolutely nothing.)

  • Problem loading external XML

    Hi, I"m having a problem with an Applet.
    I wrote a program that acceses an external XML file located on my webspace, but when I converted this program to run in a webbrowser I get console errors when trying to acces the file.
    Here's my code:
    package javaapplication;
    import java.applet.Applet;
    import java.awt.BorderLayout;
    import java.awt.Canvas;
    import java.util.ArrayList;
    import javaapplication7.parsing.XmlParser;
    public class Main extends Applet {  
        protected Thread gameThread = null;
        private Canvas display_parent = null;
        private boolean running = false;
        private XmlParser parser = new XmlParser();
        public void destroy() {
            remove(display_parent);
            super.destroy();
            System.out.println("Clear Up");
        public void start() {
            gameThread = new Thread() {
                public void run() {
                    running = true;
                    System.out.println("Entering Gameloop");
                    gameLoop();
            gameThread.setDaemon(true);
            gameThread.start();
        public void stop() {
        public void init() {
            setLayout(new BorderLayout());
            try {
                display_parent = new Canvas() {
                    public final void removeNotify() {
                        super.removeNotify();
                display_parent.setIgnoreRepaint(true);
                display_parent.setSize(getWidth(),getHeight());
                add(display_parent);
                display_parent.setFocusable(true);
                display_parent.requestFocus();
                setVisible(true);
            catch(Exception e) {
                System.err.println(e);
                throw new RuntimeException("Unable to create display");
        private void gameLoop() {
            ArrayList <String> temp = null;
            while (running) {    
                temp = parser.SearchXml("http://users.telenet.be/decoy/FacebookApp/xml/BulletType.xml", "BulletList",2);
                for (int i=0;i<temp.size();++i) {
                    System.out.println(temp.get(i));
    }my html file :
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
      <head>
        <title>AppletLoader</title>
      </head>
      <body>
      <applet code="javaaplication.Main" archive="JavaApplication7.jar" codebase="." width="800px" height="600px">
        <!-- The following tags are mandatory -->
        <!-- Name of Applet, will be used as name of directory it is saved in, and will uniquely identify it in cache -->
        <param name="al_title" value="appletloadertest">
        <!-- Main Applet Class -->
        <param name="al_main" value="javaapplication.Main">
        <!-- logo to paint while loading, will be centered -->
        <param name="al_logo" value="appletlogo.png">
        <!-- progressbar to paint while loading. Will be painted on top of logo, width clipped to percentage done -->
        <param name="al_progressbar" value="appletprogress.gif">
        <!-- List of Jars to add to classpath -->
        <param name="al_jars" value="JavaApplication7.jar">
        <!-- signed windows natives jar in a jar -->
        <param name="al_windows" value="lib/windows_natives.jar.lzma">
        <!-- signed linux natives jar in a jar -->
        <param name="al_linux" value="lib/linux_natives.jar.lzma">
        <!-- signed mac osx natives jar in a jar -->
        <param name="al_mac" value="lib/macosx_natives.jar.lzma">
        <!-- signed solaris natives jar in a jar -->
        <param name="al_solaris" value="lib/solaris_natives.jar.lzma">
        <!-- Tags under here are optional -->
        <!-- Version of Applet, important otherwise applet won't be cached, version change will update applet, must be int or float -->
        <!-- <param name="al_version" value="0.1"> -->
        <!-- background color to paint with, defaults to white -->
        <!-- <param name="al_bgcolor" value="000000"> -->
        <!-- foreground color to paint with, defaults to black -->
        <!-- <param name="al_fgcolor" value="ffffff"> -->
        <!-- error color to paint with, defaults to red -->
        <!-- <param name="al_errorcolor" value="ff0000"> -->
        <!-- whether to run in debug mode -->
        <!-- <param name="al_debug" value="true"> -->
        <!-- whether to prepend host to cache path - defaults to true -->
        <param name="al_prepend_host" value="false">
        <!-- main applet specific params -->
        <param name="test" value="test">
      </applet>
      <p>
        if <code>al_debug</code> is true the applet will load and extract resources with a delay, to be able to see the loader process.
      </p>
      </body>
    </html>console errors :
    network: Connecting http://users.telenet.be/decoy/FacebookApp/xml/BulletType.xml with proxy=DIRECT
    network: Connecting http://users.telenet.be/crossdomain.xml with proxy=DIRECT
    network: Connecting http://users.telenet.be:80/ with proxy=DIRECT
    network: Connecting http://users.telenet.be/crossdomain.xml with cookie "__utmz=226366239.1223468593.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); st8id_wlf_%2Etelenet%2Ebe_%2F=TE5HVExNX0ZMQVNI?81c37b0684bbf41f4c42c63db814f879; __utma=226366239.605535372.1223468593.1223556298.1224764225.3"
    network: Connecting http://www.zita.be/users_error/ with proxy=DIRECT
    network: Connecting http://www.zita.be:80/ with proxy=DIRECT
    java.security.PrivilegedActionException: java.io.FileNotFoundException: http://www.zita.be/users_error/
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
         at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
         at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.URL.openStream(Unknown Source)
         at facebookgame.parsing.XmlParser.SearchXml(XmlParser.java:38)
         at facebookgame.entity.ShotEntity.<init>(ShotEntity.java:62)
         at facebookgame.InGameState.Enter(InGameState.java:75)
         at facebookgame.FacebookApp.changeToState(FacebookApp.java:258)
         at facebookgame.MenuState.CheckPlayerInput(MenuState.java:106)
         at facebookgame.MenuState.StateCycle(MenuState.java:139)
         at facebookgame.FacebookApp.gameLoop(FacebookApp.java:212)
         at facebookgame.FacebookApp.access$200(FacebookApp.java:17)
         at facebookgame.FacebookApp$1.run(FacebookApp.java:60)
    Caused by: java.io.FileNotFoundException: http://www.zita.be/users_error/
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at com.sun.deploy.net.CrossDomainXML$2.run(Unknown Source)
         ... 22 moreHopefully some1 can help me :).
    Edited by: Veko on Dec 7, 2008 2:51 PM

    But why is it possible then to succesfully acces the .xml file with a non-web applet
    This code reads the file perfectly of my webspace...
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.URL;
    public class XMLHandler {
         public static void SearchXml(){
            try{
                InputStream filesource = new URL("http://users.telenet.be/decoy/FacebookApp/xml/BulletType.xml").openStream();
                System.out.println("found input source");
                byte[] readIn = new byte[8];
                int bytesRead = filesource.read(readIn);
                OutputStream stream = System.out;
                while(bytesRead != -1){
                     stream.write(readIn);
                     bytesRead = filesource.read(readIn);
            } catch (Exception e){
                e.printStackTrace();
         public static void main(String[] args){
              SearchXml();
    }it returns the contents of the xml perfectly
    <?xml version="1.0"?>
    <bulletList>
    <bullet type="1">
         <speed>1.0f</speed>
         <size>O.65f</size>
         <damage>1</damage>
         <texture>"res/shot.png"</texture>
         <sound>"blah.ogg"</sound>
    </bullet>
    <bullet type="2">
         <speed>1.5f</speed>
         <size>O.65f</size>
         <damage>1</damage>
         <texture>"res/shot.png"</texture>
         <sound>"blah.ogg"</sound>
    </bullet>
    </bulletList>Does a applet in a browser have somekind of weird restriction that I haven't heard of yet ?
    Edited by: Veko on Dec 8, 2008 2:28 AM
    Edited by: Veko on Dec 8, 2008 2:29 AM
    Edited by: Veko on Dec 8, 2008 2:29 AM

  • Variable substitution in external XML

    I'm loading an external xml file using the Loader class, and
    then assigning the loaded content to a variable when the loading is
    complete, like this:
    function x_loaded(e:Event) {
    var rotation_value:String = "-180";
    mc_xml = XML(x_loader.data);
    If I include in my xml file a value to be substituted, for
    example <image rotation={rotation_value}/>, the parsing of
    the xml fails when assigning to the mc_xml value.
    Is it possible to substitute values in externally loaded xml?
    alternatively, is there a way to simply SET the values,
    something like image.attribute("rotation")="180";
    thanks in advance

    Thanks, k
    I think all the code that's germane is in my first post, but
    here's a bit more detail. It turns out I was using URLLoader, sorry
    to confuse the issue. Your help is appreciated. The failure occurs
    on the line that reads "mc_xml = XML(x_loader.data);" and the error
    message is: "TypeError: Error #1090: XML parser failure: element is
    malformed."
    my code:
    var mc_xml:XML;
    var x_loader:URLLoader = new URLLoader();
    var x_url:String = "motion.xml";
    var x_req:URLRequest = new URLRequest(x_url);
    x_loader.addEventListener(Event.COMPLETE,x_loaded);
    x_loader.load(x_req);
    function x_loaded(e:Event) {
    var rotation_value:String = "-180";
    mc_xml = XML(x_loader.data);
    Here's the (simplified) external xml file. It's generated by
    a "Copy motion as ActionScript 3.0" and everything works fine
    before I try to substitute some variables in the xml. You can see
    the substitution in the penultimate line.
    <Motion duration="20" xmlns="fl.motion.*"
    xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
    <source>
    <Source frameRate="25" x="784.3" y="78.1" scaleX="1"
    scaleY="1" rotation="180" elementType="movie clip"
    instanceName="mc" symbolName="Symbol 2">
    <dimensions>
    <geom:Rectangle left="0" top="0" width="288"
    height="209"/>
    </dimensions>
    <transformationPoint>
    <geom:Point x="0.2586805555555556"
    y="0.3923444976076555"/>
    </transformationPoint>
    </Source>
    </source>
    <Keyframe index="0">
    <tweens>
    <SimpleEase ease="0"/>
    </tweens>
    </Keyframe>
    <Keyframe index="19" x="-709.8" y="3.9000000000000057"
    rotation={rotation_value} />
    </Motion>
    Thanks in advance for any insight you can provide

  • Import external xml file in PDF using Livecycle

    I require sending some values in main xml file from the external xml file during sending mail on button click. Doing so, I want to read values from external file into a hidden field or send the external xml/text file as an attachment.
    1. Is there any feature in live cycle to attach multiple xml/text files in mail using button click?
    2. Is there any way to read an external xml file to pre-populate a textbox using javascript?
    Kindly help me to find out the solution.
    Thanks in advance
    Vikram Kumar

    Hi,
    1) You can do this with a script. But this script works only with the Acrobat Pro not with the Adobe Reader!!
    2) Sure.
    You open your form.
    Go to File | Form Properties |  Preview | then choose your xml-file
    Then you have to got to the textobject | mark this | go to "Object" | "Binding"
    Here you can bind the field: $record.PRINTJOB.PMSDATA.ObjectNameXML (You have to adapt this in the path in your XML to the field in the XML)
    If you make a preview you will see the value of the XML in your textfield.
    You can also script the databinding. You have to go to the initalize.event and write:
    this.rawValue = xfa.record.PathToYourFieldInYourXML.ObjectNameXML.value;
    Hope it will helps you,
    Mandy

  • Using external XML document to update / change text fields inside of published captivate output.

    Hello
    I currently have a project where the client has requested to have the ability to update the text fields inside the project at a later date.
    This is due to the nature of the content changing rather rapidly, i would like to set this up so the client can manage this them selfs.
    What would the best way to do this be?
    I'm thinking XML, an external XML sheet were by Captivate imports the text from this XML sheet and then displays it within the specific text fields contained within the captivate output.
    This way the client would just update the external XML document(cut and paste the text in) and then the text would be dynamically updated in the published Captivate document.
    any help would be amazing !
    Thanks in advance
    Nick

    Hi Lieve
    But isn't this thread more about an end user having an ability to change text after the Captivate has been published and delivered? I could see where that might be useful if making changes then publishing to create a new output. But I'm interpreting that the situation here is that a Captivate project has been published and delivered, and some mechanism is desired that allows the recipient to modify an external XML file to influence changes in the already compiled Captivate output.
    Cheers... Rick

  • Read external XML stream into a field

    Hello all -
    I have been trying to get this working for a week now and still no luck. It seems like it's possible to find field values to external XML file, but Acrobat tries to parse the XML and be smart about it.
    I have a custom form logic that needs to read an XML file from a URL and assign the stream to a form field that can later be accessed via FormField.rawValue.
    The XML is rather basic - something like
    1
    2
    3
    4
    I tried the xfa.connectionSet to no avail. I am now trying to bring in that value with SOAP, but have been reading that it might give prompts in Reader.
    Can I simply read an external URL and assign the server response to a variable or a field ?
    My apologies for the super-basic question!!
    Thanks in advance!
    Frank

    I get the following error, probably means the file referenced is not available...
    SQL Error: ORA-22806: not an object or REF
    22806. 00000 - "not an object or REF"
    *Cause:    An attempt was made to extract an attribute from an item that is
    neither an object nor a REF.
    *Action:   Use an object type or REF type item and retry the operation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • _blank link in external xml generates pop up blocker

    I have links that are read into an html formatted text field
    from an external xml file. My problem is that I would like the link
    to load a new browser window when clicked using _blank - but that
    generates pop up blocker in firefox.
    I've tried passing the link to a function in flash to do the
    same thing , but no luck with that.
    The links all work OK (as soon as I put _self in it performs
    as expected)
    Does anyone know a solution to this problem
    thanks

    you could try using javascript to open the popup and see if
    your popup blocker is less sensitive about that. you would use the
    externalinterface class in flash to communicate between
    actionscript and javascript.

  • Bulleted Text in External XML w/CSS

    I have a TexatArea component which is loading text from an
    external XML file into a Flash 8 SWF. The text is being styled with
    a CSS (which is working fine in every other respect on this text
    (font, color, margins, etc.). I have created a custom .class in the
    CSS called <bulletText> and have assigned my text the bullet
    properties by taggeing those items in the XML with the
    <bulletText> tag.
    I am guessing one of two problems: (1) I am not using the
    right code in the CSS to make text appear with "bullets" or the
    TextArea component in Flash will not display CSS formatted XML?
    I created the CSS in GoLive CS2 and the Inspector in GoLive
    shows the bulleted example text to be correct based on my
    formatting of the CSS. Am I missing something?

    Hi
    You are calling the displayDates() at creationcomplete() of DateChooser. But at that time your xImages(xml) is null because it is not initialized and the HttpServices is not returned the result.
    So initialize your xml and call displayDates() after httpservices returns the result.
    Hope this helps
    Regards
    Rush-me

  • External XML data for more charts in a single page

    I am using a plot chart which gets data from an external XML file through <mx:HTTPService>
    I create another chart in the same page which also gets data from another XML file.
    How can i provide data to this chart through the HTTP Service ?
    - Sen

    I hope i've understood well what you want to do.
    Easily you could define 2 different httpservice with different url and bind them to chart.
    hope this help!
    bye!

  • External XML files in Flash iPhone apps

    Hi everyone. I know that apple has loosened up on what is and isn't allowed on the app store these days, such as flash. I was thinking of writing an app that would call upon a web based xml file to call up pictures to display in the iPhone.
    I know Apple doesn't allow apps that call upon external scripts but it's not an executable script, its a list of images and where they are stored. Does anybody have any input on whether Apple may have a problem with this?
    Cheers

    don't know.
    I'm not sure of the differences between actionscript in flash and javascript in the browser but you could call for an XML file to be sent as json data from the script if accessing external XML files directly is not allowed.
    Problem is that XML can contain anything you want it too... it could contain a script itself.

  • Testing SWF with external XML file, strange problem.

    Hi!
    My problem started after migration to 2.01. But I think it's
    not version problem.
    I have old project which uses external XML files ("
    http://www.mydomain.com/myxml.xml").
    When I teste project in "bin" folder it works perfect and SWF
    import data from XML.
    I created new Flex project and copied all scripts from old
    one. And my new app can't read external XML!!! (tested in "bin"
    folder):
    *** Security Sandbox Violation ***
    Connection to xmlURL halted - not permitted from
    file:///C:/myproject/bin/myproject-debug.swf
    BUT when I copy my new SWF to the old project "bin" folder
    then it WORKS! Strange!
    I found in Help "The Global Flash Player Trust directory" and
    I checked files: "flexbuilder.cfg", "flexbuilder.fbr" there are all
    my project paths (old and new).
    Thanks for help!
    newman

    You should your homework with Google and other search engines
    better ;)
    http://www.robrusher.com/1/2006/08/Flex-2-Error-with-XML.cfm

  • Loading external XML data into XMLObject

    hey all,
    i've been working on a basic fl2 app that generates a list of
    posts from an external XML file located on my server
    (www.omedia.mobi/forum.xml) The swf file is also located there in
    the same directory .(crime.swf).
    The app runs fine in the emulator, both when i tried to load
    the data locally on my mac, and when i load it from the server. But
    when i put the swf file on my N70, it fails to load the data.
    I'm banging my head against a wall trying to get this sorted.
    has anyone had any similar experiences?
    any help would be apprieciated...
    many thanks
    Matt

    Matt–
    Dumb question, are you 100% sure that your phone is making
    any connection to the internet? Does your phone read a name/value
    variable from an external file?
    I just build a file to test this (It won't work
    online—it will only work on a phone.):
    http://punchkickinteractive.com/development/mobileConnectionTest/mobileConnection.swf
    The FLA is also up:
    http://punchkickinteractive.com/development/mobileConnectionTest/mobileConnection.fla
    Also, you can check out:
    http://www.adobe.com/devnet/devices/articles/flashlite11_rss.html
    quote:
    //Some of the code from the FLA:
    canLoad = _capLoadData;
    if (canLoad == 1) {
    urlPath = "
    http://punchkickinteractive.com/development/mobileConnectionTest/mobileConnection.txt";
    loadVariables(urlPath, _root);
    } else {
    connection = "client does not support loading dynamic data";
    // where "connection" is the variable name of the text field
    If the connection is present, then I think I know what is
    wrong. Let me know.

Maybe you are looking for

  • Windows 8 Laptop Boot Issue (and other related problems)

    My Toshiba Satellite S855D-S5148 laptop was bought about a month ago, but it's been giving me issues for the last week. The most significant one was a boot issue, where out of nowhere, the PC would not start, and after a hard restart, I received an e

  • Idoc-xi-jms scenario

    Hi I want sender service name in the receiver payload header. How should we go abt ? I am talking abt the scenario like idoc-xi-jms. thanks kumar

  • Crippling, horrifying system problems

    A couple weeks ago, while using my Power Mac G4 (10.3.9), I noticed open applications becoming unexpectedly unresponsive. Attempts to force quit would result in everything from the Finder to the Dock becoming unresponsive. The color wheel spins perpe

  • Problem with Stacked Bar

    I need to show details about messages transactions. I decided to use a Stacked Bar chart to view present number of trans' of different types by their date. I use this query in all the series: select null link, sd label, c value from (select trunc(STA

  • NetMsmqActivator and NetPipeActivator Services

    Hi fellow Server Managers I have searched for endless hours about this, and all i find is developer related articles. The two services mentioned in the subject has stopped, and when i try to start them manually, Visual Studio wants to debug them. I a