Can't get urlLoader to load a local file

In FlexBuilder, I'm trying to read an xml file defined in the project, into the program using urlLoader, as shown below.
I get a runtime error saying:  (USSC is the project name)
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: data/paralog.xml
    at USSC()[C:\Documents and Settings\Admin\My Documents\Flex Builder 3\USSC\src\USSC.mxml:8]
    at _USSC_mx_managers_SystemManager/create()
    at mx.managers::SystemManager/initializeTopLevelWindow()[C:\autobuild\3.2.0\frameworks\proje cts\framework\src\mx\managers\SystemManager.as:3188]
    at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[C:\autobuild\3.2.0\framework s\projects\framework\src\mx\managers\SystemManager.as:3064]
    at mx.managers::SystemManager/docFrameListener()[C:\autobuild\3.2.0\frameworks\projects\fram ework\src\mx\managers\SystemManager.as:2916]
Here's the program:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    applicationComplete="loadXML()" >
<mx:Script>
     <![CDATA[
         var xmlData:XML;
        var urlLoader = new URLLoader();
private function loadXML():void
    {    urlLoader.addEventListener(Event.COMPLETE,onXMLLoaded);
        urlLoader.load(new  URLRequest("data/paralog.xml"));
function onXMLLoaded(e:Event):void{
       xmlData =  new XML(e.target.data);
     ]]>
</mx:Script>
    <mx:Panel title="{xmlData.title.toString()}" height="75%" width="75%" layout="vertical"
        horizontalAlign="center" status="status area" >
    <mx:TextArea width="50%"
        htmlText="{xmlData.detail.docket.toString()
        + '&lt;br&gt;' + xmlData.detail.date.toString()}"
        />
    <mx:VBox width="100%" height="50%">
         <mx:TextArea height="100%" width="50%"
            editable="false"
                    text="{'Question:' + xmlData.issue.(@id=='i1').question.toString()}"/>
    <mx:HBox width="100%" height="50%">
         <mx:TextArea height="100%" width="50%"
            editable="false"
                    text="{xmlData.*.claim.(@id=='i1Y').statement.toString()}"/>
         <mx:TextArea height="100%" width="50%"
            editable="false"
                    text="{xmlData.*.claim.(@id=='i1N1').statement.toString()}"/>
    </mx:HBox>
    </mx:VBox>
     </mx:Panel>  
</mx:Application>
Is my error obvious?
Harvey

Michael:
     Right! I had to prepend a ../ to the url.
And a [Bindable] to variable, and IT Works!
And, all this was the Easy part! <G>
Thanks!

Similar Messages

  • How can I get firefox to open a local file on Windows 8.1via File:open?

    I am trying to open a file from the desktop for viewing as a webpage. It is edited in MS Word. When I open the file it just shows the the text of the file, which is html code, it does not run the file as a webpage. How do I get the file to run as a webpage? Thank you.

    Make sure that the file has the .html file extension.
    That should be sufficient.
    Windows hides some file extensions by default.
    Among them are .html and .ini and .js and .txt, so you may only see file name without file extension.
    You can see the real file type (file extension) in the properties of the file via the right-click context menu in Windows Explorer.

  • I have just installed Captivate 7 but I can't get Help to load, any ideas?

    I have just installed Captivate 7 but I can't get Help to load, any ideas?

    Hi hazelplt,
    When you say you can't load does that mean Captivate does not launch?
    Try launching the application as 'Administrator' and check.
    You might also want to check by launching it in 'compatibility mode' and see.
    In case you still face issues, try resetting Captivate preferences and then check by launching the application.
    To reset the preferences, please follow the steps below :
    Close Adobe Captivate.
    Locate the preference folder:
    Windows Vista and Windows 7: C:\Users\[user name]\AppData\Local\Adobe\Adobe Captivate 7 folder
    Rename the Captivate folder.
    Restart Adobe Captivate. A new folder is automatically created.

  • How can I get a reference to the Local interface of a EJB 3 session?

    Hi,
    How can I get a reference to the Local interface of a EJB 3 session?
    My session implements both the local and remote interfaces, so in my client, when I look up the remote interface using the following code, I did get a reference
              processor = (IItemProcessorRemote)initialContext.lookup(IItemProcessorRemote.class.getName());but if I also look up the local interface in th eclient using this:
    processorLocal =(IItemProcessor)initialContext.lookup(IItemProcessor.class.getName());I got errors like the following, do you know why? Thanks a lot!
    Exception in thread "main" javax.naming.NameNotFoundException: sessions.IItemProcessor not found
         at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:203)
         at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:175)
         at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
         at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:116)
         at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
         at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
         at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)

    BTW, findItemByTitle(String title) is a business method in my ItemProcessor session bean.
    public String findItemByTitle(String title) {
              AuctionItem item;
              String result = null;
              try {
                   Query query = entityManager
                             .createNativeQuery("SELECT i from AuctionItem i WHERE i.title LIKE : aTitle");
                   query.setParameter("aTitle", title);
                   item = (AuctionItem) query.getSingleResult();
                   result = item.toString();
              } catch (EntityNotFoundException notFound) {
              } catch (NonUniqueResultException nonUnique) {
              return result;
         }

  • The Apps panel of my Creative Cloud does not load. How can I get it to load?

    I recently downloaded Creative Cloud to try Dreamweaver, however, the Apps panel of my Creative Cloud does not load.  I've tried restarting the laptop, opening and closing the application, etc. How can I get it to load? I use a MacBook Pro OS X Version 10.9.5.

    Computer died need code can you please post a screen shot of the error message.  The current released version is 1.8.0.447.  The release notes for the Creative Cloud Desktop application can be found at Creative Cloud Help | Creative Cloud app for desktop | Release Notes.

  • Can't get X11 to load, hard crashes with Geforce 8200M

    I can't get Xwindows to load on a new laptop I recently got. Ubuntu Live 64bit works fine, even can install the NVIDIA drivers and get 3D support on it (tested this before I purchased the laptop). So in Arch Linux (64bit) I downloaded the main NVIDIA driver package, module loads fine. When I try to start Xwindows, I get a "bus error" as regular user. When I try root, my machine crashes hard (can't even toggle CAPS lock). I can't even load Xwindows with the VESA driver, it complains about MTRR not matching correctly.
    Specs on the machine can be found here: http://h10025.www1.hp.com/ewfrf/wc/docu … ct=3860070
    Any help would be greatly appreciated. I also tried the 190 beta drivers, same problems occur. I can get any log files if needed later, I don't have immediate access to the machine.
    Thank you in advance,

    scriptmunkee wrote:Not sure if my issue is the same as yours, but I updated to night and had version 185.18.31-1 installed with kernel 2.6.30.4-1. That combination didn't allow Xorg to start properly. I don't get an error at all. I get a failure or a halt when the Nvidia driver attempts to replace the ACPI hotkey events
    Are you able to load it properly using vesa of nv drivers? I can't seem to get mine to load with any driver- it always crashes hard.

  • Can't get FCKeditorAPI to load to validate HTML Editor contents

    I have an HTML Editor item on my page and wanted to quickly check the length of the text in the editor before submitting the page. It should be possible to get the contents of the HTML Editor using the FCKeditorAPI, but I can't get it to load. I'm doing this by putting basically this in the HTML header:
    <script type="text/javascript">
    function checkLength() {
    var oEditor = FCKeditorAPI.GetInstance('MY_EDITOR');
    alert(oEditor.GetXHTML.length);
    </script>
    Then calling the function when the Save button is clicked. I'm only geting "FCKeditorAPI is not defined" errors, however.

    Hi,
    I have the same problem, because I want to check the number of characters in the editor field before the values are stored.
    And when I tried to get the value of the fckeditor field with document.getElementById(XXX).value; I don`t get the actual value.
    So I have to get the value through the instance of the fckeditor.
    Thanks for your help,
    Tim

  • How can I get Pandora to load on my Ipod Touch

    How can I get Pandora to load on my IPod Touch?

    You need a 3G or later iPod The 2G can only go to 4.2.1
    Requirements: Compatible with iPhone, iPod touch, and iPad. Requires iOS 4.3 or later
    https://itunes.apple.com/us/app/id404588425?mt=8

  • Can't get "Mail" to load a group

    Can't get "Mail" to load a "Contact Group." Group appears normal in "Contact" List. Used to work properly using OSX "Lion." Have had problems since I installed ODSX Maverick.

    Michael:
         Right! I had to prepend a ../ to the url.
    And a [Bindable] to variable, and IT Works!
    And, all this was the Easy part! <G>
    Thanks!

  • Can't get apps to load or update on iphone 4s.

    Can't get apps to load or update on iphone 4s.

    Unable to Download Application
    screen says "chrome" could not be downloaded at this time

  • I can't get Safari to load period. It quits immediately. According to the troubleshooting, I'm to un-install any third party plug ins. Can anyone tell me what I should be looking for? I don't recall installing anything that wasn't an upgrade.

    I can't get Safari to load period. It quits immediately. According to the troubleshooting, I'm to un-install any third party plug ins. Can anyone tell me what I should be looking for? I don't recall installing anything that wasn't an upgrade.

    Unplug your iBook from the AC power, shut it down and take the main battery out for about fifteen minutes. Then you can put the battery back in, plug the power back in and restart. This should reset the USB and FireWire ports.
    If that doesn't help, you could reset the Power Management Unit. Follow the instructions in Knowledge Base Article #14449 for resetting your PMU.
    You probably should also startup from your Mac OS X install disk and run the Disk Utility to "repair disk" on your hard drive. This will determine if you've got some kind of file directory/software problems with the files on your hard drive.
    I'm not much at decoding kernel panic logs, but this line jumps out:
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.filesystems.udf(1.4.1)@0x28a79000
    Did you have a DVD movie in the drive at the time? DVD movie disks are UDF format, but not much else is.
    -Doug

  • How can I get illustrator to load ( trial version)?

    How can I get illustrator to load ( trial version)?

    z hitt,
    This may be one for this specialized forum (where you may be able find the answer from previous threads),
    http://forums.adobe.com/community/download_install_setup
    or for Customer Care (tick I Still Need Help and hope for an agent available for a chat),
    http://helpx.adobe.com/contact.html?product=illustrator&topic=downloading-installing-and-s etting-up

  • I can not get safari to load anything.

    I can not get safari to load. Have already cleared the cache (three different ways) and reset safari. I'm not running off a router and when I look at my connection in 'network' it says my connection is fine. I don't know what else to do.

    What exactly happens when you try to load a page? How are you loading this site?

  • How can I get the font list of local

    Hi, everyone.
    In AS2.0, I can use TextField.getFontList() to return a
    array that include all font family of local.
    However, AS3.0 no longer supports it. How can I get the font
    list of local in AS3.0?
    Thanks

    thanks, I have been found result from adobe livedocs.
    example code following:

  • MP3 Player Auto Starts, How can I get it to load, but not Auto Start

    MP3 Player Auto Starts, How can I get it to load, but not
    Auto Start
    Jeff
    http://www.point1music.com/test

    How do you code it not to stream?
    stopAllSounds();
    stop();
    playlist = new XML();
    playlist.ignoreWhite = true;
    playlist.onLoad = function(success) {
    if (success) {
    _global.songname = [];
    _global.songband = [];
    _global.songfile = [];
    for (var i = 0; i<playlist.firstChild.childNodes.length;
    i++) {
    _global.songname
    = playlist.firstChild.childNodes.attributes.name;
    _global.songfile
    = playlist.firstChild.childNodes.attributes.file;
    trace(songname
    +" "+songfile);
    _root.createEmptyMovieClip("sound_mc", 1);
    _root.sound_mc.sound_obj = new Sound();
    _global.song_nr = random(songfile.length);
    _root.sound_mc.songStarter(songfile[song_nr],
    songname[song_nr]);
    MovieClip.prototype.songStarter = function(file, name) {
    this.sound_obj.loadSound(file, true);
    this.onEnterFrame = function() {
    if (this.sound_obj.position>0) {
    delete this.onEnterFrame;
    this._parent.display_txt.text = name;
    } else {
    this._parent.display_txt.text = "loading...";
    this.sound_obj.onSoundComplete = function() {
    (song_nr == songfiles.length-1) ? _global.song_nr=0 :
    _global.song_nr++;
    _root.sound_mc.songStarter(songfiles[song_nr],
    songname[song_nr]);
    btn_play.onRelease = function() {
    this._parent.sound_mc.songStarter(songfile[song_nr],
    songname[song_nr]);
    btn_stop.onRelease = function() {
    this._parent.sound_mc.sound_obj.stop();
    btn_fw.onRelease = function() {
    (song_nr == songfile.length-1) ? _global.song_nr=0 :
    _global.song_nr++;
    _root.sound_mc.songStarter(songfile[song_nr],
    songname[song_nr]);
    btn_rev.onRelease = function() {
    (song_nr == 0) ? _global.song_nr=songfile.length-1 :
    _global.song_nr--;
    _root.sound_mc.songStarter(songfile[song_nr],
    songname[song_nr]);
    playlist.load("playlist.xml");

Maybe you are looking for

  • Why can't i cut and paste

    Downloaded the new Mountain Lion and now I can't cut and paste. Tried the keyboard shortcuts and the drop down menu with no luck. Also can't accomplish this from right clicking. Any ideas?

  • Restore Time Machine backup to newly-formatted Macintosh HD

    I recently had to erase and re-format my internal start-up drive ("Macintosh HD," formatted GUID Partition Table) while troubleshooting. Turned out it was a failed main logic board, display and display LED backligh, so it was in the Apple Store for 2

  • XI installation Configuration of J2EE engine problem

    Hai, Can any one help regarding installation of XI I installed almost ever thing 1)ABAP CENTRAL INSTANCE 2) ABAP DATABASE INSTANCE 3)  J2EE PLUG IN   AND KNOW J2EE INSTALLED SUCCESSFULLY. AFTER THAT I DONE SOME STEPS AND THEN IN CONIFGTOOL.BAT I GIVE

  • Log file delay

    Is it possible that the log file mechanism in WLS could get so backlogged with messages that it could not log some things? We seem to have some unconfirmed reports of things not making it to the logs. If if is synchronized, this shouldn't ever happen

  • How to play DVD on ipad2

    I am not too computer savvy. Can someone help me into getting to play DVDs on iPad 2 16gb