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.
Similar Messages
-
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/ -
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 adviceI 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 -
SQL data Load rule with Substitution variable
Hi,
I have a data load rule with MySQL as a data source. I have requirement where user does not want to see Current day data in cube and they keep changing days not to be loaded.
I have setup the substitution variable SUBv as '2009-11-04' and have scripts to update it daily.
Data Load rule in where condition contains
brand = 'HP' and region = 'east' and date <> &SUBv
Now, above where condition does not work for date <> &SUBv but if I set substitution variable SUBv as "brand = 'HP' and region = 'east' and date <> '2009-11-04' " and set load rule where condition with just &SUBv it would just work fine. I dont know whats wrong in 1st place.
I dont want to create multiple where condition in substitution variable (Don't we have limit on them?). I have 40+ load rules which might use this SUBv substitution variable if I find a way to define it so that it work as "brand = 'HP' and region = 'east' and date <> &SUBv"
Thanks,
VikramI did some research and came to know when using substitution variable in Load rule need to keep substitution variable first in string..
It worked out magically. -
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/ -
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?
MikeReading 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 -
Goodmorning,
I have this XML file:
bq. <?xml version="1.0"?> \\ <Header> \\ <DocName>NOMRES</DocName> \\ <DocVersion>3.2</DocVersion> \\ <Sender>TIGF</Sender> \\ <Receiver>TIENIG</Receiver> \\ <DocNumber>120731</DocNumber> \\ <DocDate>2008-12-14T16:36:43.9288481+01:00</DocDate> \\ <DocType>J</DocType> \\ <Contract>TIGF-TIENIG</Contract> \\ </Header> \\ <ListOfGasDays> \\ <GasDay> \\ <Day>2008-12-15</Day> \\ <BusinessRuleFlag>Processed by adjacent TSO</BusinessRuleFlag> \\ <ListOfLibri> \\ <Libro> \\ <Logid>62</Logid> \\ <Isbn>88-251-7194-3</Isbn> \\ <Autore>Elisa Bertino</Autore> \\ <Titolo>Sistemi di basi di dati - Concetti e architetture</Titolo> \\ <Anno>1997</Anno> \\ <Collocazione>Dentro</Collocazione> \\ <Genere>Informatica</Genere> \\ <Lingua>Italiano</Lingua> \\ </Libro> \\ <Libro> \\ <Logid>63</Logid> \\ <Isbn>978-88-04-56981-7</Isbn> \\ <Autore>Dan Brown</Autore> \\ <Titolo>Crypto</Titolo> \\ <Anno>1998</Anno> \\ <Collocazione>Dentro</Collocazione> \\ <Genere>Thriller</Genere> \\ <Lingua>Italiano</Lingua> \\ </Libro> \\ </ListOfLibri> \\ </GasDay> \\ <GasDay> \\ <Day>2008-12-15</Day> \\ <BusinessRuleFlag>Confirmed</BusinessRuleFlag> \\ <ListOfLibri> \\ <Libro> \\ <Logid>64</Logid> \\ <Isbn>978-88-6061-131-4</Isbn> \\ <Autore>Stephen King</Autore> \\ <Titolo>Cell</Titolo> \\ <Anno>2006</Anno> \\ <Collocazione>Dentro</Collocazione> \\ <Genere>Horror</Genere> \\ <Lingua>Italiano</Lingua> \\ </Libro> \\ <Libro> \\ <Logid>65</Logid> \\ <Isbn>1-56592-697-8</Isbn> \\ <Autore>David C. Kreines</Autore> \\ <Titolo>Oracle SQL - The Essential Reference</Titolo> \\ <Anno>2000</Anno> \\ <Collocazione>Dentro</Collocazione> \\ <Genere>Informatica</Genere> \\ <Lingua>Inglese</Lingua> \\ </Libro> \\ <Libro> \\ <Logid>66</Logid> \\ <Isbn>978-88-6061-131-4</Isbn> \\ <Autore>Stephen King</Autore> \\ <Titolo>Cell</Titolo> \\ <Anno>2006</Anno> \\ <Collocazione>Dentro</Collocazione> \\ <Genere>Horror</Genere> \\ <Lingua>Italiano</Lingua> \\ </Libro> \\ </ListOfLibri> \\ </GasDay> \\ </ListOfGasDays> \\ <ListOfGeneralNotes> \\ <GeneralNote> \\ <Code>100</Code> \\ <Message>Rien a signaler</Message> \\ </GeneralNote> \\ </ListOfGeneralNotes>
and use this control file:
bq. load data \\ infile "Esempio.XML" "str '</Libro>'" \\ BADFILE "libri.bad" \\ DISCARDFILE "libri.dis" \\ DISCARDMAX 10000 \\ truncate \\ into table LIBRI \\ TRAILING NULLCOLS \\ ( \\ dummy filler terminated by '<Libro>', \\ Logid enclosed by "<Logid>" and "</Logid>", \\ Isbn enclosed by "<Isbn>" and "</Isbn>", \\ Autore enclosed by "<Autore>" and "</Autore>", \\ Titolo enclosed by "<Titolo>" and "</Titolo>", \\ Anno enclosed by "<Anno>" and "</Anno>", \\ Collocazione enclosed by "<Collocazione>" and "</Collocazione>", \\ Genere enclosed by "<Genere>" and "</Genere>", \\ Lingua enclosed by "<Lingua>" and "</Lingua>" \\ )
being uploaded but I always send error in the first record.
Someone said me why? differently if I set the control file?
thanksI 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 -
Loop movie, but load XML once
Background:
I am tasked with building a vertical news scroller that reads
from an xml file and loops indefinitely.
Problem 1:
I have figured out how to scroll static text and I am now
working on loading the xml which I also have done. The problem I am
having with loading the xml is that if the movie loops, it is
loading the XML each instance of the loop. How can I load the XML
only on the initial load and still loop the movie?
Problem 2:
When working with static text, scrolling is simply a matter
of doing a motion tween. When working with XML, the data will not
be a fixed length, so doing a motion tween will have 2 problems.
First, the original text object will have a fixed height which will
either have blank space when the XML returns less than enough to
fill it, or will have hidden text when the XML returns more that it
can hold. Can I dynamically adjust the height of a text object to
fit the text that has been put into it? Once I figure out how to
dynamically change the height we have the second problem. If the
tween was built to scroll 10 records over 200 frames and the XML
now returns 100 records, the scroll will be 10 times too fast. Can
I dynamically adjust how many frames the tween will operate
over?1. You can keep the XML in a variable and use an if/else to
determine if the XML is loaded.
var myXML:XML
// later
if(!myXML){
// call function or class that loads XML and assigns loaded
XML to the variable myXML
2. You can make dynamic TextField autosized AND multilined
(autoSize and multiline text filed properties) - it will adjust
text height depending on the content - width will not be affected.
Since the scrolling is an indefinite motion in this case, I
am not sure tweening is the best approach. Perhaps a better and
more controllable solution would be to write your own function
(class) that will perform the scroll. -
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,
FelixThanks 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 -
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 Hierarchy Error "object variable or with block variable not set"
Hi gurus
When I try to load a dimension by package I get this error "object variable or with block variable not set" and I can not select the hierarchy of the dimension
You know how to fix this issue?
Thanks
NayadethHi SAP collegues,
At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes. Please check the following.
Note before doing the following, close all other open Excel and BPC sessions.
Within Excel go to File à Options
Select the Add-Ins option on the left
Select the <<COM Add-ins >> option in the Manage drop down, and click Go
Make sure that the Planning and Consolidation option is selected. If not, mark this box and click OK.
If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
Let me know if you have any queries,
Kind Regards,
robert ten bosch -
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,
SyedHi 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 -
Need help with loading XML file
Hello,
I have been browsing the web/forums for an example on how to do this for a few days now. I managed to get this working in Flash Pro quite easily but I think I am missing something when I want to do the same thing in Flex.
Basically I want to load an XML file and then set the text values of 5 labels equal to the data in the XML file.
So I a button created in MXML and have set the click event as follows:
click="dsSetup(event)"
I have also declared the following:
public var myRequest:URLRequest = new URLRequest("assets/myFile.xml"); //folder located under src in project
public var myLoader:URLLoader = new URLLoader();
public var myXML:XML;
My function that loads is as follows:
public function dsSetup(event:MouseEvent):void
trace ("dsSetup");
myXML = new XML (myLoader.data);
h3.text = myXML.source.itemA;
h4.text = myXML.source.itemB;
h5.text = myXML.source.itemC;
h7.text = myXML.source.itemD;
h8.text = myXML.source.itemE;
currentState = 'MainMenu';
myLoader.addEventListener(Event.COMPLETE, dsSetup); // I think this line is now redundant as I have set it in the MXML
myLoader.load(myRequest);
This is the way I did it in Flash and it worked ok but I must be missing something in when it comes to Flex.
Can someone explain or point me to a good tutorial that shows how to load XML in Flex?
The ones I found seem to have about 50 lines of code just to load a file and add in way to much complexity for a beginner.
Many ThanksI would suggest to save the loaded data in a Bindable variable and then to bind the text-properties to that:
[Bindable]
var myXML:XML;
public function dsSetup(event:MouseEvent):void
myXML = new XML (myLoader.data);
currentState = 'MainMenu';
<s:Label text="{myXML.source.itemA}"/>
Maybe you are looking for
-
Short dump in report generation for bex query
Hi, I have e newly installed SAP NetWeaver 7.3 and I'm not able to run BEx-Queries. When I start transaction RSRT and try to generate the report for the selected bex query, I get the following short dump: Category ABAP Programming Error
-
How do I set an audio reminder that I have a new voice message?
how do I set audio reminders (i.e.for 15 minutes and 30 minutes after receiving the voice message) for new voice messages?
-
Logic for Populating a Work Area
Hi Gurus, I have a standard sap structure KNWEV. In the structure the values will get populated as give below. For an Unloading point for different days ie for Monday the times for unloading will be Monday 8 30 12 30 14 30 16 30. Tuesday 9 30 12 30
-
Please help me with my new apple tv 2 audio skipping constantly
Hey I set up my new apple tv 2 today i work in a retail store selling all this stuff but I can't figure this out. Apple tv hdmi connects to my Yamaha amp B&W speakers and Sony Bravia tv. It mirrors fine ( but isn't full screen on tv) and iPad and iPh
-
Contacts Duplicating when synced...
I just bought the iphone last week and I backup my contacts using Windows Contact Manager (I don't know anything else I would use, thats just what popped up when I plugged in my iphone) but for some reason whenever I sync my iphone to the itunes it s