Flash XML file help

I am trying to add multiple flash files to my website...the
only way these seem to work is if the swf and corresponding xml
file are all on the root of the website directory. I would have
liked to organize them into files to sort.
My problem is that many of these flash files (mainly
purchased) have the same xml file, so I cannot use these together
on the root. Thus, I need to either rename in the flash the xml
file or figure out how to put into folders...please help!
-Josh

ANSWER: I figured it out myself. I am just replying to let
everybody else know how I fixed it. I had the full URL in the load
request and apparently some Flash players don't like this. I put a
link to the file without the domain name and everybody is working
fine. The load function, Flash, or something could not resolve the
domian correctly and could not find the XML file. I was not getting
a request for the file from the Flash movie so I knew it had to be
soemthing in Flash.

Similar Messages

  • Error With loading XML file.Help me

    Hi!
    I am trying to make an mp3 player for my web site but I am
    having a little problens and I hope you can help me out.
    It is a xml driven mp3player. I have a mp3player.as file and
    a songs.xml file. Inside my flash movie I only have #include
    "mp3player.as".
    Here is my mp3player.as code :
    [CODE]
    //Setup Sound Object
    var s :Sound = new Sound();
    s.onSoundComplete = playSong;
    s.setVolume(75);
    //Array of sounds
    var sa:Array = new Array();
    //Current Playing Song
    var cps : Number = -1;
    //Load the XML into a xml file
    var xml :XML = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = function()
    var nodes : Array = this.firstChild.childNodes;
    for(var i=0;i<nodes.length;i++)
    sa.push(nodes
    .attributes.url);
    playSong();
    xml.load("mp3player.xml");
    // Play mp3 file
    function playSong() :Void
    if(cps == sa.length -1)
    cps = 0;
    s.loadSound(sa[cps],true);
    else
    s.loadSound(sa[++cps],true);
    [/CODE]
    And here is my songs.xml file :
    [CODE]
    <?xml version="1.0" encoding="UTF-8"?>
    <songs>
    <song url="music\setsite.mp3" />
    <song url="music\Soul Magic - Soul Magic.mp3" />
    <song url="music\Technotronic - NRG Flow.mp3" />
    </songs>
    [/CODE]
    Everytime I test my movie I have this msg :
    Error opening URL
    'file:///C|/Documents%20and%20Settings/Administrator/My%20Documents/Web%20Sites/site%20MA IO%202007/undefined'
    What is wrong with my code?
    When I comment this line xml.load("songs.xml") my movie runs
    fine.But I cant fix it..
    thank you

    Others here in the forums know more about the Sound class
    than I do... I haven't used it so much. You are using the
    'streaming' type of sound with the isStreaming flag set to true
    which means that it starts to play before its fully downloaded. So
    on a slow connection I presume it could play and stop in the same
    way that the timeline on a movie will pause playing if the rest of
    it has not downloaded yet.
    For a streaming sound, I guess you could get around this by
    implementing a partial preload by using s.stop() after issuing the
    s.loadSound command. Then do a "regular" preloader style checking
    s.getBytesLoaded vs. s.getBytesTotal ... to a percentage (you could
    even monitor the speed over 5-10 seconds to determine an
    appropriate level of buffering...maybe) and then use s.start()
    again.
    That's how I'd tackle it, but like I said others here know
    more about this, and perhaps they'll have better ideas. There
    appear to be some quirks with the Sound class based on comments in
    the flash 8 livedocs...

  • Error in my build.xml file (help with spotting syntax error requested)

    Hi
    I have written an XML file called build.xml for one of my applications. My XML editor complains that there is an error at the last line of the XML file, but I simply find it unable to correct the errror.
    It says:
    Fatal error:Build.xml[76:3-9]: End-Tag without start-tag
    The XML file itself:
    <project basedir="." default="deploy" name="concepts">
    <property name="src.dir" value="src"></property>
    <property name="build.dir" value="${basedir}/build"></property>
    <property name="build.lib" value="${build.dir}/lib"></property>
    <property name="dist.dir" value="dist"></property>
    <property name="classes.dir" value="${build.dir}/classes"></property>
    <property name="build.etc" value="${src.dir}/etc"></property>
    <property name="build.resources" value="${src.dir}/resources"></property>
    <property name="lib.dir" value="lib"></property>
    <property name="web-inf.dir" value="WEB-INF"></property>
    <property name="war.name" value="concepts"></property>
    <property file="../common.properties"></property>
    <target name="init">
    <mkdir dir="${build.dir}"></mkdir>
    <mkdir dir="${classes.dir}"></mkdir>
    <mkdir dir="${dist.dir}"></mkdir>
    </target>
    <target name="deploy" depends="clover-yes, clover-no">
    <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
    <include name="org/apache/commons/fileupload/**/*.java" />
    <include name="com/portalbook/portlets/**/*.java" />
    <include name="com/portalbook/portlets/content/**/*.java" />
    </javac>
    <target depends="init" name="compile">
    <javac debug="true" deprecation="true" destdir="${classes.dir}" optimize="false">
    <src>
    <pathelement location="${src.dir}"></pathelement>
    </src>
    <classpath>
    <fileset dir="${lib.dir}">
    <include name="*.jar">
    </include>
    </fileset>
    </classpath>
    </javac>
    </target>
    <target depends="compile" name="war">
    <war destfile="${dist.dir}/${war.name}.war" webxml="WEB-INF/web.xml">
    <classes dir="${classes.dir}"></classes>
    <lib dir="${lib.dir}"></lib>
    <webinf dir="${web-inf.dir}"></webinf>
    </war>
    </target>
    <!-- create the portal-concepts-lib.jar -->
    <jar jarfile="${build.lib}/concepts-lib.jar">
    <fileset dir="${classes.dir}"></fileset>
    </jar>
    <jar jarfile="${build.lib}/concepts.war" manifest="${build.etc}/concepts-war.mf">
    <fileset dir="${build.resources}/concepts-war"></fileset>
    </jar>
    <!-- concepts.ear -->
    <copy todir="${build.resources}/concepts-ear">
    <fileset dir="${build.lib}" includes="concepts.war,concepts-lib.jar"></fileset>
    </copy>
    <jar jarfile="${build.lib}/concepts.ear">
    <fileset dir="${build.resources}/concepts-ear" includes="concepts.war,concepts-lib.jar">
    </fileset>
    </jar>
    <target depends="deploy" name="explode">
    <taskdef classname="org.jboss.nukes.common.ant.Explode" classpath="${libs}" name="explode"></taskdef>
    <explode file="${build.lib}/concepts.ear" name="concepts.ear" todir="${build.lib}/exploded"></explode>
    </target>
    <target depends="war" name="all"></target>
    <target name="clean">
    <delete dir="${build.dir}">
    </delete>
    <delete dir="${dist.dir}">
    </delete>
    </target>
    </project>
    I am a little inexperienced in XML files. So I am unable to spot the error.
    I would greatly appreciate it, if some kind soul were to help me out.
    thanks a lot

    The tag
    <target name="deploy" depends="clover-yes, clover-no">...is never closed.
    close that tag:
    <target name="deploy" depends="clover-yes, clover-no">
         <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
              <include name="org/apache/commons/fileupload/**/*.java" />
              <include name="com/portalbook/portlets/**/*.java" />
              <include name="com/portalbook/portlets/content/**/*.java" />
         </javac>
    </target>Second error is that the depends in there (clover-yes, clover-no) are not existing as targets in your xml.

  • Xpath expression is empty for input XML file - Help!!!

    Hi,
    I am desperate by now!!! :-(
    I am not able to read an XML file using the File Adapter
    when trying to assign the input I get the following error:
    06/06/08 09:15:10 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFromValue(BPELAssignWMP.java:490)
    06/06/08 09:15:10 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__executeStatements(BPELAssignWMP.java:122)
    06/06/08 09:15:10 at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188)
    06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408)
    06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836)
    06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
    06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166)
    06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252)
    06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438)
    06/06/08 09:15:10 at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1217)
    06/06/08 09:15:10 at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:511)
    06/06/08 09:15:10 at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335)
    06/06/08 09:15:10 at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796)
    06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
    06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
    06/06/08 09:15:10 at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
    06/06/08 09:15:10 at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
    06/06/08 09:15:10 at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
    06/06/08 09:15:10 at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
    06/06/08 09:15:10 at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
    06/06/08 09:15:10 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    06/06/08 09:15:10 at java.lang.Thread.run(Thread.java:534)
    <2006-06-08 09:15:10,384> <ERROR> <default.collaxa.cube.xml> com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
    messageType: {null}
    parts: {{summary=<summary>empty variable/expression result.
    [b]xpath variable/expression expression "/ns6:SUPPLIERS_ORDER_NUMBER" is empty at line 23, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns6:SUPPLIERS_ORDER_NUMBER" is not empty.
    </summary>}}
    this is my XML file:
    <?xml version="1.0" encoding="utf-8"?>
    <SUPPLIERS_ORDER_NUMBER>"XX"</SUPPLIERS_ORDER_NUMBER>
    this is my xsd file:
    <xs:schema
    targetNamespace="http://schemas.oracle.com/service/bpel/common"
    xmlns:common = "http://schemas.oracle.com/service/bpel/common"
    xmlns:xs = "http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    <xs:element name="SUPPLIERS_ORDER_NUMBER" type="xs:string"/>
    </xs:schema>
    Please help me
    thanks
    Amit

    Hi,
    This is my file adapter wsdl file:
    <definitions
    name="fileAdapter"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/file/"
    xmlns="http://schemas.xmlsoap.org/wsdl/" >
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:FILEAPP="http://xmlns.oracle.com/pcbpel/adapter/file/">
    <element name="InboundFileHeaderType">
    <complexType>
    <sequence>
    <element name="fileName" type="string"/>
    <element name="directory" type="string"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <!-- Header Message -->
    <message name="InboundHeader_msg">
    <part element="tns:InboundFileHeaderType" name="inboundHeader"/>
    </message>
    </definitions>
    So , should I use http://xmlns.oracle.com/pcbpel/adapter/file/ as my targetNamespace?
    for example:
    <xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/"
    xmlns="http://xmlns.oracle.com/pcbpel/adapter/file/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    Thanks
    Amit

  • Indexing xml files HELP PLEASE!!

    Can anyone help!!!
    I am some have xml files stored in a folder. Each month this will grow by about 20-30%, I need to be able to search for particular files quickly. I am thinking of indexing the files. Does anyone know how I could do this so that as the number of files grow I won't suffer any performance problem.
    Rohan

    Of course no matter what you do, the more files you have to index the longer it will take to find data in them. So the answer to your question is, you can't. But once you get over that, your question (I suppose) is how can you index your files so you can find a particular one. The operating system already does that for you, doesn't it? You give it the file name and it returns the file. But perhaps you meant you wanted to index the files based on their contents in some way?

  • Flash xml file and file size?

    I have a flash animation that pulls in images using an xml
    file. I was
    wondering if the images must all load first? In other words,
    the images
    are timed to load at different times. I was thinking, when I
    did this,
    that the images would not be downloaded until they were
    called but I am
    starting to doubt this.
    Anyone have any idea how these images are loading?
    Basically, my main concern is that they are putting too much
    load on the
    homepage. I have a feeling I know what the answer is.
    Thanks

    whatever the size of your SWF is, is what is going to be
    loaded when entering your homepage. Flash doesn't know what images
    to load, until you make a call to load them. It will only load the
    assets on the timeline, and anything set to export on the first
    frame.

  • XML File Help / Denomalized Data

    Hi,
    Some software I work with allows me to import an XML file to create products into a database.  I was given an example XML file and have sucessfully used this and edited it using XML Notepad.  I have two records in the file which I can
    import into the database without issue.
    If I import the XML map into Excel and then try to add further records or edit what is already there and export out the XML it tell me that XML Maps are not exportable and if I do the verify map for export it tells me I get denormalized data.  As
    I'm new to working with this I wonder if anyone can tell from the XML below what the problem is when trying to use it in Excel?
    Thank you.
    Robin
    <AztecImport SchemaVersion="10" ExportTimeStamp="2012-11-30T17:00:00">
    <Products>
    <PurchasedProducts>
    <PurchasedProduct>
    <ProductId>
    <AztecReference>Pears 1</AztecReference>
    </ProductId>
    <Name>Pears 2</Name>
    <SubcategoryId>
    <AztecName>Z Import</AztecName>
    </SubcategoryId>
    <AztecReference>Pears 1</AztecReference>
    <StockCountUnit>
    <AztecName>kg</AztecName>
    </StockCountUnit>
    <Purchasing>
    <DefaultSupplier>
    <AztecReference>Fruit Supplier</AztecReference>
    </DefaultSupplier>
    <PurchaseUnits>
    <PurchaseUnit>
    <SupplierID>
    <AztecReference>Fruit Supplier</AztecReference>
    </SupplierID>
    <UnitId>
    <AztecName>100g</AztecName>
    </UnitId>
    <Cost>2.20</Cost>
    <Default>true</Default>
    <SupplierReference>GRP1</SupplierReference>
    </PurchaseUnit>
    </PurchaseUnits>
    </Purchasing>
    <TaxRules>
    <TaxRule>
    <AztecId>1</AztecId>
    </TaxRule>
    </TaxRules>
    </PurchasedProduct>
    <PurchasedProduct>
    <ProductId>
    <AztecReference>AP1</AztecReference>
    </ProductId>
    <Name>Apples 1</Name>
    <SubcategoryId>
    <AztecName>Z Import</AztecName>
    </SubcategoryId>
    <AztecReference>AP1</AztecReference>
    <StockCountUnit>
    <AztecName>kg</AztecName>
    </StockCountUnit>
    <Purchasing>
    <DefaultSupplier>
    <AztecReference>Fruit Supplier</AztecReference>
    </DefaultSupplier>
    <PurchaseUnits>
    <PurchaseUnit>
    <SupplierID>
    <AztecReference>Fruit Supplier</AztecReference>
    </SupplierID>
    <UnitId>
    <AztecName>100g</AztecName>
    </UnitId>
    <Cost>1.20</Cost>
    <Default>true</Default>
    <SupplierReference>AP1</SupplierReference>
    </PurchaseUnit>
    </PurchaseUnits>
    </Purchasing>
    <TaxRules>
    <TaxRule>
    <AztecId>1</AztecId>
    </TaxRule>
    </TaxRules>
    </PurchasedProduct>
    </PurchasedProducts>
    </Products>
    </AztecImport>

    Not quite familiar with XML, but you can take a look at this:
    An XML mapping cannot be exported if the mapped element’s relationship with other elements cannot be preserved. This relationship may not be preserved for the following reasons:
    The schema definition of a mapped element is contained within a sequence with the following attributes:
    The maxoccurs attribute is not equal to 1.
    The sequence has more than one direct child element defined, or has another compositor as a direct child.
    Nonrepeating sibling elements with the same repeating parent element are mapped to different XML tables.
    Multiple repeating elements are mapped to the same XML table, and the repetition is not defined by an ancestor element.
    Child elements from different parents are mapped to the same XML table.
    Additionally, the XML mapping cannot be exported if it contains one of the following XML schema constructs:
    List of lists    One list of items contains a second list of items.
    Denormalized data    An XML table contains an element that has been defined in the schema to occur once (the
    maxoccurs attribute is set to 1). When you add such an element to an XML table, Excel fills the table column with multiple instances of the element.
    Choice    A mapped element is part of a
    <choice> schema construct.
    Wind Zhang
    TechNet Community Support

  • Flash SWF file help

    I've uploaded my page and all associated files (swf, images),
    but the swf won't play in my browser.
    Please visit -
    http://www.tbproductions.com/s&f/clients.htm
    There is supposed to be a swf Menu under the header and a swf
    in the body of clients.htm.
    I don't understand what I am doing wrong. Thank You
    !!!

    I took a good look at the code and noticed this script was
    looking for my local folder on my C: drive
    <script src="C:sites/Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    instead of
    <script src="Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    deleted the C:sites - and it works fine !
    thanks for your help!

  • How do i use a flash gallery with xml file

    Hi there....
    I am trying to include a flash banner template i have downloaded into my webpage using dreamweaver CS5.
    the template comes with an XML file with it in which you can reference your own images etc..
    I understand how to inclued the Flash object into my webpage by insert-swf- and then navigating to the .swf file...
    what i am having trouble with is understanding how this refereces the XML file in the download pack as i cant find any references to it in the code??
    I am just getting the grey flash box with no images appearing when i hit play etc..
    sorry if this is a really silly question!!
    mart

    If you are using DW to insert the Flash, that could be the problem.  It is not reliable resource in that respect (my opinion, but a shared one). I normally only use Flash to create the code and copy/paste it into my html page.  Did you get an fla file with the set, and do you have Flash?
    What you should do is test the swf file by itself to make sure it works.   Normally you can link directly to the swf file to check that out.  Just type in the url to the swf file and see if it plays.  There may be some other setup required that maybe an accompanying set of instructions might explain.
    Also, if you have a link to the html file you uploaded, providing it here may help in getting things resolved.

  • XML file not loading...HELP!

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

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

  • Calling XML file from Flash -- Usage of wildcard characters

    Hi
    We have a Flash file, tabs.swf, (standard tab interactivity) from which we are calling the XML file using the following code:
    myXML.load("tabs.xml")
    We are using this SWF file in many learning modules created using Captivate, FrameMaker, RoboHelp, etc. by just changing the content in the XML file appropriately. The tool creates a different folder for each module.
    Now, the challenge we are having is, there will be cases where we have to use the interactivity in multiple times in the same module. In that case, content developers can change the SWF file name on their own. But they can't change the XML name without going back to media designer.
    Is there a way we can use the same SWF file to call different XML files without manually changing the XML file name every time? We have a standard naming convention for the XML files -- Tab1_<ModuleName>, Tab2_<ModuleName>, etc.
    Any help is appreciated. Thanks.
    Sreekanth

    you can edit the swf's name, and use this._url and the flash string methods to do that.

  • How to read .xml file from embedded .swf(flash output) in captivate

    I have been trying to read .xml file from the .swf (Flash output) that is embedded within the captivate file but no luck yet . Please if anyone got any clue on how get this thing done using Action script 3.0 then let me know. I am using Adobe Captivate 5.5 at present and Flash CS 5.5.
    I am well aware about how to read .xml file through action script 3.0 in flash but when insert the same flash in captivate and publish nothing comes in captivate output. I would higly appreciate if anyone could help me out with that.
    Here is is graphical demonstration of my query :
    Message was edited by: captainmkv

    Hi Captainmkv,
    Does the information in this post cover what you're trying to do: http://forums.adobe.com/message/5081928#5081928
    Tristan,

  • Sending variable value from php to flash to load an xml file

    I would like to load an XML file from the location locally or on the server being unaware of the name of the file. I am using PHP for sending the filename to Flash.
    The below is the PHP code:
    <?php
    filesInDir('C:\Documents and Settings\457305\My Documents\shrikant\Flash Tutorials\webassist');
    function filesInDir($tdir)
            $dirs = scandir($tdir);
            foreach($dirs as $file)
                    if (($file == '.')||($file == '..'))
                    elseif (is_dir($tdir.'/'.$file))
                            filesInDir($tdir.'/'.$file);
                    else
                            echo "fileName=$file";
    ?>
    And below is the loading Actionscript code:
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.net.URLVariables;
    stop();
    // Define the PHP file to be loaded
    var phpFile:String = "http://localhost/webassist/test.php";
    var cons_xml:XML;
    var xmlLoader:URLLoader = new URLLoader();
    // Specify dataFormat property of the URLLoader to be "VARIABLES"
    // This ensures variables loaded into Flash with same variable names
    xmlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    xmlLoader.load(new URLRequest(phpFile));
    xmlLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(evt:Event):void
              trace(evt.target.data.fileName);
              //cons_xml = new XML(evt.target.data.fileName);
              //gotoAndPlay(2);
    When I trace the evt.target.data it displays "fileName=mainOpenEndedXML%2Exml" and when I trace evt.target.data.fileName the fileName is properly displayed as "mainOpenEndedXML.xml".
    But in the next two lines where the loading occurs it does not load the file i.e the swf file from xml doesn't play.
    I have been searching the Internet for answers but not able to find any solutions.
    The loading works properly if i directly insert the xml file in the code and the swf's in the XML file play propertly. The below is the code for the same:
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.net.URLVariables;
    stop();
    var cons_xml:XML;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest("mainOpenEndedXML.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(evt:Event):void
              cons_xml = new XML(evt.target.data);
              gotoAndPlay(2);
    Any help on this would be greatly appreciated

    Yes. you already said that, but I guess you don't understand what I said.  You are loading the PHP fle to get the filename, but nowhere are you taking that filename and loading the file that was named. 
    You need to do two loading operations.  The first one to get the filename, and the second to load the file with that name.  Maybe if you name the PHP file loader phpLoader instead of xmlLoader it will start to make more sense to you.  Something like the following...
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.net.URLVariables;
    stop();
    // Define the PHP file to be loaded
    var phpFile:String = "http://localhost/webassist/test.php";
    var phpLoader:URLLoader = new URLLoader();
    // Specify dataFormat property of the URLLoader to be "VARIABLES"
    // This ensures variables loaded into Flash with same variable names
    phpLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    phpLoader.load(new URLRequest(phpFile));
    phpLoader.addEventListener(Event.COMPLETE, processPHP);
    function processPHP(evt:Event):void
             var xmlLoader:URLLoader = new URLLoader();
             xmlLoader.load(new URLRequest(String(evt.target.data.fileName)));
             xmlLoader.addEventListener(Event.COMPLETE, processXML);
    var cons_xml:XML;
    function processXML(evt:Event):void
              cons_xml = new XML(evt.target.data);
              gotoAndPlay(2);

  • Loading data from xml file - please help

    Hi, I am new to attempting to get data from an xml file load
    in flash. I followed a tutorial in a new fla and it seemed to work
    fine, I then tried to adapt it to my own needs which worked fine.
    But then when trying to implement this into my news section it
    doesn't seem to work.
    I am trying to make a news section, that displays the date
    and news article. This is in within a movie clip, I even tried
    putting it in the timeline of the scene but still nothing.
    - I have 2 dynamic text boxes, date_txt and news_txt
    - The xml file is named news.xml,
    - both the fla and the xml are in the same folder
    This is the actionscript I am using:
    function loadXML(loaded) {
    if (loaded) {
    _root.thedate =
    this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
    _root.thenews =
    this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
    date_txt.text = _root.thedate;
    news_txt.text = _root.thenews;
    } else {
    trace("file not loaded!");
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("news.xml");
    This is what I have in the xml document:
    <?xml version="1.0"?>
    <news>
    <article>
    <date>date</date>
    <news>newentry.</news>
    </article>
    <article>
    <date>Doug Engelbart</date>
    <news>Invented the mouse at the Stanford Research
    Institute</news>
    </article>
    </news>
    Does anyone perhaps have any ideas of what the problem could
    be?
    Help much appreciated.

    Hi
    _root refers to the Main Timeline, if your date_txt and
    news_txt are in a movieclip ie: news_mc
    then your path should read _root.news_mc.date_txt.text and
    _root.news_mc.news_txt.text
    You will also need to embed the characters you wish to use
    inside your dymanic text for it to show.
    Hope it helps

  • Flash player freeznig when loading in small XML files

    Hi all,
    I could really use some help in finding a reasonable solution
    to this problem. I'm getting a problem where the flash player
    freezes giving the "A script is causing the flash player to run
    slowly" dialog box, when it's trying to load in XML files for
    content. Therre are 15 files and they are all between 1-3kb. I
    wrote a loop so that the next file doesn't begin loadnig until the
    previous file has finished. But on some machines I still randomly
    get this problem.
    I've tried using the download simulator in flash and it seems
    that this error always occurs on lower connection speeds, but we
    are on a fast connection here and I still randomly get it freezing
    I traced which files it freezes on and it's different ones every
    time.
    Any help would be greatly appriciated.
    Thanks.
    Here is the code for my xml functions:
    // LOAD XML CONTENT FILE
    function loadXMLFile(fileName, callBackFunction){
    var_xml = new XML();
    var_xml.load(fileName);
    var_xml.ignoreWhite = true;
    var_xml.onLoad = callBackFunction;
    // FUNCTION: getNodes()
    function getNodes(success) {
    if (success == true) {
    loadParentNode(this);
    else {
    trace("ERROR: XML not loaded");
    // CREATE VARIABLES FROM NODES
    function loadParentNode(myXMLobj) {
    var obj_xml = myXMLobj;
    //Determine number of parent nodes
    var noOfParentNodes = obj_xml.firstChild.childNodes.length;
    var content_xml = findXMLNode(obj_xml, "content");
    if (noOfParentNodes > 0) {
    for (x=0; x < noOfParentNodes; x++){
    var currentNode = content_xml.childNodes[x].nodeName;
    var currentValue = findXMLValue(content_xml, currentNode);
    this[content_xml.childNodes[x].nodeName] = currentValue;
    gotoAndPlay("xmlOK");
    else {
    trace ("1 ERROR: No Parent Nodes Found");
    // GET VALUE OF CHILD NODE
    function getChildNode(sectionName, desiredNodeName) {
    var obj_xml = this.var_xml; // create a pointer to the XML
    object
    var noOfParentNodes = obj_xml.firstChild.childNodes.length;
    if (noOfParentNodes > 0) {
    for (x=0; x < noOfParentNodes; x++){
    //Find parent Node (sectionName)
    if (obj_xml.firstChild.childNodes[x].nodeName ==
    sectionName) {
    var nodeFound = 1;
    var XMLvars = obj_xml.firstChild.childNodes[x];
    var noOfChildNodes = XMLvars.childNodes.length;
    if (noOfChildNodes > 0) {
    for (var i = 0; i < noOfChildNodes; i++) {
    if (XMLvars.childNodes
    .nodeName == desiredNodeName) {
    return XMLvars.childNodes.firstChild.nodeValue;
    } else {
    trace ("ERROR: No Parent Nodes Found");
    if (nodeFound <> 1) {
    trace ("ERROR: Parent Node \"" + XMLnodeName + "\" Not
    Found.");
    //===FIND XML
    NODE=======================================================
    _global.findXMLNode = function(node_xml, XMLnodeName) {
    while (node_xml.nodeType == 1) {
    if (node_xml.nodeName == XMLnodeName) {
    return node_xml;
    } else if (node_xml.firstChild.nodeType == 1){
    checkChildNodes = findXMLNode(node_xml.firstChild,
    XMLnodeName);
    if (checkChildNodes != undefined) return checkChildNodes;
    node_xml = node_xml.nextSibling;
    //===FIND XML
    VALUE=======================================================
    _global.findXMLValue = function(node_xml, XMLnodeName){
    while (node_xml.nodeType == 1) {
    if (node_xml.nodeName == XMLnodeName) {
    return node_xml.firstChild.nodeValue;
    } else if (node_xml.firstChild.nodeType == 1){
    return findXMLValue(node_xml.firstChild, XMLnodeName);
    node_xml = node_xml.nextSibling;
    }

    Hi Rex,
    That plugin version installed is actually the HW accelerated beta version Gala: 10.1.81.25 (The current version is 10.1.81.75).  I would recommend installing the official release, since the Gala version does have some compatibility issues.  You can download the latest version here: http://get.adobe.com/flashplayer/
    -Charbs

Maybe you are looking for