Xml ioerrors

I am new to loading xml...obviously!
Anyway, I have  buttons that relate to 4 different videos.  I want to click a button and show that video, click another button which should stop the first and play the target.  I put this code together from 2 different tutorials from the classroom in a book, and not quite sure what to change. Its not loading the xml...I think there are 2 conflicting functions  chooseVid and changeVid
my buttons aren't working and I don't see any text on them.
getting this error as well
Error: Error #2078: The name property of a Timeline-placed object cannot be modified.
    at flash.display::DisplayObject/set name()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at flash.display::MovieClip/gotoAndStop()
    at main2_fla::mcdropdowns2_9/video()
What a mess!  Any Ideas?
var currVid:String;
var vidList_XML:XML;
var vidTitle:String;
var count:int = 0;
var vidNum:int = 0;
var xmlReq:URLRequest = new URLRequest("../vidlist.xml");
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(xmlReq);
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
xmlLoader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
function errorHandler(event:IOErrorEvent):void {
           title_txt.text = "XML loading error: " + event;
function xmlLoaded(event:Event):void  {
    vidList_XML = new XML(xmlLoader.data);
    //vidPlayer.source = "media/SK_RAINN.f4v";
    vid1.addEventListener(MouseEvent.CLICK, chooseVid);
    vid2.addEventListener(MouseEvent.CLICK, chooseVid);
    vid3.addEventListener(MouseEvent.CLICK, chooseVid);
    vid4.addEventListener(MouseEvent.CLICK, chooseVid);
    //function to set vids is called after XML loading is complete
    setVids();
function setVids():void {
    for(var i = 0; i < 3; i++) {
        var title_txt:String = vidList_XML.vid[i + 1].name;
        var clipTitle = this["vid" + (i + 1)].name;
        clipTitle.text = title_txt;
        clipTitle = String;
function changeVid(e:VideoEvent):void  {
    var nextVid:String = "media/" + vidList_XML[count].file;
    vidPlayer.source = nextVid;
    vidTitle = vidList_XML[count].name;
    title_txt.text = vidTitle;
    count++;
function chooseVid(e:MouseEvent):void {
    switch (e.currentTarget.name) {
        case "vid1":
        //sets the currVid based on the XML file
        // the songNum variable is based on which button was selected
            vidNum = 0;
            //the songCount variable makes it possible to have more songs in the XML file than buttons on the interface. songCount is incremented when the user clicks the moreSongs button onstage.
            currVid = vidList_XML.vid[vidNum + count].file;
            break;
        case "vid2":
            vidNum = 1;
            currVid = vidList_XML.vid[vidNum + count].file;
            break;
        case "vid3":
            vidNum = 2;
            currVid = vidList_XML.vid[vidNum + count].file;
            break;
        case "vid4":
            vidNum = 3;
            currVid = vidList_XML.vid[vidNum + count].file;
            break;
var format:TextFormat = new TextFormat();
format.font ="Arial Black";
format.color = 0x333333;
format.size = 14;
title_txt.defaultTextFormat = format;  

you have something on-stage whose name you're trying to reassign.
click file/publish settings/flash and tick "permit debugging".   the line number of the offending code will be in the error message.

Similar Messages

  • IOError in IE but not in Firefox (possible crossdomain.xml problem)

    Yesterday, I hopefully debugged a problem that is occuring for our application in IE but not in Firefox.
    It has to do with accessing remote content from a separate domain.
    In every aspect it APPEARS to be a crossdomain.xml issue but the fact that this issue only arrises in IE is what has prompted me to post here.
    We have a solution in the works (bureaucratically speaking) but I want to double check here.
    Our application is on domain "a.domain".
    It access an xml file on "b.domain/xml/".
    And finally (this is the tricky part) it also accesses an xml file at "b.domain/forwardingPath/" which is actually forwarded to "c.domain/xml/".
    The crossdomain.xml is located at "b.domain/crossdomain.xml".
    The request for "b.domain/xml/anXMLFile.xml" works without any problem.
    The request for "b.domain/forwardingPath/anotherXMLFile.xml" succeeds in Firefox but not in IE (remember, the ACTUAL request is forwarded to "c.domain/xml/anotherXMLFile.xml").
    In IE I get an IOError.
    I believe we need an appropriate crossdomain.xml file also located at "c.domain/crossdomain.xml" and have put in that request.  What I want to confirm is whether this understanding is correct.  I am not a server-side person at all.  It's all elves and fairies to me.  And then finally, why the hell is this behavior inconsistent between IE and Firefox?  Is the Firefox version of flash player violating its own security standards?!
    I am cross-posting this at stack overflow.  http://stackoverflow.com/questions/7395931/ioerror-in-ie-but-not-in-firefox-possible-cross domain-xml-problem

    I've pinged our developers about this and here's what they have to say:
    "We did some work for the plugin around redirects andhence the correct behavior on Firefox.
    AFAIK, on IE we don't get notified of the redirect and can't participate in making security decisions during redirect scenarios. This behavior is out of our control.
    There is a workaround documented in the AS3docs here: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/LoaderCont ext.html#checkPolicyFile
    Here is the pertinent paragraph:
    Be careful with checkPolicyFile if you are downloading anobject from a URL that may use server-side HTTP redirects. Policy files arealways retrieved from the corresponding initial URL that you specify inURLRequest.url. If the final object comes from a different URL because of HTTPredirects, then the initially downloaded policy files might not be applicableto the object's final URL, which is the URL that matters in security decisions.If you find yourself in this situation, you can examine the value ofLoaderInfo.url after you have received a ProgressEvent.PROGRESS orEvent.COMPLETE event, which tells you the object's final URL. Then call theSecurity.loadPolicyFile() method with a policy file URL based on the object'sfinal URL. Then poll the value of LoaderInfo.childAllowsParent until it becomes true."
    Chris

  • Error 2032 loading xml from swf

    Hello everyone.
    I have a php site (based on Joomla! CMS). In one php page, there is a <object> element wich loads the Adobe Flex 1.5 swf file that I have developed (Slideshow.swf). This swf file is a slideshow that loads a xml file using a httpservice. The xml file contains the urls to the images to be shown. The error occurs when thw swf file tries to load the xml file, but not always.
    - SITUATION 1: Visiting http://localhost/Slideshow.html or http://localhost/Slideshow.swf
      The html and the swf are the files generated by Adobe Flex builder.
      Navigators: IE 8, Mozila Firefox 3.5.5
       --> Yes, it works!!
    - SITUATION 2: Visiting http://mydomaing.com/folder1/folder2/Slideshow.html or http://mydomaing.com/folder1/folder2/Slideshow.swf
      The html and the swf are the files generated by Adobe Flex builder.
      Navigators:
         IE 8 --> Yes, it works!!
         Mozila Firefox 3.5.5   --> I don't get Error 2032, but the images can't be found. This is another problem...
    - SITUATION 3: Visiting http://mydomain.com
      Navigators: IE 8, Mozila Firefox 3.5.5
      --> No, it doesnt' work!! I get Error 2032!!
      The whole page loads. The swf loads, but when the swf tries to load the xml file, the fault event is throwed. Then I use an Alert.show. I'll give you as much information as I can:
    ERROR MESSAGE (FOR SITUATION 3)
    Message: faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: ./slideshowGallery.xml'
    Name: Error
    Root cause: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
    Error ID: 0
    Fault code: Server.Error.Request
    Fault detail: Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: ./slideshowGallery.xml
    Fault string: HTTP request error
    FLEX CODE
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init();"
    The init method:
    private  
    function init():void{ 
    httpService.send();
    The httpservice element:
    <mx:HTTPServiceid="httpService"url="
    ./slideshowGallery.xml"resultFormat="
    e4x"fault="httpService_fault(event);"
    result="httpService_result(event)"
    />
    I think the handlers don't care. In SITUATION 3, the send() invocation always triggers the fault handler.
    The xml file is in the same folder as the swf file (I use ./slideshowGallery.xml for the url field of the httpservice element).
    This is the html code generated by the php page of my site:
    <div id="ol-flashheader">
    <object type="application/x-shockwave-flash" data="/templates/mx_joofree2/images/header.swf" width="700" height="240">
    <param name="wmode" value="transparent" />
    <param name="movie" value="/templates/mx_joofree2/images/header.swf" />
    </object>
    </div>
    Note: header.swf is my Slideshow.swf renamed.
    Ah, I have also a cross-domain policy file: http://mydomain.com/crossdomain.xml. And the following is curious. The content is:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy
    SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-access-from domain=www.mydomain.com />
      <allow-access-from domain="mydomain.com" />
      <allow-access-from domain="*.mydomain.com" />
    </cross-domain-policy>
    But when i visit http://mydomain.com/crossdomain.xml with IE 8 what i see is:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy
    SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-access-from domain=www.mydomain.com secure="true"/>
      <allow-access-from domain="mydomain.com" secure="true"/>
      <allow-access-from domain="*.mydomain.com" secure="true"/>
    </cross-domain-policy>
    But, when i visit that url with Firefox... correct, It doesn't adds the secure="true" attributes!! jajaja
    Please, I need some advise to solve this problem.
    Thank you very much.
    When I visit the web page (www.mydomain.com) and the swf tries to load

    I haven't found the solution yet, but i can give more info:
    I have modified the crossdomain.xml file to set secure="false". This way, when you view it with Internet Explorer, you can see secure="false" instead of secure="true". But this didn't solve the problem.
    I have read somewhere that avoiding Internet Explorer to cache files, could help. So, I have added the next line to the <header> section of the php page that contains the <object> tag that loads sthe swf file:
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
    This didn't solve the problem.
    Regards.

  • OIM 11g R2 : deployment failed / soaconfigplan.xml not exist

    Hello all,
    I got my Weblogic, OIM, SOA installed. Then I tried to configure my security domain on Weblogic. I created a domain with OAM, then extended to SOA and then when I try to extend it to OIM I got the following error :
    Preparing...
    Extracting Domain Extension Contents...
    Saving the Domain Information...
    Domain Extension Application Failed!
    Domain Location: C:\Oracle\Middleware\user_projects\domains\my_domain
    Reason: null
    Exception:
    Traceback (innermost last):
    File "<iostream>", line 447, in ?
    File "<iostream>", line 95, in copyComposites
    File "<iostream>", line 116, in replacestring
    IOError: No such file or directory: soaconfigplan.xml
    My architecture is development, one server, no cluster.
    Thanks for your input
    JF
    Edited by: 996089 on 25 mars 2013 16:34

    Hello,
    unfortunately I m already up to date on all components :
    - jdk1.7.0_17
    - jrockit-jdk1.6.0_37-R28.2.5-4.1.0
    JF

  • Fxstruts and xml example needed

    Hello,
    I'm using fxstruts to bridge to a new flex app. I am using
    secure http and am using the HTTPService request on the client. The
    request goes through successfully (i.e. a logon). Once that
    succeeds on the server I forward to a page which returns some very
    basic user information (name, etc):
    <%@ page language="java" contentType="text/html;
    charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    import="com.myCompany.actions.HomePageForm"%>
    <%@ taglib uri="/WEB-INF/lib/fxstruts-0.2.jar" prefix="fx"
    %>
    <jsp:useBean id="userInfo"
    class="com.myCompany.actions.HomePageForm"></jsp:useBean>
    <fx:write name="userInfo" type="xml" />
    From stepping via a debugger this fxstruts code is definitely
    being hit. The appropriate attribute, "userInfo" is indeed in the
    request attributes. I've modeled this example after the AMF
    examples provided. However, the client always returns to the fault
    handler on the client with the following error:
    Error: [IOErrorEvent type="ioError" bubbles=false
    cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL:
    https://localhost:9444/fieldsales/web/j_security_check"]. URL:
    https://localhost:9444/fieldsales/web/j_security_check
    As more detail regarding my environment, I'm running
    FlexBuilder 3.0 standalone pointing to an IBM RAD 7.5 localhost
    environment. Everything seems to go well: the logon, the forward to
    the fxstruts jsp but the flex client always seems to get this
    error. Thanks for any help.

    I'm hoping I understand what you're doing... I would probably
    do it all in one frame and just toggle the .visible property of the
    subcategory list after the first one has been clicked, but there's
    no rules about how you do it.
    Without being sure, I think what you may have done is put a
    second "copy" of the category list on another keyframe, which
    replaces the previous instance. By taking away the second copy it
    should work. If that's not the case, then I'm stumped... otherwise
    read on.
    So if you have the category list in its own layer, just have
    it in frame one, on frame 2 of the same layer have a frame but
    not a keyframe. This will mean the instance in frame one is
    still the same one when the playhead gets to frame 2.
    And have the subCategory list on a separate layer, it appears
    on frame 2...
    BTW the .getSelectedItem() method of the list reminds me of
    flash mx... is that the version you're using (curiosity only I
    don't think its relevant, because its obviously working).

  • XML-RPC via HTTPService

    I'm trying to make an XML-RPC call via an HTTPService
    instance. Is that the best way to do it?
    At present I can generate a request to the correct URL, but
    the POST seems to be empty. I think that I don't understand what
    should go in the <mx:request> tag -- I have the literal XML
    which I want sent:
    <mx:HTTPService
    id="loginRequest"
    url="
    http://localhost:8080/rpc/xmlrpc"
    useProxy="false"
    method="POST"
    contentType="application/xml"
    resultFormat="e4x" >
    <mx:request xmlns="" format="xml">
    <methodCall>
    <methodName>confluence1.login</methodName>
    <params>
    <param>
    <value><string>{username.text}</string></value>
    </param>
    <param>
    <value><string>{password.text}</string></value>
    </param>
    </params>
    </methodCall>
    </mx:request>
    </mx:HTTPService>
    Thanks for any advice.
    Tom

    I am having a similar problem, when I tried to read the
    contents of the POST in ASP it is blank.
    i'm sending some xml to asp from flex using the httpservice
    but when I try to parse the xml using the standard Microsoft.XMLDOM
    it always fails to parse the xml regardless of what xml I send.
    This leads me to think that flex is sending the xml incorrectly.
    flex code>
    request = new HTTPService();
    request.url="
    http://127.0.0.1/test.asp";
    request.contentType="application/xml"
    request.method="POST"
    request.resultFormat="text"
    request.request = XML(<test>testingxml</test>);
    request.addEventListener(ResultEvent.RESULT, success);
    request.addEventListener(FaultEvent.FAULT, fault);
    request.send();
    private function success(e:mx.rpc.events.ResultEvent):void {
    trace(e.result);
    private function fault(e:mx.rpc.events.FaultEvent):void {
    trace(e.message);
    my ASP code>
    Dim mydoc
    Set mydoc=Server.CreateObject("Microsoft.XMLDOM")
    mydoc.async=false
    mydoc.load(Request)
    Response.ContentType = "text/xml"
    if mydoc.parseError.errorcode<>0 then
    Response.write "<prob name='fail'>blah</prob>"
    else
    Response.write "<prob name='works'>yay</prob>"
    end if
    The asp script always sends <prob
    name='fail'>blah</prob> back to flex meaning that the xml
    failed to parse correctly. The xml is correct, if I load the same
    xml from a text file it will parse correctly, it only fails when
    the xml is loaded from flex.
    Does anyone know the exact format that the xml is sent in
    using the httpservice.send() method? I tried using Request.Form in
    ASP but it only gives the error printed at the bottom of this post.
    BTW is there anyway to get flex to trace error messages given
    from ASP when a script fails as I can't read them in a browser
    (because the request is sent using POST). When ASP gives an error
    flex either does not respond or gives this error which does not
    help my cause.
    (mx.messaging.messages::ErrorMessage)#0
    body = (Object)#1
    clientId = "DirectHTTPChannel0"
    correlationId = "39CFBD08-1AEC-89B8-EECA-57F7BC922158"
    destination = ""
    extendedData = (null)
    faultCode = "Server.Error.Request"
    faultDetail = "Error: [IOErrorEvent type="ioError"
    bubbles=false cancelable=false eventPhase=2 text="Error #2032:
    Stream Error. URL:
    http://127.0.0.1/test.asp"
    URL:
    http://127.0.0.1/test.asp"
    faultString = "HTTP request error"
    headers = (Object)#2
    messageId = "3AC23FB2-BFB0-AC27-AE06-57F7BCC14B44"
    rootCause = (flash.events::IOErrorEvent)#3
    bubbles = false
    cancelable = false
    currentTarget = (flash.net::URLLoader)#4
    bytesLoaded = 0
    bytesTotal = 0
    data = (null)
    dataFormat = "text"
    eventPhase = 2
    target = (flash.net::URLLoader)#4
    text = "Error #2032: Stream Error. URL:
    http://127.0.0.1/test.asp"
    type = "ioError"
    timestamp = 0
    timeToLive = 0
    EDIT:
    I wrote the value of the ASP request (sent from flex) to a
    text file and I ended up getting blank, in other words no XML. Now
    i'm not even sure if flex is sending any xml.

  • Getting ioerrorevent type ioerror during webservice call from mobile app

    Hi,
    I building a mobile employee directory and for that I am using Flash Builder 4.6/AIR 3.1.0. I am using RESTful web service to get XML results and to display on my mobile application. I am getting the same below error when accessing the webservice from mobile app (Android - Galaxy Tab 7 inch).
    Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error # 2032"] URL: http://adfdevp.alshaya.com:7013/RESTEmployeeDetails-EmployeeDetails-co">http://adfdevp.alshaya.com:7013/RESTEmployeeDetails-EmployeeDetails-co ntext-root/jersey/restlabhttp://adfdevp.alshaya.com:7013/RESTEmployeeDetails-http://adfdevp.alshaya.com:7013/RESTEm ployeeDetails-EmployeeDetails-co ntext-root/jersey/restlabEmployeeDetails-context-root/jersey/restlab
    The same code is working in Flash Builder 4.6. I have checked Network Monitor to "Disabled" before deploying to mobile. What am i doing wrong here? I am pasting my code below-
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" 
       xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView" xmlns:dao="dao.*"
       xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Script>
       <![CDATA[
        import mx.collections.ArrayCollection;
        import mx.collections.IList;
        import mx.collections.XMLListCollection;
        import mx.events.FlexEvent;
        import mx.rpc.events.FaultEvent;
        import mx.rpc.events.ResultEvent;
        import mx.rpc.xml.SimpleXMLDecoder;
        import mx.utils.ArrayUtil;
        import valueObjects.EmployeeDetail; 
        [Bindable] 
        private var myXml:XML;
        [Bindable]
        public var resultCollection:IList;
        public function handleXml(event:ResultEvent):void
         var xmlListCollection:XMLListCollection = new XMLListCollection(event.result.children());
         var xmlListCollectionValues:XMLListCollection = new XMLListCollection(event.result.emp.children());
         var resultArray:Array = xmlListCollection.toArray();
         var resultArrayValues:Array = xmlListCollectionValues.toArray();
         var objEmployeeDetails:EmployeeDetail;
         var resultCollection:ArrayCollection = new ArrayCollection();
         var j:int = 0;
         for(var i:int=0;i<resultArray.length;i++){
          objEmployeeDetails = new EmployeeDetail();
          objEmployeeDetails.brand = resultArrayValues[j];
          objEmployeeDetails.division = resultArrayValues[j+1];
          objEmployeeDetails.email = resultArrayValues[j+2];
          objEmployeeDetails.employee_name = resultArrayValues[j+3];
          objEmployeeDetails.employee_number = resultArrayValues[j+4];
          objEmployeeDetails.grade = resultArrayValues[j+5];
          objEmployeeDetails.mobile = resultArrayValues[j+6];
          objEmployeeDetails.position = resultArrayValues[j+7];
          j = j + 8;
          resultCollection.addItem(objEmployeeDetails);
         list.dataProvider = resultCollection;
         //return resultCollection;
        public function handleFault(event:FaultEvent):void
         //Alert.show(event.fault.faultDetail, "Error");              
        protected function sesrchEmployee():void
         xmlRpc.send();
       ]]>
    </fx:Script>
    <fx:Declarations>
       <dao:EmployeeDAO id="srv"/>
       <mx:HTTPService id="xmlRpc" 
           url="http://adfdevp.alshaya.com:7013/RESTEmployeeDetails-EmployeeDetails-co ntext-root/jersey/restlab"
           result="handleXml(event)" 
           fault="handleFault(event)" 
           resultFormat="e4x" showBusyCursor="true">
        <mx:request xmlns="">
         <data>{key.text}</data>
         <data>{key1.text}</data>
        </mx:request>
       </mx:HTTPService>
    </fx:Declarations>
    <s:navigationContent/>
    <s:titleContent>
       <s:VGroup width="100%">
       <s:HGroup width="100%">
        <s:Label top="40" paddingTop="10" paddingRight="13" height="29" text="Employee Name:"/>
        <s:TextInput id="key" width="559"/> 
       </s:HGroup> 
       <s:HGroup width="100%">
        <s:Label height="30" paddingTop="10" text="Employee Number:"/>
        <s:TextInput id="key1" width="100%"/> 
       </s:HGroup> 
       </s:VGroup> 
    </s:titleContent>
    <s:actionContent>
       <s:Button icon="@Embed('assets/search.png')" click="sesrchEmployee()"/>  
    </s:actionContent> 
    <s:List id="list" top="0" bottom="0" left="0" right="0"  
        change="navigator.pushView(EmployeeDetails, list.selectedItem)">
       <s:itemRenderer>
        <fx:Component>
         <s:IconItemRenderer label="{data.employee_name}"
              messageField="position">
         </s:IconItemRenderer>
        </fx:Component>
       </s:itemRenderer>
    </s:List>
    </s:View>
    Please help me to resolve this issue as soon as possible. Appreciate your quick response in this regard.
    Thanks,
    Murtaza Ghodawala
    Mobile: +965 97180549
    [email protected]

    I am in the same boat, trying to get data from a site with simple Apache Basic Authentication.  I couldnt get the FB/AIR App for iPad to popup the login window. Then, I hard coded in my own login credentials as:
    URLRequestDefaults.setLoginCredentialsForHost("99.99.99.99", "alan", "1234");
    That worked to get logged in at least, and did bring back the data OK.
    Still working on the getting the popup the login window.

  • Access the XML file

    Hi
    I am having to access the XML file names and/or XML data from a shared folder of XI system. I need to access that shared folder and display the information like the name of the file or the data in it on to a portal. Please let me know how do I go about it.
    thank you
    chan

    First of all thank you very much
    I want began to implement it on my computer
    This code
    <object classid = "clsid: d27cdb6e-ae6d-11cf-96b8-444553540000" codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab # version = 9,0,0, 0 "width =" 920 "height =" 218 "id =" banner "align =" middle ">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="true" />
    <param name="movie" value="banner.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" />
           <param name="FlashVars" value="setupXML=1/newSettings.xml&contentXML=1/newContent.xml"/>
         <embed src = "banner.swf" FlashVars = "setupXML = 1/newSettings.xml & contentXML= 1 / newContent.xml" quality = "high" bgcolor = "# ffffff" width = "920" height = "218" name = "banner "align =" middle "
         allowScriptAccess = "sameDomain" allowFullScreen = "true" type = "application / x-shockwave-flash" pluginspage = "http://www.macromedia.com/go/getflashplayer" />
    </ object>
    I added the NEXT code, originally no FlashVars code
    FlashVars = "setupXML = 1/newSettings.xml & contentXML = 1 / newContent.xml"
           <param name="FlashVars" value="setupXML=1/newSettings.xml&contentXML=1/newContent.xml"/>
    Post
    Attempting to launch and connect to Player using URL D: \ 87 \ banner.swf
    [SWF] D: \ 87 \ banner.swf - 518076 bytes after decompression
    IOERROR (maybe the XML file does not exit or have an incorrect name)

  • Display error page using web.xml error-page

    I need to dispaly error page when IOException in thrown. How to do that with web.xml error-page tag?
    start.jsf
    public String doButton1Action() throws IOException{
              String value = getText1().getValue().toString();
              try {
                   File f = new File(value);          
                   InputStream in = new FileInputStream(f);
              } catch (IOException e) {
                   throw new IOException();
              return "success";
         }I have this in web.xml:
         <error-page>
              <exception-type>java.io.IOException</exception-type>
              <location>/ioerror.jsp</location>
         </error-page>

    I tried that earlier but then I get error just printed to console and HTTP 500 - Internal server error -page, bubt not my errorPage.
    [26.1.2007 21:19:16:543 EET] 00000038 jsf           E com.sun.faces.lifecycle.InvokeApplicationPhase execute #{pc_Start.doButton1Action}: javax.faces.el.EvaluationException: java.io.FileNotFoundException: c:\temp\ghostfile.jpg
                                     javax.faces.FacesException: #{pc_Start.doButton1Action}: javax.faces.el.EvaluationException: java.io.FileNotFoundException: c:\temp\ghostfile.jpg
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:79)
         at javax.faces.component.UICommand.broadcast(UICommand.java:312)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:298)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:412)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:77)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
         at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
    Caused by: javax.faces.el.EvaluationException: java.io.FileNotFoundException: c:\temp\ghostfile.jpg
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:131)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:73)
         ... 25 more

  • Load XML from applicationStorageDirectory

    Hi all,
    I want my app to check the applicationStorageDirectory for an xml file and add an empty one if it is not there. Once this is done I want to load that xml file and work with in the app.
    I am trying to use the following method:
    private function getLocalQuizDirectoryXML():void
                        var localQuizDir:File = File.applicationStorageDirectory.resolvePath("quizDir.xml");
                        if(!localQuizDir.exists)
                             var fileStream:FileStream = new FileStream();
                             fileStream.open(localQuizDir, FileMode.WRITE);
                             fileStream.writeUTFBytes('<?xml version="1.0" encoding="UTF-8"?><directory></directory>');
                             fileStream.close();
                        var s:FileStream = new FileStream();
                        s.open(localQuizDir, FileMode.READ);
                        localXML = new XML(s.readUTFBytes(s.bytesAvailable));
                        trace(localXML);
    The first chunk works and the file is created if it does not exist and the xml is good. In the second chunk, if I trace s.readUTFBytes(s.bytesAvailable) I get the string I wrote in before but when I try to turn that to xml (as in the example) I get nothing. I have also tried using a Loader with the nativePath property in the URLRequest but that just throws an IOError.
    Does anyone know how I can load XML from applicationStorageDirectory in to my app so that it is an XML Object rather than a String?
    Thankyou kindly

    Doh!
    I was being incredibly stupid
    My method works fine but the XML I am writing is empty so of course it traces nothing!
    I put some childNodes in and it works fine. I apologise for wasting wasting valuable internet space with my retarded ramblings I was looking at this for so long I couldn't see it anymore and it took me writing it out here to realise my mistake.
    Cheers

  • Crossdomain.xml just not working

    Hello,
    I am having problems moving my application from my Local
    Machine to a DEV/TEST server for testing. My app uses C# Web
    Services for data access and is a Flex front end.
    Here is the error I get (only on the DEV/TEST server):
    A Fault occured contacting the server.
    Fault Message is: HTTP request error
    Faul Code is: Server.Error.Request
    Fault Detail is: Error: [IOErrorEvent type="ioError"
    bubbles=false cancelable=false eventPhase=2 text="Error #2032:
    Stream Error. URL:
    http://DOMAIN/APPLICATION/WebService.asmx"
    URL: WebService.asmx
    The same exact configuration works on my local machine. I
    have a crossdomain.xml file in place that looks like this:
    <?xml version="1.0" ?>
    <!DOCTYPE cross-domain-policy (View Source for full
    doctype...)>
    - <cross-domain-policy>
    <site-control permitted-cross-domain-policies="all" />
    <allow-access-from domain="*" secure="fase" />
    <allow-http-request-headers-from domain="*" headers="*"
    secure="fase" />
    </cross-domain-policy>
    However, I wouldn't think that the crossdomain is actually
    necessary because the application exists on the same domain and
    directory as the webServices. But, I added one anyway because every
    google lookup seems to say that the HTTP Request Error -
    Server.Error.Request is a crossdomain.xml problem.
    I was kind of thinking it could be a permission error.
    However, I have the web page run as an 'application' and that
    application's user account has permissions to the root directory
    and all it's children files/directories (so it can read the
    crossdomain.xml) and also the application idenity has access to run
    all the selects.
    Unfortunately I'm running this on IIS6 on the DEV/TEST
    machine and IIS7 on my local machine. So, I'm unable to setup
    failed request tracing to see if I can find the problem there.
    Does anybody have any help they can share? I've spent the
    complete day trying everything I can think of to get it to work
    with no resolve.
    Any help would be greatly appreciated!
    Thanks!!
    -Mike

    Turns out that the problem was that the Application Pool
    Identity didn't have access to the SQL DBs to do CRUD. I guess you
    should never be too sure of things. -=o/

  • XML file input and parsing

    In looking through the documentation for XML handling, I can
    find no command for something as basic as how to read in a local
    XML file for parsing and processing.
    Can someone recommend a site with example code for
    manipulating XML files?
    I've done some of this before in Java and Perl. Does
    ActionScript have similar facilities?

    hsfrey,
    I often put XML files onto the web server and then access
    from Flex code. Something like this:
    protected function load_settings_data():void
    try
    data_URL = "./data_settings.xml";
    data_request = new URLRequest(settings_data_URL);
    data_loader = new URLLoader(settings_data_request);
    data_loader.addEventListener("complete",
    settings_data_loaded);
    data_loader.addEventListener("ioError",
    settings_data_error);
    } // try
    catch (error:Error)
    Alert.show("load_settings_data - error message " +
    error.toString());
    } // catch
    } // load_settings_data
    protected function settings_data_error(e:IOErrorEvent):void
    Alert.show("ioError handled in settings_data_error: error "
    + e.text);
    } // settings_data_error
    protected function settings_data_loaded(event:Event):void
    xml_to_use = XML(data_loader.data);
    // do whatever you want with xml_to_use
    } // settings_data_loaded
    However, while you are developing on the local machine you
    will probably want to have some dummy data in a variable:
    [Bindable]
    protected var data_internal:XML =
    <root>
    <stuff>abc</stuff>
    </root>
    and swap this data in in the catch part of the first
    statement. Obviously the dummy data has to have the right structure
    but you can usually get away with just a few entries rather than
    the whole lot. Once you are happy, forget the local variable, put
    back the error handling and just use the file on your web server
    which can be updated whenever you want independently of the swf
    application.
    Hope that helps,
    Richard

  • IOError #2032

    Hi Adobe folks,
    A lots of java guys are experiencing difficulties getting the
    HTTPService working properly when accessing a servlet.
    It's pretty usual to have a client accesing such web
    resource. I case of a flash client it seems very hard to avoid the
    famous #2032 IOError.
    Could you publish something that explain how it works?
    Could you give actionScript examples of a client sending some
    Strings to a servet returning some Strings then explain what are
    the constraint.
    It sounds to me that Flex has brought a constraint which
    doesn't exist in java for instance.
    Thanks in avance

    I've found many related messages in this forum.
    I noticed that people complains about a misunderstanding of
    the HTTPService to tranfert simple String or even XML. Behavior is
    unpredictable.
    Sending XML or String is quite unusual with flex while it's
    very simple in java.
    We realy need help or tell us whether a bug is the root cause
    or not.
    Thanks

  • Loading XML Catch{} issue

    Hi,
    Can you tell why this is throwing an error? (error found below the code)
    this.addEventListener(Event.ENTER_FRAME,loadXMLFile); //called to automatically update when XML file has been saved.
    function loadXMLFile(e:Event):void{
         var vipNames:XML;
         var nameLoader:URLLoader = new URLLoader();
         nameLoader.addEventListener(Event.COMPLETE,onComplete, false,0,true);
         nameLoader.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false,0,true);
         nameLoader.load(new URLRequest("vipNames.xml"));
    function onComplete(e:Event):void{
        try{
            vipNames = new XML(e.target.data);
            table1_mc.chair1_txt.text=vipNames.table_1.chair_1;  // loads the xml into the text field
            nameLoader.removeEventListener(Event.COMPLETE,onComplete);       
            nameLoader.removeEventListener(IOErrorEvent.IO_ERROR,onIOError);
    }catch(err:Error){
            trace("Frame 1, Couldn't parse the loaded content .xml file as XML:\n"+ err.message);
    function onIOError(e:IOErrorEvent):void{
        trace("Frame 1, An error occured when attempting to load file. \n" + e.text);
    }// closes loadXMLFile function
    ERROR:
    Frame 1, couldn't parse the loaded content .xml file as XML:
    Error #1009: Cannot access a property or method of a null object reference.
    Any ideas? it doesn't happen when I initially load the frame but when I go to frame 2 then back to this frame (frame 1) it occurs
    I don't get it... I

    ok, so final was able to get back to this project... The problem only still only occurs when I come back to the frame
    not the intial enterFrame. I don't get it. I don't think I'm nesting any functions
    but it still throws the same error with your suggestions, can you see if I placed something in the wrong spot?
    The program works but it IS finding an error message, though it doesn't appear to effect the file.
    The XML Loader script derives from the book "Learning actionscript 3.0" by Rich Shupe.
    I read that if you "catch" an error the problem MUST lie in the "Try" statement... is that true?
    Error Shown:
    Frame 1, Couldn't parse the loaded content .xml file as XML:  // from the trace function
    Error #1009: Cannot access a property or method of a null object reference.
    var vipNames:XML;
    //////////////////////////////////////  Timer ///////////////////////////////////////
    var updateTimer:Timer = new Timer(1000);
    updateTimer.addEventListener(TimerEvent.TIMER,loadXMLFile);
    updateTimer.start();
    //////////////////////////////////////  Loads XML  ///////////////////////////////////////
    var nameLoader:URLLoader = new URLLoader();
    function loadXMLFile(e:Event):void{
    nameLoader.addEventListener(Event.COMPLETE,onComplete, false,0,true);
    nameLoader.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false,0,true);
    nameLoader.load(new URLRequest("vipNames.xml"));
    ////////////////////////////////  If XML Load is complete  /////////////////////////////////////                                          
    function onComplete(e:Event):void{
        try{
            vipNames = new XML(e.target.data);
            table1_mc.chair1_txt.text=vipNames.table_1.chair_1;  // loads xml into INPUT text field.... does it matter if it's dynamic or input?
            nameLoader.removeEventListener(Event.COMPLETE,onComplete);       
            nameLoader.removeEventListener(IOErrorEvent.IO_ERROR,onIOError);
        }catch(err:Error){
            trace("Frame 1, Couldn't parse the loaded content .xml file as XML:\n"+ err.message);
    ////////////////////////////////  If an IOError Occurs  /////////////////////////////////////////
    function onIOError(e:IOErrorEvent):void{
        trace("Frame 1, An error occured when attempting to load file. \n" + e.text);

  • Random IOError, sometimes there sometimes not

    Hi
    I have programmed a Music Player that accesses an XML file for song titles, and URLs of the mp3 files.
    Depending on which button you press it will play one song in the list.
    Let's say there are 10 different songs, that means there are ten different buttons.
    Sometimes when I press one of the buttons the song won't play but I get an IOError.
    I've added an eventlistener that listens for that error event and this is the output I get:
    [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: file:///MacDrive/Users/julie/Desktop/TestMusicPlayer/"]
    The next time I press that button the song suddenly plays and I don't get an error message. These error messages seem really random...
    The XML is located in the "TestMusicPlayer" folder but the songs are in a subfolder called "audio"
    It obviously has a hard time finding the path to the song, but wouldn't the error message display the full path to the song? Why does the URL in the error message lead to the parent folder? And of course, why does it sometimes fire the error message and the next time it doesn't?
    Any ideas?
    Thanks
    Julie
    Ps.: Not sure if it helps at all but here's the code that happens once you press a button:
    //in a previous screen the user selects one of 5 libraries and depending on how many songs are in that library, a button for each song is displayed on the next screen.
    function playSong(e:Event):void{
        if (my_channel) {
            my_channel.stop();
        selectedSong=e.target.parent.name.toString();
        currentSong= Number(selectedSong.substr(7));
        var myURL = locRoot.mc_music["my"+currentLibrary+"_songs"][currentSong-1].@URL;
        my_sound = new Sound();
        my_sound.load(new URLRequest(myURL));
        my_sound.addEventListener(IOErrorEvent.IO_ERROR, function(evt:IOErrorEvent):void { trace(evt) } ); 
        my_channel = my_sound.play();

    Figured it out, the XML wasn't the problem, when I imported the XML at the beginning of the program, it saved all the content in an XMLList.
    But I just noticed that the error only happened when I clicked on a certain part of the button, where I had another little graphic (a play button).
    So when it looks at the Event target it returned a different name when I called this function:  selectedSong=e.target.parent.name.toString();...
    Thanks for your suggestion though :-)
    Julie

Maybe you are looking for

  • Links do not work on Macs in document converted to PDF from Publisher 2007

    Not sure whether to post this under Acrobat Windows or Mac as the PDFs are generated on a Windows PC but the problem involves Macs.  I have come up against a very strange problem.  I have converted an MS Publisher document to PDF using Adobe Acrobat

  • How do I set Page Width to Multiple Pages?

    How do I set Page Width to Multiple Pages? I notice when Cross Tabs are used, the report spans over several pages in width. Can I set this option without using a cross-tab? Since I am having trouble finding a paper width that is 100 inches wide, I wa

  • Wake ON LAN via WRV200 Router

    This feature exists on an XFXboard.  Their tech support says there is a way to connect to the board.  Ping will not work as there is no IP address when off.  Linksys tech is suggesting that one must disable the software firewall and other things that

  • Strong DITA integration into FM Technical Communication Suite

    My motivation to vote for a strong DITA integration is that I can imagine the FM Technical Communication Suite as an very appropriate tool to support the DITA Learning and Training Content Specialization in a smart way. That's important as on April 1

  • SpamCannibal blocking valid domains.... How do I disable it?

    Hello all, I have been running fine for a few months, and I recently started getting bounce problems stemming from SpamCannibal. I found that when I send email to my mail server from an external account, i get a bounce message on my external account