Flash Changes XML data

Hi all,
Any reason why the attached code would yield this in a trace?
<comments>
<mastercomment1/>
<mastercomment2/>
<mastercomment3/>
<mastercomment4/>
</comments>
Your thoughts are much appreciated...
-SyddyS

OK...
Thanks for the help, Rothrock. Yep, we're in AS3. Here's the
combo of fun that makes it happen:
XML.prettyPrinting = false;
XML.ignoreWhitespace = false;
This lets the tabs that FCP seems to love so much shine
through, and things are
almost working. That combo of prettyPrinting (nice) and
ignoreWhitespace allows an imported XML file to retain any tab
characters it may have in it without converting them to spaces. The
file now imports into Final Cut, and I have a brand spanking new
title created dynamically by Flash.
The one remaining hurdle to this project is that many titles
have more than one line. When XML is exported from Final Cut, it
codes the linebreak as &#13; (just in case it gets decoded
here, that's ampersand poundsign 13 semicolon. If you type that
particular combination into Google, it thinks you typed a linefeed
:P ). Flash, being a slave to the All-Powerful Ampersand, turns any
ampersand I may try and include in a node value into &amp.
Final Cut, not surprisingly, has no idea what &amp means.
Any way to get Flash to use an ampersand in an XML node? I
tried using nodeValue, but that doesn't seem to work in AS3 as it
did in AS2.
Thanks,
SyddyS

Similar Messages

  • Custom Map in flash using XML data for dynamic map and point of intrest loading...

    Been some time since I have used Flash for anything...
    I'm working on a little project to dynamically build a map
    and set points of interest on the map. At this time I have the
    (mySQL) data being queried and formatted with PHP and pushing the
    data to Flash as XML.
    In starting the project I'm a bit lost... I mean I have my
    data and a good XML format but as it is I'm lost on parsing the
    data in Flash and assigning its values to movie clips or other...
    I've looked at the Loader Component and the XML Connector
    Component and find I can get that to work at all...
    My second though was to create a single movie clip on stage
    and give it an instance name of "Background" and have it load the
    URL of an image given in the attached XML doc... Node "a_zone" and
    the value given to attribute "image"... But this brings me back to
    square one of not quite understanding Flash and parsing XML... With
    this second idea I would use AS to create a movie clip, set it's X
    & Y cords and load an image to it based on the XML attributes
    listed in the "Gatherable" node (one for each node).
    Any suggestions, examples or related info is welcome...
    Thanks in advance!

    Okay, that really wasn't what I was looking for... But I did
    go back and RTM :-)
    Here's what I have... 1st frame:
    2nd Layer: movieclip with the instance name "currentPicture"
    The image loads into "currentPicture" from the URL given in
    the XML "a_zone" node attribute "image" just fine....
    But I'm not able to grab the attributes of each "Gatherable"
    node it seems... am I missing something or just not pointing to the
    right node?
    I keep getting:
    undefined
    undefined
    undefined
    Error opening URL
    "file:///C|/apache2triad/htdocs/gatherer/flash/undefined"
    Error opening URL
    "file:///C|/apache2triad/htdocs/gatherer/flash/undefined"
    Error opening URL
    "file:///C|/apache2triad/htdocs/gatherer/flash/undefined"

  • PSP Flash 7 | XML data storage

    Hi all
    I amtrying to get some XML working on the PSP. I am
    developing for Flash 7. The XML procedure that I am using is
    working fine on my PC. Anybody got any opinions or remedies for
    this problem.
    regards
    john
    http://www.javono.com

    Flash 6, I am developing in Flash 6 not 7. NF3 6

  • PSP Flash 6 | XML data storage

    hi all
    I cannot get XML working with the PSP, anybody know how to
    get XML working, is there anything to watch out for?
    I have checked every xml keyword that I have used and they
    are all included in the Flash 6 specification.
    regards
    john

    Flash 6, I am developing in Flash 6 not 7. NF3 6

  • Flash and XML data loading issue

    I have this SWF that loads 2 XML files that controls 2 different areas of the SWF.  I am using this code because I have stacked layers and when this was 2 seperate SWFs I couldn't use the SWFObject because of the wmode quirk in FF.  So my issue is when you first load this it seems to only load the slideshow (left side) and part of the right menu and then on refresh it loads the rest of the menu - how do I get it to load everything at once?  I have attacehed all of my files.
    <div id="LargeFlashContainerFlashMenu">     
                            <script language="javascript">
                                  if (AC_FL_RunContent == 0) {
                                       alert("This page requires AC_RunActiveContent.js.");
                                  } else {
                                       AC_FL_RunContent(
                                            'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
                                            'width', '940',
                                            'height', '265',
                                            'src', 'JGSB_HeaderRightNav_v05',
                                            'FlashVars', 'strNavContentXML=BICMenu.xml&strShowContentXML=settings.xml',
                                            'quality', 'high',
                                            'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                                            'align', 'middle',
                                            'play', 'true',
                                            'loop', 'true',
                                            'scale', 'showall',
                                            'wmode', 'transparent',
                                            'devicefont', 'false',
                                            'id', 'JGSB_HeaderRightNav_v05',
                                            'bgcolor', '#000000',
                                            'name', 'JGSB_HeaderRightNav_v05',
                                            'menu', 'true',
                                            'allowFullScreen', 'false',
                                            'allowScriptAccess','sameDomain',
                                            'movie', 'JGSB_HeaderRightNav_v05',
                                            'salign', ''
                                            ); //end AC code
                             </script>
                             <noscript>
                                       <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="940" height="265" id="JGSB_HeaderRightNav_v05" align="middle">
                                            <param name="allowScriptAccess" value="sameDomain" />
                                            <param name="allowFullScreen" value="false" />
                                            <param name="movie" value="JGSB_HeaderRightNav_v05.swf" />
                                            <param name="FlashVars" value="strNavContentXML=BICMenu.xml&strShowContentXML=settings.xml" />
                                            <param name="quality" value="high" />
                                            <param name="wmode" value="transparent" />
                                            <param name="bgcolor" value="#000000" />
                                            <embed wmode="transparent" src="JGSB_HeaderRightNav_v05.swf" quality="high" bgcolor="#0099cc" width="940" height="265" name="JGSB_HeaderRightNav_v05" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                                       </object>
                             </noscript>
                   </div>

    ok I couldnt upload the files but I can send anyone who can help the zip with all files in it via email.

  • Poor performance that change XML data source programically

    The XML file get from database each time is different, so I have to specify the XML path dynamically.
    I find the process of DataBaseController.replaceConnection(conn1,conn2) is very slow if the XML structure is more complex, in my case, the size of the XML is about 100K and tables(hierarchy) are more than 50.
    I also try to use the setDatasource(IXMLSource,'','') and setTableLocation, the result are same and almost spend 3 seconds  or more for this process.
    Any suggestion to me or what's wrong about that case?

    The XML for the documents are generated by the product code using BC4J XML generation. No concurrent program is involved in it.
    As regards to including additional fields from Sourcing documents into the XML generated, you can use the BC4J extension fwk to extend the ViewObject that generates XML and modify the query to include any additional fields as needed.
    All the above assumes knowledge of Oracle Application Framework and the customization fwk. There is a Metalink Note (dont know the exact id) which explains how to extend BC4J objects and deploy them.

  • Flash changes apostrophe to question mark when saving data?

    Hi,
    Ok these are the steps I take to create the problem within my Flash application.
    1. Copy and paste a string from a word.doc which contains an apostrophe
    2. I then save this data to a XML doc.
    3. reload that XML data, now the apostrophe has changed to a square box
    4. I then resave this data
    5. I reload this data and now, the square box has changed to a question mark.
    My question is, how do I stop this from happening other than not copying from a word doc?
    Is there something extra I have to do when parsing the string into its saved format.
    Currently what happens is:
    1. Pass the string from the input box to an object
    localTextObject.textData = myInput.text
    2. The object is then parsed through a custom Object to XML parser
    for example:
    textNode.text = "";
    textNode.text.appendChild( localTextObject.textData );
    3. And then an XML file is saved local with this data in it.
    Does Flash do something wonderful along the way as so by the third time around we have gone from a speech mark to a question mark?
    Any help with solving this problem would be very much appreciated.
    Thanks

    Apostrophes from word aren't part of the normal ASCII character set. They've been mucking up plain text forever...
    You can use a RegEx to strip them out, or just change them to regular apostrophes. Something like so should work:
    reg = new RegExp("“", "gi");
    m = m.replace(reg, "");

  • Flash xml data loading and unloading specs

    hi i am trying to get specification information that i cannot
    find anywhere else.
    i am working a large flash project
    and i would like to load xml data into the same swf
    object/movieclip repeatedly.
    as i do not want the previously loaded items to unload i need
    to know if doing this will unload the items from the swf or just
    keep them in the library so they can be reposted without reloading.
    i cannot find any supporting documenation either way that
    tells me that if i load new content into a clip (i am aware
    levels overwrite) if it will or will not unload this content.
    thanks in advance.
    mk

    this is awful for me -- i cant even get the clip to duplicate
    -- and i thought this would be the simplest solution to keeping
    everything cached for one page before and one page after current in
    the project.
    i have used a simpler clip to test the code and see if i am
    insane.
    duplicateMovieClip(_root.circle, "prv", 5);
    prv._x = 300;
    prv._y = 300;
    prv._visible = true;
    prv.startDrag();
    this ALWAYS works when i use the _root.circle file of a green
    simple circle
    BUT
    when i change it to my main movie clip (which is loaded AND
    On screen -- it just doesnt duplicate at all!) -- i've even
    triggered it to go play frame 2 JUST IN CASE
    I've even set visibility to true JUST IN CASE
    ie all i do is change _root.circle to _root.cur
    and .... nada.
    AND _root.cur IS DEFINITELY on the screen and all xml
    components have been loaded into it. (it is a slide with a dynamic
    picture and dynamic type and it 100% works)
    has anyone had this insanity happen before?
    is this an error where flash cannot attach movie or duplicate
    a clip that has dynamic contents???

  • Updating flash from a dynamically changing XML file

    Creating a non-interactive status display: I want to have the
    flash display reflect data in a server-based XML-file. So far this
    is easy. But I want the display to change everytime the XML file
    changes-- in order to reflect status changes. I've used an
    XMLConnector and specified it and the trigger in the first frame.
    The Flash code catches and shows the XML values initially . But
    when I edit the XML file, the new values are never picked up by
    Flash- its almost as though the values are cached. How do I get
    Flash to regularly be updated from a changing XML file? I've also
    tried putting the trigger in a loop- but that doesn't work
    either.

    I DID find a solution with setInterval, but there is still a
    problem of a diffeent sort.
    When using XMLConnector, it appears that
    XMLConnector.trigger() is the thing that goes out and gets new data
    from the server. so:
    function checkForData():Void {
    myXML.trigger();
    <<handle new values of bound data>>
    var intervalID:Number = setInterval(checkForData, 10000);
    works very well by executing the trigger every 10000
    timeunits. This all works when run in the Flash Player. However, if
    I embed the thing in a webpage (with either FireFox or IE7 or 6),
    It stops triggering after the first time. Interestingly if I also
    run the Flash Player version, then the web version keeps updating,
    but stops if I kill the Player. So, I'm wondering: whats up with
    this?

  • Change PaymentAmountText value in XML Data file of Format Payment Instructr

    How to change the value of PaymentAmountText in XML file generated during of IBY_FD_PAYMENT_FORMAT module: Format Payment Instructions?? This XML Data file is being used by the Check Print rtf template.
    The checks will be used for a Singapore$ (S$) Bank account and USD$ Bank account.
    For the S$ check in XML data file :
    <PaymentAmountText>Eighty-Five Dollars And Sixty***********************</PaymentAmountText> for S$85.60
    For the USD$ check in XML data file:
    <PaymentAmountText>Eighty-Five Dollars And Sixty Cents***********************</PaymentAmountText> for USD$85.60
    I have to add 'cents' for the value of the S$ check.
    It looks to me that since it shows for USD and not for SGD, that one can change this in some kind of set up issue. But where and how?? Or can I manipulate this value in the rtf template too??
    Edited by: user1596364 on 24-mei-2012 8:54

    I have solved my problem in following way.
    For example, I would like 'POUNDS' instead of 'DOLLARS'. Currently my check reads 1000 Dollars and 50 cents. It should read 1000 Pounds and 50 pennies
    You need to change the verbiage in the options field for the payment format. (This is the explanation for GUI users.)
    Copy your Format Payment and add some options to it to make the verbiage read Pounds and pennies. Then create a new Payment Format that uses this new Format Payment. Then put this new Payment Format on the Bank Payment Document for the bank account that needs to pay in Irish Pounds.
    1. Define a new Payment Program under System Administrator.
    Navigate to Concurrent -> Program -> Define
    Query up the Evergreen payment program you are using (ex. APXPBFEG).
    2. Click on the 'Copy to' button.
    Enter a value in the 'Program' field type, for example, "Irish Pounds Program".
    Enter a value in the 'Short name' field type, for example, "APXPBIPP".
    3. Edit the Options field in the Executable zone (Do not click the 'Parameters' button.) In the 'Options' field, enter the following 4 options on one line with one blank space between each option:
    P_UNIT_SINGULAR="Pound"
    P_UNIT_PLURAL="Pounds"
    P_SUB_UNIT_SINGULAR="penny"
    P_SUB_UNIT_PLURAL="pennies"
    (For other currencies, replace "Pound" with "Lira", "Peso",etc.)

  • Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type a

    Dear Team,
    Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type. Could you please do needful. Thank you

    Hello,
    most recent patches for IGS and kernel installed. Now it works.

  • Form tab order changes when data is emailed as .xml

    .xml data is in a different tab order on the pdf. form   Why is the data order changing, when user uses the submit by email button?

    Hello Paul,
    I tried tried and tried ..But I found no solutions for it . Could you please help me a bit ??
    Thanks.
    Bibhu.

  • Changes to xml data in clob

    Hi,
    I have a table with xml_data in long raw form , i am converting the data in long raw to clob this process is working fine .
    but later i need to make changes to the xml_data in the clob , when the xml data is small the changes occur but in case of huge xml data the process gets hanged . I am using dbms_lob.instr , dbms_lob.substr function and a procedure for replace as there is not built in dbms_lob.replace function.....
    can anyone plzzzzzzzzz help me out with the same.......... its urgent
    Message was edited by:
    user500620

    Thank you, Kamal. I am learning as I going along with the project : )
    I do understand the examples that you have provided me with.
    This is the table structure I query against. (table name audit_v3)
    (column : adt_xml_desc CLOB )
    select to_char(
    substr(a.adt_xml_desc,
    INSTR(a.adt_xml_desc, '<CONTACT_HISTORY>',1,1),
    INSTR(a.adt_xml_desc, '</CONTACT_HISTORY>',1,1)-INSTR(a.adt_xml_desc, '<CONTACT_HISTORY>',1,1)+18 )
    from audit_v3 a
    where a.adt_id = 7397337;
    The result that I get = <CONTACT_HISTORY><USER><USER_ID>W951FVK</USER_ID><FIRST_NAME>Krishna</FIRST_NAME><LAST_NAME>Rajamani</LAST_NAME></USER><CONSUMER><CONS_SEQ_NBR>0</CONS_SEQ_NBR></CONSUMER></CONTACT_HISTORY>
    Now I want to store it in a varchar2 variable and then pass it to the xmltype to get individual data values. This is where I am having issue with.
    1. Do I store the value above in a varchar2?
    2. Can I pass the variable into the xmltype?
    Thank you very much, Kamal.
    declare
    xml xmltype ;
    test1 varchar2(1000);
    begin
    select to_char(v.adt_xml_desc) into test1 from audit_v3 v where v.adt_id = 7397337;
    xml := xmltype('''' ||test1||'''');
    /* xml := xmltype('<EVENT>
    <SWTSUPDATE TYPE="1">
    <MEMBERID>9822598</MEMBERID>
    <DATETIME>Fri Jun 09 14:51:33 CDT 2006</DATETIME>
    <USERID>W951FVK</USERID>
    </SWTSUPDATE>
    <CONTACT_HISTORY>
    <USER>
    <USER_ID>W951FVK</USER_ID>
    <FIRST_NAME>Krishna</FIRST_NAME>
    <LAST_NAME>Rajamani</LAST_NAME>
    </USER>
    <CONSUMER>
    <CONS_SEQ_NBR>1387445</CONS_SEQ_NBR>
    <FIRST_NAME>SPRINGHOUSE</FIRST_NAME>
    <LAST_NAME>ELLIS</LAST_NAME>
    </CONSUMER>
    </CONTACT_HISTORY>
    </EVENT>') ;
    dbms_output.put_line(xml.extract('/EVENT/CONTACT_HISTORY/USER/LAST_NAME/text()').getStringVal()) ;
    end ;

  • How to change the date format in xml form?

    hi,
    How to change the date format in xml form?
    For example:  11/20/2008 3:00:03 PM    ->   11-20 03:00
    Any opinions greatly appreciated!
    Thanks.
    Edited by: ke wenxing on Dec 2, 2008 8:33 AM

    You could go to System - User Profile - Own Data would take you to the "maintain user profile screen"
    Click the defaults button and change the date format.This changes date format for all the dates in your login.

  • XML Publisher: Need to change OKCTERMSDS Data Source

    My client requires that the XML Publisher Sourcing Template and the Contract
    Terms Template be customised to fit in with their coroprate look-and-feel.
    Whilst I have no issue with being able to change the XSL to create a new
    Template, the underlying XDO Data Sources for these two Templates do not
    contain all of the fields that I require.
    For example, my Customer requires the RFQ/RFI Description field on the final
    output; this does not appear in the XML data file.
    Normally the Short Name on a Data Source relates to a Concurrent Manager
    Program Short Name, but I am unable to find any Programs relating to
    PON_DATA_SOURCE or OKCTERMSDS.
    My questions are:
    1) How are these XML files generated?
    2) Can the "programs" behind the XML generation be changed?

    The XML for the documents are generated by the product code using BC4J XML generation. No concurrent program is involved in it.
    As regards to including additional fields from Sourcing documents into the XML generated, you can use the BC4J extension fwk to extend the ViewObject that generates XML and modify the query to include any additional fields as needed.
    All the above assumes knowledge of Oracle Application Framework and the customization fwk. There is a Metalink Note (dont know the exact id) which explains how to extend BC4J objects and deploy them.

Maybe you are looking for

  • Lightbox won't work - opens in a new page or not at all

    Okay, so I am trying to get a lightbox to work for my ICT coursework (for an eportfolio) that is due in on the 26th April 2013. I have spent hours on this and have gotten nowhere and now I've resorted to asking you bright people to help ;_; So I foun

  • Power Map Add IN to Trial Version of Office 365 Pro PLus

    Hi I have downloaded the Trial of Office 365 Pro Plus and have also downloaded the Power Query Add in which I have also installed. However I can't install the Power Map add in as it says that I don't have the correct version of excel, but this is bec

  • RAM or Graphics?

    I use a program called WoW Model Viewer through parallels which shows model animations from World of Warcraft. When the animations are bigger / closer to screen, it starts dropping frames and lags. Which is needed to improve the frame rate on animati

  • How do I clear recent searches from Safari?

    When I type www in the search bar of safari, a list of address that I visited before will disappear. How do I clear this recent searches from Safari? Thanks

  • TS1362 On one purchased album some songs stop half way through.

    Are these files corrupted? If so can I re-download working files?