Using external XML to load an swf

Here's the deal - I have a main SWF with lots of loaders. Can
a hyperlink in an external XML file load another external swf in
the root flash doc? I have a list of links load in main SWF from an
external XML file. From these links, I'd like to load other
external SWFs in the main flash document. I can get the XML links
to control my browser... can I get them to control what happens in
my flash doc?
Thanks!

nothing in an xml file can load anything. but you can load a
string that you use in your swf indicate which target file to
load.

Similar Messages

  • Using external XML to add and set parameters for AS cue points.

    Hi there. I am trying to use external xml to set cue point
    times (for video), titles, and other parameters. I have everything
    set up, except getting the proper data from the xml file to set the
    parameters for my cue points. I am researching hard and learning
    quickly - at this point, I need help. Thanks!

    Anyone?
    Still working on this if anyone has advice. Still haven't
    been able to figure out how to put xml data in the right place:
    addASCuePoint(//data from xml here to set name and time of
    cue point - HOW??//);
    Thanks!

  • 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

  • Form with dropdown lists using external XML data - Distribution

    Hi all,
    I have created a form which has a series of drop down lists that populate dynamically from an external XML file. The option selected in the first list determines what data can be selected in the second, and so on.
    This functionality worked well within designer when I previewed the form - the problem I have is when I go to distribute. I (perhaps mistakenly) assumed that when I distributed the form, the external XML file would be absorbed into the main PDF, but this as not the case. Not only that, even if the XML file is in the same location as the published PDF, the dropdowns no longer populate with any data.
    Am I doing something wrong? Is there a setting to draw in external XML when a form is published? Is there another method to dynamically populate dropdowns that will provide me with a single PDF as a final product?
    Cheers,
    Lachlan.

    Hello Lachlan,
    Before distributing the form have you opened that form in Acrobat and imported the XML and saved it ?
    Thanks.
    Bibhu.

  • XML not loading in SWF

    Please, please someone help. I have been at this for days and can't see the woods for the trees any more.
    I have a swf embedded in a htm file. I pass FlashVars to it with a view to setting colours for symbols already in the swf.
    No matter what I do I simply cannot get the xml loaded. Can someone help and have a look at the following code and tell me where I am going wrong.
    I am using Flash CS4/AS 3. The default class is com.main and all .AS files are located in a folder 'com' within the root. All fla. .swf and  .xml files are located in the root.
    TIA
    Default.htm
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
    </head>
    <body>
    <p>Hello World!</p>
        <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="550" HEIGHT="400" id="8 - WHN Sixth Floor.swf" ALIGN="">
        <param name="allowScriptAccess" value="sameDomain" />
        <PARAM NAME=movie VALUE="8 - WHN Sixth Floor.swf">
        <PARAM NAME=quality VALUE=high>
        <PARAM NAME=bgcolor VALUE=#FFFFFF>
        <PARAM NAME="FlashVars" value="xmlfile=myxml2.xml" />
        <EMBED FlashVars="xmlfile=myxml2.xml" width="550" height="400" src="8 - WHN Sixth Floor.swf" allowScriptAccess="sameDomain" quality=high bgcolor=#FFFFFF NAME="8 - WHN Sixth Floor.swf" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
        </OBJECT>   
    </body>
    </html>
    Main.as
    package com
    import com.*;
    import flash.display.MovieClip;
    import flash.display.SimpleButton;
    import flash.text.TextField;
    import flash.display.Stage;
    import flash.display.LoaderInfo;
    import flash.events.*;
    public class main extends MovieClip
      public var gx:getXML;
      public var xmlFileName:Object;
      public function Main()
       //addEventListener( Event.ADDED_TO_STAGE, init );
       init();
      private function init():void 
       //removeEventListener( Event.ADDED_TO_STAGE, init )
       //var xmlFileName:Object = stage.loaderInfo.parameters;
       var gx:getXML = new getXML("myxml2.xml");
       addChild(gx);
    getXML.as
    package com
      // Static Class
      import com.*;
      import flash.display.SimpleButton;
      import flash.xml.XMLDocument;
      import flash.xml.XMLNode;
      import flash.xml.XMLNodeType;
      import flash.events.*;
      import flash.net.URLLoader;
      import flash.net.URLRequest;
      import flash.net.URLVariables;
      import flash.net.URLRequestMethod;
      import flash.geom.ColorTransform;
      import flash.net.navigateToURL;
      import flash.system.fscommand;
      public class getXML extends SimpleButton
       public var xmlData:XML;
        public function getXML(xmlurl:String):void
         var loader:URLLoader = new URLLoader();
         loader.addEventListener(Event.COMPLETE, LoadXML);
           var urlReq:URLRequest = new URLRequest(xmlurl);
            //urlReq.method = URLRequestMethod.POST;  
            //var variables:URLVariables = new URLVariables();
            //urlReq.data = variables;
            //try {  
                      loader.load(urlReq);
                  //} catch (error:Error) {  
                      //trace ("Unable to load requested document.");  
        public function LoadXML(e:Event):void
         xmlData = new XML(e.target.data);
         //xmlData = new XML("myxml2.xml");
         var rslt:XMLDocument = new XMLDocument();
         rslt.ignoreWhite = true;
         rslt.parseXML(xmlData.toXMLString());
         //trace(result.firstChild.childNodes.length);
         for (var i=0; i<rslt.firstChild.childNodes.length; i++)
          staticClass.head_Array.push(xmlData.data[i].head);
          staticClass.color_code_Array.push(xmlData.data[i].colorcode);
          staticClass.url_Array.push(xmlData.data[i].url);
          staticClass.note_Array.push(xmlData.data[i].mc_name + "##" + xmlData.data[i].note);
          staticClass.mc_Array.push(xmlData.data[i].mc_name);
         var k = staticClass.mc_Array.length  
         var j = 0;
         for each (var val:String in staticClass.mc_Array)
          var btn:SimpleButton = SimpleButton(this.parent.getChildByName(val));
          if (btn != null)
           var rojo:ColorTransform = new ColorTransform();
           rojo.color = uint (staticClass.color_code_Array[j]);    
           btn.transform.colorTransform = rojo;
           btn.addEventListener(MouseEvent.CLICK, onClick);
           btn.addEventListener(MouseEvent.MOUSE_OVER, onOver);
           btn.addEventListener(MouseEvent.MOUSE_OUT, onOut);
           * Set mouse over separate colour
           btn.alpha = 3;
          j++;
         function onClick(e:MouseEvent )
          trace(e.currentTarget.name + "----" + staticClass.url_Array[e.currentTarget.name.substring(7, e.currentTarget.name.length)-1]);
          if(staticClass.url_Array[0] != "None")
           navigateToURL(new URLRequest(staticClass.url_Array[0] + "?Room=" + e.currentTarget.name), "_self");
          else
           fscommand("RoomType", e.currentTarget.name);
         function onOut(e:MouseEvent )
          e.currentTarget.parent.getChildByName("HoverText").text = "";
          e.currentTarget.alpha = 3;
         function onOver(e:MouseEvent )
          e.currentTarget.alpha = 1.5;
          for each (var val:String in staticClass.note_Array)
           if(e.currentTarget.name == val.substring(0, val.indexOf("##", 0)))
            e.currentTarget.parent.getChildByName("HoverText").text = val.substring(val.indexOf("##", 0) + 2, val.length);
            //e.currentTarget.parent.getChildByName("HoverText").text = "HELP ME";
    staticClass.as
    package com
    import flash.display.MovieClip;
    public class staticClass
       public static var head_Array:Array = new Array();
       public static var color_code_Array:Array = new Array();
       public static var url_Array:Array = new Array();
       public static var note_Array:Array = new Array();
       public static var mc_Array:Array = new Array();
       public static var url_Array1 :Array = new Array();

    i don't think you're using Main or you would see error messages.
    what's the following trace() reveal:
    oh, i can see an error in Main, too:
    Main.as
    package com
    import com.*;
    import flash.display.MovieClip;
    import flash.display.SimpleButton;
    import flash.text.TextField;
    import flash.display.Stage;
    import flash.display.LoaderInfo;
    import flash.events.*;
    public class main extends MovieClip   // main should be Main
      public var gx:getXML;
      public var xmlFileName:Object;
      public function Main()
    trace(this)
       //addEventListener( Event.ADDED_TO_STAGE, init );
       init();
      private function init():void 
       //removeEventListener( Event.ADDED_TO_STAGE, init )
       //var xmlFileName:Object = stage.loaderInfo.parameters;
       var gx:getXML = new getXML("myxml2.xml");
       addChild(gx);

  • Stream Shoutcast + External XML not loading

    I can run the swf locally as a exe and it will correctly
    stream the sound.
    Heres the url:
    http://mikemikhjian.com/sampler/test.php
    This connects to xml file, determines which shoutcast server
    works best, and then it is supposed to stream it.
    I set the security to allowdomains and insecuredomains with
    not sure why its not going tho!
    +
    Just checking as well, my xml that is being loaded from
    external domain wont come up. But still doesnt make sense cause ive
    got:
    System.security.allowInsecureDomain("*");
    System.security.allowDomain("*");

    Just checking as well, my xml that is being loaded from
    external domain wont come up. But still doesnt make sense cause ive
    got:
    System.security.allowInsecureDomain("*");
    System.security.allowDomain("*");

  • Using a container to load several swf files and play them

    I need some help. I want to use several swf files and have them be called upon in a container file and play them in sequence. It's a presentation that needs to play thru but still have the ability to stop, click on items, open a popup and then continue on in the presentation. I am building all the individual "chapters" and their "sub-chapters" as swf files, with the hope that I can load them in order. I am relatively new to AS3. Help?

    If you will be loading swf files into a container then you will use the Loader class to accomplish that, so give that a looking over in the help documents and see what you can do.  If you have a problem getting it to work, post your code and describe what you have done.

  • Using external xml for spry menu help

    Just started playing with DW CS3, I would like to know how to
    insert a spry menu and get the xml data from an external file. Can
    anyone point me at a suitable example or tutorial please?

    The video workshop has some great tutorials with spry.
    http://www.adobe.com/designcenter/video_workshop/
    Aram

  • 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

  • External XML as MenuBar dataProvider

    Here the function called by application apps.mxml at
    initialization:-
    private function PopulateMenu ():void {
    request = new URLRequest('menusrc.xml');
    loader = new URLLoader();
    loader.load(request);
    menuLine.labelField = "@label";
    menuLine.iconField = "@Icon";
    menuLine.dataProvider = (new XML(loader.data));
    apps.mxml:-
    <mx:MenuBar height="100%" id="menuLine"
    showRoot="false"/>
    menusrc.xml:-
    <?xml version="1.0" encoding="utf-8"?>
    <menu>
    <menuitem label="File">
    <menuitem label="Open"
    Icon="@Embed(source='images/menu/create.jpg')"/>
    <menuitem label="Delete"/>
    <menuitem label="Update"/>
    </menuitem>
    <!--Tree View-->
    <menuitem label="File">
    <menuitem label="Setting"/>
    </menuitem>
    </menu>
    The avobe is fails to populate my menu.
    Thanks in Advance!
    Vinay

    thanks tracy
    i hv done that and it works fine if i use
    <mx:XMLList>
    <menuitem label="File">
    <menuitem label="Open"
    Icon="@Embed(source='images/menu/create.jpg')"/>
    <menuitem label="Delete"/>
    <menuitem label="Update"/>
    </menuitem>
    <!--Tree View-->
    <menuitem label="File">
    <menuitem label="Setting"/>
    </menuitem>
    </mx:XMLList>
    in mxml file.
    Wht i wanna use external XML file as dataProvider to MenuBar
    hopes its clear.
    waiting 4 reply!
    Vinay

  • Populating Tree with External XML File

    I want to use external files for populating Flex 3
    components. I have been successful using code very similar to that
    below for a data grid & for a combo box, but it won't work for
    a tree. Can you determine wh?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:HTTPService id="dp_Tree1" url="Tree1.xml" />
    <mx:Tree dataProvider="{dp_Tree1.lastResult.root.node}"
    creationComplete="dp_Tree1.send()" width="333"/>
    </mx:WindowedApplication>
    It's not working & I can't determine why. Attached is my
    xml file that I tested it with.

    Thanks a bunch folks, but my intent is to have as little code
    as possible. I want to help people who are not coders create
    designs using external xml files to populate controls. I was able
    to create very simple code with just two lines to populate a
    DataGrid from an external xml file:
    <mx:HTTPService id="dp_DataGrid1" url="DataGrid1.xml"
    />
    <mx:DataGrid
    dataProvider="{dp_DataGrid1.lastResult.component.rows}"
    creationComplete="dp_DataGrid1.send()" />
    And just two lines for a ComboBox:
    <mx:HTTPService id="dp_ComboBox1" url="ComboBox1.xml"
    />
    <mx:ComboBox
    dataProvider="{dp_ComboBox1.lastResult.component.rows}"
    creationComplete="dp_ComboBox1.send()" />
    Isn't it possible to populate a tree with two lines like as
    it is with a DataGrid & ComboBox?

  • How to use external table - creating NFS mount -the details involved

    Hi,
    We are using Oracle 10.2.0.3 on Solaris 10. I want to use external tables to load huge csv data into the database. This concept was tested and also found to be working fine. But my doubt that : since ours is a J2EE application, the csv files have to come from the front end- from the app server. So in this case how to move them to the db server?
    For my testing I just used putty to transfer the file to db server, than ran the dos2unix command to strip off the control character at the end of file. but since this is to be done from the app server, putty can not be used. In this case how can this be done? Are there any risks or security issues involved in this process?
    Regards

    orausern wrote:
    For my testing I just used putty to transfer the file to db server, than ran the dos2unix command to strip off the control character at the end of file. but since this is to be done from the app server, putty can not be used. In this case how can this be done? Are there any risks or security issues involved in this process? Not sure why "putty" cannot be used. This s/w uses the standard telnet and ssh protocols. Why would it not work?
    As for getting the files from the app server to the db server. There are a number of options.
    You can look at it from an o/s replication level. The command rdist is common on most (if not all) Unix/Linux flavours and used for remote distribution and sync'ing of files and directories. It also supports scp as the underlying protocol (instead of the older rcp protocol).
    You can use file sharing - the typical Unix approach would be to use NFS. Samba is also an option if NTLM (Windows) is already used in the organisation and you want to hook this into your existing security infrastructure (e.g. using Microsoft's Active Directory).
    You can use a cluster file system - a file system that resides on shared storage and can be used by by both app and db servers as a mounted/cooked file system. Cluster file systems like ACFS, OCFS2 and GFS exist for Linux.
    You can go for a pull method - where the db server on client instruction (that provides the file details), connects to the app server (using scp/sftp/ftp), copy that file from the app server, and then proceed to load it. You can even add a compression feature to this - so that the db server copies a zipped file from the app server and then unzip it for loading.
    Security issues. Well, if the internals is not exposed then security will not be a problem. For example, defining a trusted connection between app server ad db server - so the client instruction does not have to contain any authentication data. Letting the client instruction only specify the filename and have the internal code use a standard and fixed directory structure. That way the client cannot instruct something like +/etc/shadow+ be copied from the app server and loaded into the db sever as a data file. Etc.

  • Use of External tables to load XML data.

    Hi,
    I have used external table definitions to load various XML files to the database, usually splitting the XML into seperate records - 1 per major element tag, and using PL/SQL to parse out a primary key to store in a relational table with all of the XML relevant to that primary key value stored as an XMLTYPE coumn in a row of the table. This has worked fine for XML with a single major entity (element tag) .
    However, I now have an XML file that contains two "major" elements (both children of the root) that I would like to split out and store in seperate tables.
    The XML file is of the following basic format:-
    <drugs>
    <drug>drug 1...</drug>
    <drug>drug 2...</drug>
    <partners>
    <partner>partner 1</partner>
    <partner>partner 2</partner>
    </partners>
    </drugs>
    The problem is there are around 18000 elements of the first type, followed by several thousand of the 2nd type. I can create two seperate external tables - one for each element type, but how do I get the external table for the 2nd to ignore all the elements of the first type? My external table definition is :-
    CREATE TABLE DRUGBANK_OWNER.DRUGBANK_PARTNERS_XML_EXTERNAL
    DRUGBANK_XML CLOB
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY DRUGBANK_DIR
    ACCESS PARAMETERS
    ( records delimited by "</partner>" SKIP 100000
    characterset al32utf8
    badfile extlogs:'drugbank_partners_xml.bad'
    logfile extlogs:'drugbank_partners_xml.log'
    discardfile extlogs:'drugbank_partners_xml.dis'
    READSIZE 52428800
    fields
    drugbank_xml CHAR(50000000) terminated by '</partners>'
    LOCATION (DRUGBANK_DIR:'drugbank.xml')
    REJECT LIMIT UNLIMITED
    PARALLEL ( DEGREE 8 INSTANCES 1 )
    NOMONITORING;
    The problem is that before the first <partners> element the 1800 or so <drugs> elements cause a data cartrdige error:-
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-29400: data cartridge error
    KUP-04020: found record longer than buffer size supported, 52428800
    This happens regardless of the value of the SKIP or the size of the drugbank_xml field.
    I have tried using an OR on the "records delimited by" access parameter, to 'delimit by "</partner>" OR "</drug>"', with the intention of filtering out the <drug> elements but this leads to a syntax error.
    Anyone ever tried anything similar and got it to work?
    Any other suggestions?
    Thanks,
    Sid.

    No, the content inside quotes is spanned across multiple lines....there are line breaks after every html tag.
    "What's the error message you are getting?"
    Iam not getting any error while selecting from external table , but I am getting tose rows in BAD file and log file has the following entries
    KUP-04021: field formatting error for field TKBS_DSCN
    KUP-04036: second enclosing delimiter not found
    Message was edited by:
    user627610

  • Load external xml

    I have an application which uses an external xml file (on
    another site). I get the data from the xml file. When I run my
    application local, it works perfectly.
    Although, when I run my application on my server, the xml
    just won't load. Can anyone help me on this matter?
    Greets

    "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...

  • 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

Maybe you are looking for

  • Clips have become blank on the sequence...? Please Help!

    I just finished editing my video.... and i was exporting, but in the middle of exporting it stopped, and there was a yellow exclamation mark to the side. I went back to Premiere to see wat was wrong and all my clips had gone bank as well as the audio

  • Executiong Business Rules from ODI on Linux

    Hi, I would like to execute Business Rules from ODI. I know that it is possible with the CmdLnLauncher command on Windows, but I don't know how to do on Linux ? Thanks to John Goodwin, I know it's possible using the KM, but it is not my favorite issu

  • Maximum number of bookmarks to sync

    I have many bookmarks in safari and add a few more on most days. Syncing with the iPhone was fine for 2 months and then safari one day just died. It became an essentially blank immobile screen. After much help from an Apple product rep it seems that

  • Cannot open files after moving Photoshop to a new computer

    Loading a document, I get the information: Fatal error – missing component: /Library/Application Support/Adobe/Adobe Version Cue CS4/Client/4.0.0/VersionCue.framework I use MAC OS X 10.8 and took the programm from the old computer with OS X 10.6. Mes

  • [Solved] Mythtv audio capture woes

    OK I admit it, after a week or so fighting with this, I'm stuck. This is the last showstopper before using my mythbox as the primary entertainment source to my TV and would very much appreciate any help. I'm running mythtv 0.20.2.20070828-2 built fro