Load XML with flashvars?

Hey folks
I have a flash photo gallery that uses XML to tell the flash
what pics to load in and display. Works really great but I want to
take it a step further and be able to specify the xml file being
loaded from HTML. I guess using Flashvars unless there's another
method that works better?
in my actionscript, I have this line
xmlData.load("images.xml");
and that's telling it to load in the xml file that has the
info for all the pics
is there any way to replace that with flash vars and actually
have it work?
What we're trying to do is have a different photo gallery on
each page, and instead of making a separate flash movie & xml
for each one, we want to just have 1 "gloabal" flash movie and then
just a different xml file for each different gallery.
Anyone have any ideas how I can get it to work?
I know it's probably some easy little thing I keep missing
:(

You just need to replace the file name in:
xmlData.load("images.xml"); with
your variable name, set by FlashVars. I'd suggest using
SWFObject to set the
flash var - it makes it really easy.
Example:
<script type="text/javascript">
var so = new SWFObject("gallery.swf", "gallery", "400",
"300", "8",
"#FFFFFF");
so.addVariable("xmlFile", "gallery1.xml");
so.write("flashcontent");
</script>Then in Flash:
xmlData.load(xmlFile);
http://blog.deconcept.com/swfobject/
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/

Similar Messages

  • Loading XML with Flashvars?

    Hey folks
    I have a flash photo gallery that uses XML to tell the flash
    what pics to load in and display. Works really great but I want to
    take it a step further and be able to specify the xml file being
    loaded from HTML. I guess using Flashvars unless there's another
    method that works better?
    in my actionscript, I have this line
    xmlData.load("images.xml");
    and that's telling it to load in the xml file that has the
    info for all the pics
    is there any way to replace that with flash vars and actually
    have it work?
    What we're trying to do is have a different photo gallery on
    each page, and instead of making a separate flash movie & xml
    for each one, we want to just have 1 "gloabal" flash movie and then
    just a different xml file for each different gallery.
    Anyone have any ideas how I can get it to work?
    I know it's probably some easy little thing I keep missing
    :(

    Answered in .actionscript... try not to crosspost.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Load XML with dynamic filename

    Hi,
    I am trying to create a load xml function where I can send
    the filname to load to the function, however I get a syntax error
    with the following function, can anyone see what is wrong here?
    function loadXML(file){
    myXML:XML = new XML();
    myXML.ignoreWhite = true;
    myXML.onLoad = function(success) {
    if (success) {
    // Success
    } else {
    // fail
    myXML.load(path+file);
    Thanks for your advice

    I was trying to do the same thing and came across this great
    tutorial. I think your syntax is just a little off.
    myXML=new XML();
    myXML.ignoreWhite=true;
    myXML.onLoad=function(ok){
    if(ok){
    //trace('data loaded');
    allData=this.firstChild.childNodes;
    for(i=0;i<allData.length;i++){
    trace(allData
    .attributes.text);
    }else{
    trace('error');
    myXML.load('gridTest.xml');
    <?xml version="1.0" encoding="iso-8859-1"?>
    <nav>
    <but text="home">
    <heading>You are at Home</heading>
    <content>This is the text that is displayed when click
    on home</content>
    </but>
    <but text="About Us">
    <heading>You are at the about us
    section</heading>
    <content>This is the text that is displayed when click
    on about us</content>
    </but>
    <but text="Contact"></but>
    <heading>You are at Contact</heading>
    <content>This is the text that is displayed when click
    on Contact</content>
    </nav>

  • How to load xml with large base64 element using sqlldr

    Hi,
    I am trying to load xml data onto Oracle 10gR2. I want to use standard sqlldr tool if possible.
    1) I have registered my schema with succes:
    - Put the 6kbytes schema into a table
    - and
    DECLARE
    schema_txt CLOB;
    BEGIN
    SELECT text INTO schema_txt FROM schemas;
    DBMS_XMLSCHEMA.registerschema ('uddkort.xsd', schema_txt);
    END;
    - Succes: I can create table like:
    CREATE TABLE XmlTest OF XMLTYPE
    XMLSCHEMA "uddkort.xsd"
    ELEMENT "profil"
    - USER_XML_TABLES shows:
    TABLE_NAME,XMLSCHEMA,SCHEMA_OWNER,ELEMENT_NAME,STORAGE_TYPE
    "XMLTEST","uddkort.xsd","THISE","profil","OBJECT-RELATIONAL"
    2) How can I load XML data into this?
    - One element of the schema is <xs:element name="billede" type="xs:base64Binary" minOccurs="0"/>
    - This field in data can be 10kbytes or more
    I have tried many control files - searching the net, but no luck so far.
    Any suggestions?
    /Claus, DK

    - One element of the schema is <xs:element name="billede" type="xs:base64Binary" minOccurs="0"/>
    - This field in data can be 10kbytes or moreThe default mapping in Oracle for this type is RAW(2000), so not sufficient to hold 10kB+ of data.
    You'll have to annotate the schema in order to specify a mapping to BLOB datatype.
    Something along those lines :
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb">
    <xs:element name="image" xdb:defaultTable="IMAGES_TABLE">
      <xs:complexType>
        <xs:sequence>
          <xs:element name="name" type="xs:string"/>
          <xs:element name="content" type="xs:base64Binary" xdb:SQLType="BLOB"/>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    </xs:schema>http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb05sto.htm#sthref831
    Then :
    SQL> begin
      2   dbms_xmlschema.registerSchema(
      3   schemaURL => 'image.xsd',
      4   schemaDoc => '<?xml version="1.0"?>
      5  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb">
      6  <xs:element name="image" xdb:defaultTable="IMAGES_TABLE">
      7    <xs:complexType>
      8      <xs:sequence>
      9        <xs:element name="name" type="xs:string"/>
    10        <xs:element name="content" type="xs:base64Binary" xdb:SQLType="BLOB"/>
    11      </xs:sequence>
    12    </xs:complexType>
    13  </xs:element>
    14  </xs:schema>',
    15   local => true,
    16   genTypes => true,
    17   genTables => true,
    18   enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_NONE
    19   );
    20  end;
    21  /
    PL/SQL procedure successfully completed
    SQL> insert into images_table
      2  values(
      3    xmltype(bfilename('TEST_DIR', 'sample-b64.xml'), nls_charset_id('AL32UTF8'))
      4  );
    1 row inserted
    where "sample-b64.xml" looks like :
    <?xml version="1.0" encoding="UTF-8"?>
    <image>
    <name>Collines.jpg</name>
    <content>/9j/4AAQSkZJRgABAgEBLAEsAAD/7QlMUGhvdG9zaG9wIDMuMAA4QklNA+0KUmVzb2x1dGlvbgAA
    AAAQASwAAAABAAEBLAAAAAEAAThCSU0EDRhGWCBHbG9iYWwgTGlnaHRpbmcgQW5nbGUAAAAABAAA
    AHg4QklNBBkSRlggR2xvYmFsIEFsdGl0dWRlAAAAAAQAAAAeOEJJTQPzC1ByaW50IEZsYWdzAAAA
    O9r8FHXdH4LDSSUHoImAmcIcQPwWAkkh3ogKI404WGkkkO8Po/EpmmCYWEkkru7z/FJg9sRqsFJJ
    XR3iPZMJN1HmsFJJXT6u+3UQdJUJj7lhpJKHV32dh96i3Qx8lhJJK7u9w4jw7p+SCsBJJDukQ7Tu
    VM6Ln0klHo7rjEeak0rASST0f//Z</content>
    </image>BTW, open question to everyone...
    XMLTable or XMLQuery don't seem to work to extract the data as BLOB :
    SQL> select x.image
      2  from images_table t
      3     , xmltable('/image' passing t.object_value
      4         columns image blob path 'content'
      5       ) x
      6  ;
    ERROR:
    ORA-01486: size of array element is too large
    no rows selectedhowever this is OK :
    SQL> select extractvalue(t.object_value, '/image/content') from images_table t;
    EXTRACTVALUE(T.OBJECT_VALUE,'/IMAGE/CONTENT')
    FFD8FFE000104A46494600010201012C012C0000FFED094C50686F746F73686F7020332E30003842
    494D03ED0A5265736F6C7574696F6E0000000010012C000000010001012C0000000100013842494DIs there a known restriction when dealing with LOB types?
    Edited by: odie_63 on 17 nov. 2011 19:27

  • DMP 4310 load swf with flashvars

    Hi,
    I am using dmp 4310 and i want to load a swf file using flashvars. This swf is loaded through another swf (a wrapper swf) with the "MovieClip Loader Object" (AS2). When i load the swf using http request i do not have any prblems (eg clipLoader.loadMovie("http://10.0.0.1/swfTest.swf?flashVar1=test1")). The problem is that i cannot get the flashvars by loading the same swf file locally (eg clipLoader.loadMovie("file:///tmp/ftproot/usb_1/files/swfTest.swf?flashVar1=test1")). Is there any way to get the flashvar? Also, is there any way to access the swf file (with the flashvars) using the internal http service (eg http://localhost/...swfTest.swf?flasvar1=test1  -- where localhost is the player itself).
    Thank you in advance for your response!

    Suddenly that code in the following gives me some error
    var langPath = root.LoaderInfo.parameters["xmlFilePath"]+root.LoaderInfo.parameters["lang"];
    my_ssp.xmlFilePath = langPath;
    var fileType = root.LoaderInfo.parameters["xmlFileType"];
    my_ssp.xmlFileType = fileType;
    Access of possibly undefined property LoaderInfo through a reference with static type flash.display:DisplayObject.
    The only code snippet works is
    var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
    for (var param in paramObj) {
       if (param == "xmlFilePath") {
          my_ssp.xmlFilePath = paramObj[param];
       if (param == "xmlFileType") {
          my_ssp.xmlFileType = paramObj[param];

  • Load XML with urlstring variables

    I have a flash page flipping book that I bought at activeden.  It uses an XML file to load in the images of the book to flip through.  I have created a PHP file that takes an event ID and creates a custom XML file for flash.  How do I have flash load an xml file like this?  Instead of passing:
    _xmlLoader.loadXml("setup.xml");
    I would like to pass:
    _xmlLoader.loadXml("setup.php?id=" + eid);
    That code doesn't seem to be working for me though.  Am I missing something here?

    Then I don't know what else to offer.  As long as the xml is well formed there should be no problem, unless you are testing locally and don't have PHP processing available locally.  You will be better off overall testing this on a server.
    As my policy I ignore/delete private messages that involve postings.  My voluntary attempts to help are strictly in the puiblic forums.

  • Loading XML with defined DTD

    Hi all!
    I create XML and DTD. All working fine when I open it in MS XMLNotepad.
    But when I try to load my XML in validating mode I get error
    Error opening external DTD 'ReportsDTD.dtd'.
    I open my XML through class loader as resource stream and then load it from this stream.
    In XML I have such string
    <!DOCTYPE DEFINITIONS SYSTEM "ReportsDTD.dtd">
    Both xml and dtd are located in same directory.
    Can anybody explain me whats wrong?
    Mike

    Reading from a stream, the parser has no idea what the "current directory" is.
    So, when you reference a relative URL like "ReportsDTD.dtd", this means to find the DTD in the "same directory" as the current XML document.
    You need to properly set the Base URL of the original input stream so that the parser knows what the base directory is.
    Or, alternatively you can use getResource on the Class object that returns a URL and that has embedded within it the correct base URL "directory" info to work correctly.
    So, if I have a "foo.xml" file that references "foo.dtd" inside, I can use the following code:
    import java.net.URL;
    import oracle.xml.parser.v2.*;
    public class Class1
    public static void main(String[] a) throws Throwable {
    Class1 c = new Class1();
    URL u = c.getClass().getResource("foo.xml");
    DOMParser p = new DOMParser();
    p.parse(u);
    p.getDocument().print(System.out);
    public Class1() { }
    }Steve Muench
    Development Lead, Oracle XSQL Pages Framework
    Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
    Author, Building Oracle XML Applications
    null

  • Load XML with SQL*Loader

    Goodmorning,
    I have this XML file:
    bq. &lt;?xml version="1.0"?&gt; \\     &lt;Header&gt; \\     &lt;DocName&gt;NOMRES&lt;/DocName&gt; \\     &lt;DocVersion&gt;3.2&lt;/DocVersion&gt; \\     &lt;Sender&gt;TIGF&lt;/Sender&gt; \\     &lt;Receiver&gt;TIENIG&lt;/Receiver&gt; \\     &lt;DocNumber&gt;120731&lt;/DocNumber&gt; \\     &lt;DocDate&gt;2008-12-14T16:36:43.9288481+01:00&lt;/DocDate&gt; \\     &lt;DocType&gt;J&lt;/DocType&gt; \\     &lt;Contract&gt;TIGF-TIENIG&lt;/Contract&gt; \\     &lt;/Header&gt; \\     &lt;ListOfGasDays&gt; \\     &lt;GasDay&gt; \\     &lt;Day&gt;2008-12-15&lt;/Day&gt; \\     &lt;BusinessRuleFlag&gt;Processed by adjacent TSO&lt;/BusinessRuleFlag&gt; \\     &lt;ListOfLibri&gt; \\     &lt;Libro&gt; \\     &lt;Logid&gt;62&lt;/Logid&gt; \\     &lt;Isbn&gt;88-251-7194-3&lt;/Isbn&gt; \\     &lt;Autore&gt;Elisa Bertino&lt;/Autore&gt; \\     &lt;Titolo&gt;Sistemi di basi di dati - Concetti e architetture&lt;/Titolo&gt; \\     &lt;Anno&gt;1997&lt;/Anno&gt; \\     &lt;Collocazione&gt;Dentro&lt;/Collocazione&gt; \\     &lt;Genere&gt;Informatica&lt;/Genere&gt; \\     &lt;Lingua&gt;Italiano&lt;/Lingua&gt; \\     &lt;/Libro&gt; \\     &lt;Libro&gt; \\     &lt;Logid&gt;63&lt;/Logid&gt; \\     &lt;Isbn&gt;978-88-04-56981-7&lt;/Isbn&gt; \\     &lt;Autore&gt;Dan Brown&lt;/Autore&gt; \\     &lt;Titolo&gt;Crypto&lt;/Titolo&gt; \\     &lt;Anno&gt;1998&lt;/Anno&gt; \\     &lt;Collocazione&gt;Dentro&lt;/Collocazione&gt; \\     &lt;Genere&gt;Thriller&lt;/Genere&gt; \\     &lt;Lingua&gt;Italiano&lt;/Lingua&gt; \\     &lt;/Libro&gt; \\     &lt;/ListOfLibri&gt; \\     &lt;/GasDay&gt; \\     &lt;GasDay&gt; \\     &lt;Day&gt;2008-12-15&lt;/Day&gt; \\     &lt;BusinessRuleFlag&gt;Confirmed&lt;/BusinessRuleFlag&gt; \\     &lt;ListOfLibri&gt; \\     &lt;Libro&gt; \\     &lt;Logid&gt;64&lt;/Logid&gt; \\     &lt;Isbn&gt;978-88-6061-131-4&lt;/Isbn&gt; \\     &lt;Autore&gt;Stephen King&lt;/Autore&gt; \\     &lt;Titolo&gt;Cell&lt;/Titolo&gt; \\     &lt;Anno&gt;2006&lt;/Anno&gt; \\     &lt;Collocazione&gt;Dentro&lt;/Collocazione&gt; \\     &lt;Genere&gt;Horror&lt;/Genere&gt; \\     &lt;Lingua&gt;Italiano&lt;/Lingua&gt; \\     &lt;/Libro&gt; \\     &lt;Libro&gt; \\     &lt;Logid&gt;65&lt;/Logid&gt; \\     &lt;Isbn&gt;1-56592-697-8&lt;/Isbn&gt; \\     &lt;Autore&gt;David C. Kreines&lt;/Autore&gt; \\     &lt;Titolo&gt;Oracle SQL - The Essential Reference&lt;/Titolo&gt; \\     &lt;Anno&gt;2000&lt;/Anno&gt; \\     &lt;Collocazione&gt;Dentro&lt;/Collocazione&gt; \\     &lt;Genere&gt;Informatica&lt;/Genere&gt; \\     &lt;Lingua&gt;Inglese&lt;/Lingua&gt; \\     &lt;/Libro&gt; \\     &lt;Libro&gt; \\     &lt;Logid&gt;66&lt;/Logid&gt; \\     &lt;Isbn&gt;978-88-6061-131-4&lt;/Isbn&gt; \\     &lt;Autore&gt;Stephen King&lt;/Autore&gt; \\     &lt;Titolo&gt;Cell&lt;/Titolo&gt; \\     &lt;Anno&gt;2006&lt;/Anno&gt; \\     &lt;Collocazione&gt;Dentro&lt;/Collocazione&gt; \\     &lt;Genere&gt;Horror&lt;/Genere&gt; \\     &lt;Lingua&gt;Italiano&lt;/Lingua&gt; \\     &lt;/Libro&gt; \\     &lt;/ListOfLibri&gt; \\     &lt;/GasDay&gt; \\     &lt;/ListOfGasDays&gt; \\     &lt;ListOfGeneralNotes&gt; \\     &lt;GeneralNote&gt; \\     &lt;Code&gt;100&lt;/Code&gt; \\     &lt;Message&gt;Rien a signaler&lt;/Message&gt; \\     &lt;/GeneralNote&gt; \\     &lt;/ListOfGeneralNotes&gt;
    and use this control file:
    bq. load data \\ infile "Esempio.XML" "str '&lt;/Libro&gt;'" \\ BADFILE "libri.bad" \\ DISCARDFILE "libri.dis" \\ DISCARDMAX 10000 \\ truncate \\ into table LIBRI \\ TRAILING NULLCOLS \\ ( \\ dummy filler terminated by '&lt;Libro&gt;', \\ Logid enclosed by "&lt;Logid&gt;" and "&lt;/Logid&gt;", \\ Isbn enclosed by "&lt;Isbn&gt;" and "&lt;/Isbn&gt;", \\ Autore enclosed by "&lt;Autore&gt;" and "&lt;/Autore&gt;", \\ Titolo enclosed by "&lt;Titolo&gt;" and "&lt;/Titolo&gt;", \\ Anno enclosed by "&lt;Anno&gt;" and "&lt;/Anno&gt;", \\ Collocazione enclosed by "&lt;Collocazione&gt;" and "&lt;/Collocazione&gt;", \\ Genere enclosed by "&lt;Genere&gt;" and "&lt;/Genere&gt;", \\ Lingua enclosed by "&lt;Lingua&gt;" and "&lt;/Lingua&gt;" \\ )
    being uploaded but I always send error in the first record.
    Someone said me why? differently if I set the control file?
    thanks

    I have the following XML data file and had the same loading issue.
    <?xml version="1.0"?>
    <Settlement_Info>
    <file_header>
    <agency_id>129</agency_id>
    <agency_form_number/>
    <omb_form_number/>
    <treasury_account_symbol/>
    <percent_of_amount>100.00</percent_of_amount>
    </file_header>
    <body_item>
    <item_header>
    <deposit_ticket_number>001296</deposit_ticket_number>
    <total_amount_of_sf215>1,318,542,280.16</total_amount_of_sf215>
    <number_of_collections>3,929</number_of_collections>
    <total_of_all_collections>1,318,542,280.16</total_of_all_collections>
    </item_header>
    <item_detail_record>
    <paygov_tx_id>FMG4</paygov_tx_id>
    <agency_tx_id>0000015901</agency_tx_id>
    <collection_amount>8,688.70</collection_amount>
    <collection_method>ACH</collection_method>
    <deposit_ticket_number>96</deposit_ticket_number>
    <settlement_date>12/15/2009</settlement_date>
    <collection_status>SETTLED</collection_status>
    <submitter_name>MORRIS</submitter_name>
    </item_detail_record>
    <item_detail_record>
    <paygov_tx_id>FMG5</paygov_tx_id>
    <agency_tx_id>0000015902</agency_tx_id>
    <collection_amount>42,198.66</collection_amount>
    <collection_method>ACH</collection_method>
    <deposit_ticket_number>001296</deposit_ticket_number>
    <settlement_date>12/15/2009</settlement_date>
    <collection_status>SETTLED</collection_status>
    <submitter_name>CASTLE</submitter_name>
    </item_detail_record>
    <item_detail_record>
    <paygov_tx_id>4FMG6</paygov_tx_id>
    <agency_tx_id>0000015903</agency_tx_id>
    <collection_amount>57,278.25</collection_amount>
    <collection_method>ACH</collection_method>
    <deposit_ticket_number>001296</deposit_ticket_number>
    <settlement_date>12/15/2009</settlement_date>
    <collection_status>SETTLED</collection_status>
    <submitter_name>FRANKLIN</submitter_name>
    </item_detail_record>
    </body_item>
         <file_footer>
         <file_name>ACHActivityFile_12152009.xml</file_name>
         <file_creation_date>12/15/2009 10:08:31 AM</file_creation_date>
         </file_footer>
         </Settlement_Info>
    Control file
    load data
    infile 'C:\sample1.xml' "str '</item_detail_record>'"
    truncate
    into table xml_test2
    TRAILING NULLCOLS
    dummy filler terminated by "<item_detail_record>",
    paygov_tx_id enclosed by "<paygov_tx_id>" and "</paygov_tx_id>",
    agency_tx_id enclosed by "<agency_tx_id>" and "</agency_tx_id>",
    collection_amount enclosed by "<collection_amount>" and "</collection_amount>",
    collection_method enclosed by "<collection_method>" and "</collection_method>",
    deposit_ticket_number enclosed by "<deposit_ticket_number>" and "</deposit_ticket_number>",
    settlement_date enclosed by "<settlement_date>" and "</settlement_date>",
    collection_status enclosed by "<collection_status>" and "</collection_status>",
    submitter_name enclosed by "<submitter_name>" and "</submitter_name>"
    table strucutre
    CREATE TABLE XML_TEST2
    PAYGOV_TX_ID VARCHAR2(30 BYTE),
    AGENCY_TX_ID VARCHAR2(30 BYTE),
    COLLECTION_AMOUNT VARCHAR2(30 BYTE),
    COLLECTION_METHOD VARCHAR2(30 BYTE),
    DEPOSIT_TICKET_NUMBER VARCHAR2(30 BYTE),
    SETTLEMENT_DATE VARCHAR2(30 BYTE),
    COLLECTION_STATUS VARCHAR2(30 BYTE),
    SUBMITTER_NAME VARCHAR2(60 BYTE)
    If I reomove the <file_header> and <item_header> blocks, the control file works perfectly, otherwise it skips the first record.
    thanks
    Reji

  • XML with MTOM-Attachments for BW 7.X

    Hi all,
    My question is regarding loading XML with MTOM-Attachments into BW 7.X.
    It is possible to load XML-Files with a push via a web service DataSource into BW 7.X. The new NetWeaver-Release 7.1 is capable of handling XML-Files with MTOM-attachments. What I do not understand is if and how the Web Service DataSource and the MTOM capabilities of NetWeaver work together.
    Does the capability of NetWeaver 7.1 enable BW to handle MTOM? If it is possible to use MTOM with BW, do I need Usage Type  PI to bring MTOM attachments into BW?
    I have checked several links regarding MTOM, e.g.
    http://help.sap.com/saphelp_nwpi71/helpdata/en/76/fc9c3d9a864aef8139d70759a499fc/frameset.htm 
    or
    https://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/fcbc97b6-0a01-0010-6594-f8208ff674f9&language=en
    Unfortunately I could not find an answer to my question there.
    Thanks and Regards,
    Felix

    Thanks Tammy for the quick reply. Apologies for asking this naive question but since these are planned innovations and subject to change - this means we will not get any of the following benefits if we migrate to BW 7.4 from BW 7.02 and use BO4.1 on top of it now. Yes integrated planning is not applicable to our client.
    SAP BW integrated planning
     SAP BW integrated planning and planning application kit support in Design Studio
     Planning on SAP BW unified models in SAP BW 7.4 for Analysis Office, and Design Studio
    Data connectivity  (Planned Innovation)
     Direct data access to SAP BW for Lumira
    User experience
     BW integrated planning for Design Studio support
     Lumira integration with SAP applications

  • Loading swf with XML on Click

    Hi all, can anyone help
    can anyone shine a little light onto a little confusion I am having, I have a menu that already loads in images via an XML file on a menu, what I am trying to do is when an image/meni Item is click I would like to load in an swf into the same place as the image Item loads into! am I making any sense.
    on a click event, do I use in the XML file the <link>link to swf</link>   ????
    this is what I have in my xml file that loads in the images so far;
    <image name="image 12" path="img/img12.jpg"
    title="Lorem ipsum 12"
    text="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo 12" />
    what I am getting confused with is what I also put within the AS, I am sure it is not alot but I'm just not sure what needs to go where??
    this is what I have within the AS that loads in XML, I hope its ok to paste this code, never like posting to much code incase is scares people off, I just don't want to leave anything out, hope thats ok with everyone:eek:
    // Use URLLoader to load XML
    xmlLoader = new URLLoader();
    xmlLoader.dataFormat = URLLoaderDataFormat.TEXT;
    // Listen for the complete event
    xmlLoader.addEventListener(Event.COMPLETE, onXMLComplete);
    xmlLoader.load(new URLRequest("data.xml")); 
    stage.addEventListener( MouseEvent.MOUSE_WHEEL, onMouseWheel );
    //———————————————EVENT HANDLERS
    private function onXMLComplete(event:Event):void
    // Create an XML Object from loaded data
    var data:XML = new XML(xmlLoader.data);
    // Now we can parse it
    var images:XMLList = data.image;
    for(var i:int = 0; i < images.length(); i++)
    // Get info from XML node
    var imageName:String = images[i].@name;
    var imagePath:String = images[i].@path;
    var titles:String = images[i].@title;
    var texts:String = images[i].@text;
    // Load images using standard Loader
    var loader:Loader = new Loader();
    // Listen for complete so we can center the image
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImageComplete);
    loader.load(new URLRequest(imagePath));
    // Create a container for the loader (image)
    var holder:MovieClip = new MovieClip();
    holder.addChild(loader);
    var button_main:Button_mr = new Button_mr();   /
    holder.addChild(button_main);               
    var tooltip:ToolTip = new ToolTip();
    tooltip.field.text = titles;  //loads tooltip 1
    tooltip.field2.text = texts;  //loads tool tip 2
    tooltip.x = -350; 
    tooltip.y = 0;   
    holder.addChild(tooltip);
    // Same proceedure as before
    holder.buttonMode = true;
    holder.addEventListener( MouseEvent.CLICK, onMenuItemClick );
    // Add it to the menu
    circleMenu.addChild(holder);
    many thanks for any help!!!!

    1. Be sure in main.swf there is no masking or layering hiding
    the reflection area. A way to test quickly is to load in a plain
    master swf that is much larger than the externals swf.
    2. Know the weakness of loadMovie for timing issues that
    require the external movie to be fully loaded before actions are
    taken on it. I see a bunch of these in the code you posted. Best to
    use
    MovieClipLoader.onLoadInit
    before you attempt to access the external swf properties or code or
    add code.
    3. Be sure the code is firing on load and all objects are
    created. Add some trace statements for those objects.
    4. I noticed you do not use BitmapData so this may not be
    relevant but be sure to add
    System.security.allowDomain("*");
    to the main.swf as well as in external swfs and only if you
    are using the BitmapData class.
    5. As I started to look at the code a bit and noticed this
    item:
    There is no constructor for the Flash MovieClip class. You
    will not see a compiler error message because you do not have the
    code wrapped into a class.
    var home:MovieClip = new MovieClip();
    However it does not have impact on the code.
    better would be
    var home:MovieClip;

  • LOAD FILE with xml

    HI
    I want to load an xml file into a RDBMS table, using sunopsis xml driver.
    I try to use an other xml file than the initial that is defined in the driver url.
    I cannot run this instruction in a XML treatment before the interface :
    LOAD FILE "C:/AXYUS/SURSAUD/entree/sosmed1.xml" WITH DTD "C:/AXYUS/SURSAUD/entree/sosmed.dtd" REPLACE READONLY AUTO_UNLOCK
    the file doesn't change at alll and I always load the initial file ( sosmed.xml )
    any idea ?

    Make sure that you issue your LOAD FILE command
    - on the SAME Transaction (0, 1, 2, etc...) than the one used in the LKM,
    - with the SAME logical schema as the source table logical schema
    - and with the SAME Context (if you use the execution context - leave it unset).
    This should do the trick, and the connection created in the procedure will be reused in the interface, provided that you chain both in a package.
    Regards,
    -FX

  • Failed to load XML file with Content ID 'XYZ'

    Hello,
    We are using UCM Version:11.1.1.8.1DEV-2014-01-06 04:18:30Z-r114490 (Build:7.3.5.185) with site studio for creating templates and web sites.
    While switching to contribution mode, we find 'Failed to load XML file with Content ID 'XYZ' error.[Here XYZ is the local checkin content]
    In region we are using dynamic converter to convert the style of native document here below are region and its element details.
    <region  id="region3" name="Add_Content_Here" flags="1111111100100" metadata="xIdcProfile%3AisHidden%3Dtrue%26xTemplateType%3AisHidden%3Dtrue%26xShowInStaff%3AisHidden%3Dtrue%26xShowInVisitors%3AisHidden%3Dtrue%26xShowInFaculty%3AisHidden%3Dtrue%26xDiscussionCount%3AisHidden%3Dtrue%26xDiscussionType%3AisHidden%3Dtrue" dccommand="ssIncDynamicConversionByRule(SS_DATAFILE, 'Colleges_Template_Rule')">
          <!--$region3_ACTIONS="EIMPRS",region3_DCCOMMAND="ssIncDynamicConversionByRule(SS_DATAFILE, 'Colleges_Template_Rule')" -->
          <element  id="region3_element1" name="Editor" label="Editor" type="1" flags="111111111111111111111100000111100000000000001111001110111010001111101000000000000000000000000000">
            <!--$region3_element1="Add_Content_Here/Editor" -->
            <linktoregioncontent  createnewxml="true" createnewnative="false" choosemanaged="true" chooselocal="false" choosenone="false">
              <choosemanagedquerytext  corecontentonly="FALSE">
                <![CDATA[xWebsiteObjectType <Matches> `Data File` <OR> xWebsiteObjectType <Matches> `Native Document`]]>
              </choosemanagedquerytext>
            </linktoregioncontent>
          </element>
          <switchregioncontent  createnewxml="true" createnewnative="true" choosemanaged="true" chooselocal="false" choosenone="false">
            <createnewnativedoctypes >
              <![CDATA[.doc,.docx,.txt,.rtf]]>
            </createnewnativedoctypes>
            <choosemanagedquerytext  corecontentonly="FALSE">
              <![CDATA[xWebsiteObjectType <Matches> `Data File` <OR> xWebsiteObjectType <Matches> `Native Document`]]>
            </choosemanagedquerytext>
            <defaultmetadata >
              <![CDATA[xIdcProfile%3AisHidden%3Dtrue%26xTemplateType%3AisHidden%3Dtrue%26xCollegesList%3AisHidden%3Dtrue%26xShowInStudents%3AisHidden%3Dtrue%26xShowInStaff%3AisHidden%3Dtrue%26xShowInVisitors%3AisHidden%3Dtrue%26xShowInFaculty%3AisHidden%3Dtrue%26xArticleSection%3AisHidden%3Dtrue%26xDiscussionCount%3AisHidden%3Dtrue%26xDiscussionType%3AisHidden%3Dtrue%26dpTriggerValue%3DCSE]]>
            </defaultmetadata>
          </switchregioncontent>
        </region>
    <!--SS_BEGIN_OPENREGIONMARKER(region3)--><!--$SS_REGIONID="region3"--><!--$include ss_open_region_definition --><!--SS_END_OPENREGIONMARKER(region3)-->
    <!--SS_BEGIN_ELEMENT(region3_element1)--><!--$ssIncludeXml(SS_DATAFILE,region3_element1 & "/node()")--><!--SS_END_ELEMENT(region3_element1)-->
    <!--SS_BEGIN_CLOSEREGIONMARKER(region3)--><!--$include ss_close_region_definition --><!--SS_END_CLOSEREGIONMARKER(region3)-->
    Regardrs,
    Syed

    Hi Syed ,
    Add the following trace sections :
    requestaudit,sitestudio*,system + Full verbose tracing
    Clear the server output .
    Replicate the same steps and once error shows up , refresh server output and copy the logs to a text file and upload here .
    Thanks,
    Srinath

  • Xml publisher enterprise!!! create rtf file dynamically with load xml data

    i am new to xml publisher enterprise , i want a solution for this question ...
    i want create rtf file dynamically with loading xml data....means i wrote a program in jsp where the the output in xml file simultaneously create rtf file..but i enable load the xml data in rtf file but when i goto rtf file from where data in that load xml then it genrate the columns..but i want in dynamiclly to load the data will you please guide me ......

    Hi Atiq
    Im not quite clear on the requirement here:
    1. Do you just want to be able to extract the data and apply a template to the XML data from your jdp and render output?
    If so then you can use the XMLP APIs ... the are in the user guide. Particularly:
    RTFProcessor - converts RTF template to XSLFO stylesheet
    FOProcessor - takes, XML data, XSLFO stylesheet and output format and generates the required output.
    2. Do you want a template that will accept any data and just format it into rows and columns ? This can be written but your XML structure is going to have to be static, the data of course can be dynamic.
    Regards, Tim

  • Load xml - xls with OWB error "ORA-20011:....Start of root element expected

    Hi
    I need to load XML document into a table in Oracle warehouse builder.
    I've followed the steps as given in the user guide and I get the following error,
    ORA-20011: Error occurred while loading source XML document into the target database object PURCHASE_ORDERS.
    Base exception: Start of root element expected.
    ORA-06512: at "DC_DWH.WB_XML_LOAD_F", line 12
    ORA-06512: at "DC_DWH.WB_XML_LOAD", line 4
    ORA-06512: at line 7
    The steps are:
    DECLARE
    CONTROL_INFO VARCHAR2(200);
    BEGIN
    CONTROL_INFO := '<OWBXMLRuntime> <XMLSource> <file>c:\xml_test\y.xml</file> </XMLSource> <targets> <target XSLFile="c:\xml_test\y.xsl" dateFormat="yyyy.MM.dd">PURCHASE_ORDERS</target> </targets></OWBXMLRuntime>';
    DC_DWH.Wb_Xml_Load ( CONTROL_INFO );
    COMMIT;
    END;
    where:
    ------------- y.xml ----------------
    <purchaseOrder>
    <id>103123-4</id>
    <orderDate>2000-10-20</orderDate>
    <shipTo country="US">
    <name>Alice Smith</name>
    <street>123 Maple Street</street>
    <city>Mill Valley</city>
    <state>CA</state>
    <zip>90952</zip>
    </shipTo>
    <comment>Hurry, my lawn is going wild!</comment>
    <items>
    <item>
    <partNum>872-AA</partNum>
    <productName>Lawnmower</productName>
    <quantity>1</quantity>
    <USPrice>148.95</USPrice>
    <comment>Confirm this is electric</comment>
    </item>
    <item>
    <partNum>845-ED</partNum>
    <productName>Baby Monitor</productName>
    <quantity>1</quantity>
    <USPrice>39.98</USPrice>
    <shipDate>1999-05-21</shipDate>
    </item>
    </items>
    </purchaseOrder>
    -----------------y.xsl -------------------
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2004/07/xpath-functions" xmlns:xdt="http://www.w3.org/2004/07/xpath-datatypes">
    <SHIPTO_NAME>
    <xsl:value-of select="purchaseOrder/shipTo/name"/>
    </SHIPTO_NAME>
    <SHIPTO_STREET>
    <xsl:value-of select="purchaseOrder/shipTo/street"/>
    </SHIPTO_STREET>
    <SHIPTO_CITY>
    <xsl:value-of select="purchaseOrder/shipTo/city"/>
    </SHIPTO_CITY>
    </xsl:stylesheet>
    Any help is appreciated

    Hello,
    The error occurs as far as your XSL file has incorrect structure. Your have to transform incoming XML in so-called (by Oracle) canonical form i.e.:
    <ROWSET>
    <ROW>
    <FIELD_1>value-for-field-1</FIELD_1>
    <FIELD_N>value-for-field-N</FIELD_N>
    </ROW>
    </ROWSET>
    So, assuming your table has three fields : SHIPTO_NAME, SHIPT_STREET, SHIPTO_CITY, - your XSL file should look like following:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
    <xsl:template match=”/”>
    <ROWSET>
    <xsl:apply-templates select=”purchaseOrder”/>
    </ROWSET>
    </xsl:template>
    <xsl:template match=”purchaseOrder”>
    <ROW>
    <SHIPTO_NAME><xsl:value-of select=”shipTo/name”/></SHIPTO_NAME>
    <SHIPTO_STREET><xsl:value-of select=”shipTo/street”/></SHIPTO_STREET>
    <SHIPTO_CITY><xsl:value-of select=”shipTo/city”/></SHIPTO_CITY>
    </ROW>
    </xsl:template>
    </xsl:stylesheet>
    Hope this will help.

  • Problem with load XML data

    Hi.
    I have a problem this load XML data. For example: file name:
    01-05-2008.xml => in this file all data have date=01.05.2008.
    Once i load period 01.05.2008 to 10.05.2008 my app load 10 files.
    Sometimes some row this greater date stay earlier then row this
    smaller date. I don't know why this happend. Bellow part of code.
    Please help.
    P.S. sorry for my very bad english.

    Hi Lekser,
    ntsii is totally right.
    Calling httpservice send is a async operation, which means
    you don´t know when the result event of such operation will
    return.
    You can also sort your grid after a xml data file was loaded.
    At least it would guarantee that the entries appear in the
    right order.
    best regards,
    kcell

Maybe you are looking for

  • How to change Order and maintain other User ID in CHANGED_BY field in Orderadm_h

    Hi Frds, There is a funcationality that user can approve the order through Email, using FM 'CRM_STATUS_CHANGE_EXTERN_OW'  . When approving through Email the changed_by field in Orderadm_h table taking system batch name. so my ques is how can i change

  • EXT3-fs error (device sda6): in CONSOLE of CUCM 9.1

                       Hello my friends, After several days of having my CUCM working properly, the CUCM show me EXT3-fs error (device sda6): xxxxxx , my TFTP service is down and never go UP again. I restart the server and the problem didnt go away. Any

  • Flash crashed on publish

    Ok, this is an odd one: I have Flash CS3 and was editing a file. I'd published it loads of times and then came back to it. As soon as I tried to publish it, flash crashed. I'm now left with a version of Flash where I can create a new file and publish

  • Does anyone have battery problems with iPad mini retina?

    I am noticing that there may be an issue with my iPad Mini Retina battery. I will put to charge at night and in the morning it will say it is at 23% when I actually unplug it it changes to 100 or 93%. Is this happening to anyone else. Could it be I u

  • Standard Adobe Form for PO

    Hi All, I've read that MEDRUCK_PO can be used for adobe form of PO but I was also told this is not released and I need to create a PO form from scratch if I want an adobe form. Please advise. Thanks. Tyken