XML won't load - Help

Hi All
I'm trying to load an xmal document with a structure of :
<aboutus>
<person>
<name></name>
<title></title>
<description></description>
<contact>
<telephone></telephone>
<mobile></mobile>
<email></email>
</contact>
</person>
</aboutus>
And this is my code so far
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="860" height="560" label="About Us" show="resetState(event)"
initialize="myAboutUs.send()">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
[Bindable]
private var aboutUsData:XMLList = new XMLList;
private function aboutUsResultHandler(event:ResultEvent) :
void {
aboutUsData = event.result.aboutus.person;
private function resetState(event:Event) : void {
currentState = '';
]]>
</mx:Script>
<mx:HTTPService id="myAboutUs" url="xml/aboutus.xml"
result="aboutUsResultHandler(event)" resultFormat="e4x" />
<!-- BASE STATE -->
<mx:VBox id="vbAbout1" x="5" y="5" width="850" height="50"
horizontalAlign="center" verticalAlign="middle">
<mx:LinkButton label="Who We Are" id="lbAbout"
click="this.currentState = 'cvAboutUs'"/>
</mx:VBox>
<mx:VBox id="vbAbout2" x="5" y="55" width="850"
height="500" horizontalAlign="center" verticalAlign="middle">
<mx:Text id="txtAboutUs"
width="750" height="400"
textAlign="center"
color="#000080"
enabled="true">
</mx:Text>
</mx:VBox>
<!-- CHILD STATES -->
<mx:states>
<mx:State name="cvAboutUs">
<mx:RemoveChild target="{txtAboutUs}"/>
<mx:RemoveChild target="{vbAbout2}"/>
<mx:SetProperty target="{lbAbout}" name="label"
value="Back"/>
<mx:SetEventHandler target="{lbAbout}" name="click"
handler="this.currentState = ''"/>
<mx:AddChild position="lastChild">
<mx:HBox x="5" y="55" width="850" height="500"
id="aboutUsMain" horizontalGap="50">
<mx:VBox width="400" height="500" id="aboutUsImage"
horizontalAlign="center" verticalAlign="middle">
<mx:ComboBox width="200" height="20"
dataProvider="{aboutUsData}" labelField="name" />
<mx:Spacer width="200" height="20"/>
<mx:Image id="auPic" width="200" height="200" />
<mx:Label id="auName" text="Name" width="200"
height="20"/>
<mx:Label id="auTitle" text="Job Title" width="200"
height="20"/>
<mx:Label id="auEmail" text="Email Address" width="200"
height="20"/>
</mx:VBox>
<mx:VBox width="400" height="500" id="aboutUsDetail"
horizontalAlign="center" verticalAlign="middle">
<mx:Text text="Who We Are" width="300" height="400"
id="aboutUsText"/>
</mx:VBox>
</mx:HBox>
</mx:AddChild>
</mx:State>
</mx:states>
</mx:Canvas>
What i'm trying to do is to load the xml file and display the
relevant information in the label boxs and text boxes.
Alternatively i'd like to use a dynamic link button instead
of the combobox.
Any suggestions .... ?
Many thanks
Whitetimer

"Francisc Romano" <[email protected]> wrote
in message
news:gh40j6$cj6$[email protected]..
> Aha, ok!
> Your problem is the fact that you address the XML
remotely...
> It is a security problem:
> If the XML is on your server reference it relatively to
the swf file. e.g.
> "assets/burners.xml" or if in the same folder
"burners.xml".
>
> If however it is on a different server, you need to
workout the security
> issues.
It's actually a sandbox issue. But close...

Similar Messages

  • IMovie 09 projects won't load HELP!

    Hiya, i have searched all over theplace to try to find out why my projects wont load in IM 09, to no avail.
    The below link seems to be the bestbit of information i have worked on.
    I have no 3rd party plug in's in thequicktime folder.
    I have deleted the last few moviesimported (despite the fact these worked and were later exported)
    iMovie will load on another acct thati created, but wont be able to work with whats imported into this acct unless ire upload?
    iMovie does start up, i see all myclips i have imported, but none of my projects won't load.
    I do have a fair bit of footagethere, but it was working fine when i had a lot more in there (before deletingafter i had used it).
    https://discussions.apple.com/thread/1906531?threadID=1906531&tstart=0

    I have had the same problem and found that if I opend up iPhoto where the videos were placed from, it cleared up the problem. Crazy, huh? Plus, you have to make sure that the iPhoto account is opened to the correct one...this is done by Option Clicking on iPhoto and choosing which account you have the active videos in.

  • Large FCPX XML won't load in Logic Pro X?

    I have a feature film edited in Final Cut Pro X and when I export the XML and try to load it in Logic Pro X 10.0.6 nothing happens.  If I have a more basic XML, it works fine.  Is this a bug or is there some sort of limit in Logic that I don't know about?  Thanks!

    Hi JimHarmon,
    Did you get to chance to manage it. I still could not find out what it is. I deleted LPX and reinstall it , still it does not work.
    I reset the preferences on both application and nothing happens.
    please let me know if you find out any solution. and I will do the same.
    Thanks

  • Xml won't load in player

    i made a flash music player for my server
    the player works perfectly and loads the xml data when viewed
    on my computer
    and even when it has been uploaded to the server IF i view it
    by itself
    but once i try and view my HTML file, all of the information
    for the songs
    comes up as undefined, so none of the songs will play
    does anyone know what might be wrong or do you need more
    information?
    thanks

    The default url inside the Flash movie is the url of the
    HTML. So if you are using the relative path of the swf you will
    find a problem.
    Test the _url property for AS 2 F8
    Or just hard code the
    http://your.domain.com/pathtoXML/thedata.xml
    into the Flash movie to debug.
    The other issue is if the XML file is on another
    domain.

  • XML won't load from server, loads locally

    I can't seem to get my project to load my XML file when I
    place everything on the server. It works fine when i preview it
    using the Flash Player. But when it's loaded into an HTML page on
    the server I get nothing. I'm using jquery to dynamically insert
    the flash object into the page (In development
    here.). The flash object is
    actually several folders deeper than the page calling it, and the
    XML file is being referenced at the same level as the flash file
    itself. I also went through the trouble of putting a
    crossdomain.xml file on the server (plu.edu) but that didn't seem
    to fix anything.
    Here's my
    zipped
    project.
    Where am I doing wrong?
    Thanks.

    Thanks to everyone who responded to this post. For anyone
    else reading this post trying to get XML to load correctly, my
    problem was pertaining to the path of the XML file. To remedy this
    issue I set a default path that was relative to the .swf file. Then
    I used flashvars in the javascript to pass the location of the XML
    file. This allows me to preview my flex application locally and in
    a production environment when it's inserted into a page. I'll post
    my flex and javascript code for anyone interested. I'm using jquery
    and the flash plugin.
    Thanks.

  • System won't load (help needed)

    Hello!
    I have a PIII 600 computer which I don't really need, but I decided to make any use of it with Archlinux. The problem is that even before I cleared my hard drive, the only thing I had been able to load on it was Windows ME in a safe mode (I don't know if that's the correct name for this mode, as I was using Polish language version).
    But I managed to run the Arch installer using acpi=off option. Now, when I turn the computer on, I can see the Grub menu, but no matter what I choose, the system stops loading and just does nothing. I had the same sympthom when I used the installer without acpi=off option (or with any other).
    Can anybody tell me, what kind of problem (I guess it's my hardware) do I have? Is there a way to run the system I have installed right now, maybe using command line in Grub?
    Some additional info: I have 128MB SDRAM DIMM (Windows was saying it was 126, but my bios finds more than 131 000 bytes), SoundBlaster 128, nVidia Riva TNT2, 17-inch LCD working at 1280x1024, a PCI wifi card, a radio ISA card. I can't run Archie nor memtest.
    Thanks in advance for any ideas.

    Wiki is your friend - http://wiki.archlinux.org/index.php/Main_Page
    I do not mean to be mean, it's simply inefficient to try and answer all the questions you _will_ have while trying to configure Arch to your liking, especially since Wiki covers most of them, and covers them well.  If you come across a problem that's not covered in the wiki post here and we will definitely try and help you

  • Iphoto opens but won't load help please

    i have 13" inch macbok pro mac osx lion. my iphoto will open but when it does not load it just keeps spinning please help

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Apps won't load, help!

    I tried loading programs such as "background" with the app store on my iphone, however whenever it asks for my account information: username and password (which I assume is my apple id and password), I would key that in but it would say "authorization failed, please connect to itunes", but I'm already connected to itunes? What should I do? Please help!

    Can't connect to the iTunes Store

  • IMac (21.5-inch Mid 2010) When booting gets stuck and spins. Won't load HELP! SOS!

    Apologies to those wiser in dealing with this. I have Apple everything but am totally stumped with my iMac (21.5-inch Mid 2010)  booting up and then not doing anything except sitting there with the apple symbol on a white screen with the grey mini-circular slashed like a clock little spinner going on and on and on. It seems to be freezing up  and locked somehow.
    The last time it did boot... I was attempting to install Mavericks. Can anyone please possibly walk me through a few suggestions?
    Thank you very much! 

    Once you've booted into Recovery Mode, see if Disk Utility needs to repair the HD. From the four options choose Disk Utility, select Macintosh HD and click on Repair Disk. If anything gets changed click on repair disk again until you get a clean pass. Once done restart as normal from the Apple menu.
    If you're still having have a look at this link for suggestions:
    http://support.apple.com/kb/TS2570?viewlocale=en_US&locale=en_US

  • My photos won't "load" - it has worked fine for at least two years, but suddenly now when I plug in the chip, iPhoto opens up as usual, but the window just says "loading photos",  and the little wheel keeps on spinning - can anyone help me?? I am new here

    my photos won't "load" - it has worked fine for at least two years, but suddenly now when I plug in the chip, iPhoto opens up as usual, but the window just says "loading photos",  and the little wheel keeps on spinning - can anyone help me?? I am new here. I need to get it working again because we're about to go on a trip!

    What version of iPhoto? Assuming 09 or later:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Flash won't load xml generated from coldfusion

    I have a swf file that used to load in xml files. It worked
    perfectly fine. However, I then realized it would make more sense
    to have the flash load a cfm file that creates xml on the fly.
    My cfm page is creating perfectly fine xml but the flash
    won't load it. WHY!?
    Here is the path to my xml...
    http://www.flyfishingcommunity.com/newsite/widgets/reports/pictures_widget_fly_fishing.cfm
    In my flash file I load the cfm the way I used to load the
    xml and its not working.

    mikejjr wrote:
    > Ever since I loaded the new Internet Explorer, 7.0, my
    FLASH won't load. When
    > I go to a site requiring FLASH, it tells me that the
    site requires FLASH, and I
    > need to downloaded it from Macromedia... I have download
    it twice, and still
    > NO luck.
    >
    > Any suggestions? Can anyone help?
    adobe.com/support/flash
    look for links for player installation troubleshooting.
    Also make sure that anti spy ware / ad ware and other that
    type
    of tools are not set to block flash content.
    Some of these tools do that by default
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Session won't load - ERROR MESSAGE- Please help decipher

    For no apparent reason, when I opened my session I got an Adobe ERROR MESSAGE. Then the session won't load and Audition crashes.
    Here is the message:
    (A big Red X appears in the dialog window)
    Audition has encountered an error.
    [\Monk\main\common\PremiereShell\Src\PlayerFactory.cpp-379]
    Can anyone think of a way I can fix this situation and recover my session? Do you think a reinstall of Audition might help? Other sessions open fine. This session was particularly important because I had been working on it for weeks and this was the final finished version. It had been like pulling teeth to get this one done, then when I finally did get it done...this happened. So yuck!! Fortunately I had done a mixdown before the crash, small blessing. But I need the session, of course.
    Thanks for any ideas at all.

    ozworldz wrote:
    Very good.
    right...because the xml is basically a delimited text file. This kind of file would probably rarely ever get corrupted.
    ROFLMAO! Who told you that?
    It'a a FILE, for heavens' sake. And to any computer, all files are essentially the same thing - a string of bytes. What makes a file vulnerable or less vulnerable is how it's handled by whatever program is using it, or to a lesser extent the storage mechanism. And when it comes to .xml files and Adobe, they don't have a particularly good track record with some of them - notably the ones they use for system settings and presets.
    But I have to say that since Adobe thoughtfully gave us the option to save session data as .xml files, I haven't bothered to save them as anything else - simply because as Suite Spot says, you stand some sort of microscopic chance of being able to rescue the data when all else fails. I am fortunate - most of the stuff I do in MV doesn't use a load of tracks and absolutely no effects (live acoustic music editing), but even though the files aren't that complex, I still back them up regularly during processing because, as they regularly get rewritten and updated, they most certainly are vulnerable.

  • Help my iPod won't let me download apps... I'll put my password in then it takes me to the app but then is just goes away then I do it again an it won't load or it will just go away again plz help I want to get apps

    Help my iPod won't let me download apps... I'll put my password in then it takes me to the app but then is just goes away then I do it again an it won't load or it will just go away again plz help I want to get apps

    You said you updated yur 1G iPod to 4.2.1. A 1G can only go to 3.1.3 and thus you must have jailbroken it to get to 4.2.1 and that can cause problems.
    ArealDJ wrote:
    I have the same problem.. apps won't download and won't open. I have a 1st Gen ipod touch and recently upgraded my MacBook Pro (2012) and as soon as I upgraded the iPod Touch to 4.2.1, this happened. I restored to factory defaults and still cannot dl and open apps. Any way to diagnose this problem? Apple tech charges $29.99 for out of warranty products and if I am reluctant to pay with them telling me its simply a hardware problem.

  • XML file not loading...HELP!

    Hello,
    I'm working on a Magento template that includes a flashfile that loads a XML file.
    I'm getting the following error:
    XML FAILED TO LOAD! (undefinedtfile_main.xml)
    Fout bij openen van URL 'file:////Volumes/Macintosh%20HD/Users/ralreclame/Desktop/undefinedtf ile_main.xml'
    flash folder looks like this:
    I also tried placing the xml-file outside the xml_folder. Did not work either.
    code in the first frame looks like this:
    Stage.align = "MC";
    Stage.scaleMode = "noScale";
    _root.gall = url="tfile";
    _root.cacheKiller = "true";
    _root.road = _root.xmlUrl;
    _root.r_p = _root.imagesFolder;
    import gs.dataTransfer.XMLParser;
    function onFinish(success_boolean, results_obj, xml) {
        //This fhunction gets called as soon as the XML loads and gets parsed.
        if (success_boolean) {
            trace(1);
            play();
    stop();
    var parsed_obj = {};
    //We'll use this to hold the parsed xml object (once the XML loads and gets parsed successfully).
    var unCash = new Date().getTime();
    if (_root.cacheKiller == "true") {
        fileToLoad = _root.road+url+"_main.xml?cacheKiller="+unCash;
        fileToLoad = _root.road+url+"_main.xml";
    } else {
        fileToLoad = _root.road+url+"_main.xml";
    XMLParser.load(fileToLoad, onFinish, parsed_obj);
    Hopefully anyone can help me out here!
    grtz Roel

    Thanx for the reply!  my flash folder looks like this:
    and i inserted the value this way >>
    Stage.align = "MC";
    Stage.scaleMode = "noScale";
    _root.gall = url="tfile";
    _root.cacheKiller = "true";
    _root.road = _root.xmlUrl;
    _root.r_p = _root.imagesFolder;
    _root.xmlUrl; = "xml_folder/"            <<
    import gs.dataTransfer.XMLParser;
    function onFinish(success_boolean, results_obj, xml) {
        //This fhunction gets called as soon as the XML loads and gets parsed.
        if (success_boolean) {
            trace(1);
            play();
    stop();
    var parsed_obj = {};
    //We'll use this to hold the parsed xml object (once the XML loads and gets parsed successfully).
    var unCash = new Date().getTime();
    if (_root.cacheKiller == "true") {
        fileToLoad = _root.road+url+"_main.xml?cacheKiller="+unCash;
        fileToLoad = _root.road+url+"_main.xml";
    } else {
        fileToLoad = _root.road+url+"_main.xml";
    XMLParser.load(fileToLoad, onFinish, parsed_obj);
    The movie now shows in the preview so no more load error. One step further.
    But the links from the XML file are stil not working. When i preview the movie in flash i get "undefined" 5 times (i got 5 links in the xml file) It looks like this>>>
    any idea where that comes from??
    Thanks Again.
    -Roel

  • ITunes, app store, iBooks store, etc won't load and I can't figure out why. I tried rebooting and it didn't help. Everything else works fine. Help please?

    iTunes, app store , iBooks store, etc won't load and I don't know why. Everything else works fine, and I've rebooted it. The problem is still there and I know I have a good Internet connection. Help please?

    Have you tried disconnecting and re-connecting to your network ?. And when you say rebooted do you mean a reset ? If not then try that : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    You could also try closing those apps completely. From the home screen (i.e. not with any of those apps 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the iTunes, App Store and iBooks apps to close them, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.

Maybe you are looking for