Loading an external XML attribute to an internal
str = "<mytag name='Here should have attributes from an external file'>''</ mytag> ";
doc = new XML (str);
foot_name.text = doc.firstChild.attributes.name;
trace (y);
help...
use:
str = "<mytag name='Here should have attributes from an external file'></ mytag> ";
doc = new XML (str);
foot_name.text = doc.firstChild.attributes.name;
Similar Messages
-
Load Movie from XML attribute Problem
Hi:
This is strange. My code works when Testing Movie, but it
doesnt work when its Published. Would be so grateful for help.
Im loading a subnav button and a link for that button from an
XML doc.
Maybe this is wrong, but since the button attribute in the
XML element is a link, I inserted a MovieLoaderClass test within
the XML.OnLoad to be sure the button loads first . Once it's
initiated loading, then I can proceed to assign a LoadMovie link to
the button such as "loadMovie(Cliplinks[0], holderclip)"
This is working in test movie. But when I Publish, the Button
appears but it is unclickable. The button should be responding to
the "loadMovie(Cliplinks[0],holderclip)"
Can someone be so kind a to help me determine what Im doing
wrong?
Thanks much!
Ryanvar rootNode, i;
rootNode = XML_Object.firstChild;
rootNode = rootNode.firstChild;
for(i = 0; i < rootNode.childNodes.length; i ++)
var personObj
bject = new Object();
personObj.name = rootNode.childNodes
.attributes.name;
personObj.inwhat =
rootNode.childNodes.attributes.inwhat;
personAry.push(personObj);
But, I think your XML file is incorrect.
<name="joe smith" inwhat="honor" />
should be... something like..
<person name="joe smith" inwhat='honor" /> -
Is there a way to load an XML file if it's on a differen
server/domain than the html/swf file? I already set
allowScriptAccess="all" but it didn't seem to help.Here are the references:
http://livedocs.macromedia.com/flash/8/main/00001621.html
http://livedocs.macromedia.com/flash/8/main/00001616.html
http://www.adobe.com/devnet/flashplayer/articles/flash_player_8_security.pdf
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"leopold_y" <[email protected]> wrote in
message
news:e9q3m7$q27$[email protected]..
> Is there a way to load an XML file if it's on a differen
server/domain
> than the html/swf file? I already set
allowScriptAccess="all" but it
> didn't seem to help. -
Media files prevent Flash from fully loading external XML file
Im trying to debug a flash widget we created, and it loads
fine on the 20 odd computers we tested on EXCEPT for one computer
where, the application doesn't load an external XML file that calls
for 3 small mp3 files and a FLV file to load as well.
In a debugger, we noticed that when it tried to load these
mp3 files it was getting a Forbidden access message. The FLV just
prevents the FLV player from showing up at all (not even the skin).
Can anyone figure out why, that it would work over all the
other computers and NOT the one? On that person's computer, we
tried it in IE, Firefox, even Chrome and the application doesn't
load. We even cleared the cache, did a hard refresh and still
nothing.
However, the other computers work just fine.
ALL the computers have the latest Flash software installed.
What could cause this problem?Actually what worked was removing 'xmldoc' from the php script. So $data =$GLOBALS["HTTP_RAW_POST_DATA"]; instead of $data = xmldoc($GLOBALS["HTTP_RAW_POST_DATA"]);
Couldn't find anything about 'xmldoc'. Is it used for anything in php?
Anyway, the loading error went away, but then I got into problems with getting the return echoed values back. The textfield stayed empty even when saving the data.txt file worked.
I then placed the <stuff> tags between <root> tags and then flash got the sentences between the <stuff> tags back. Why does Flash need the returned xml output to be between <root> tags for it to see the content between the <stuff> tags? So why do I need to use echo("<root><stuff>Server unable to create file.</stuff></root>"); instead of cho("<stuff>Server unable to create file.</stuff>");? -
Variable substitution in external XML
I'm loading an external xml file using the Loader class, and
then assigning the loaded content to a variable when the loading is
complete, like this:
function x_loaded(e:Event) {
var rotation_value:String = "-180";
mc_xml = XML(x_loader.data);
If I include in my xml file a value to be substituted, for
example <image rotation={rotation_value}/>, the parsing of
the xml fails when assigning to the mc_xml value.
Is it possible to substitute values in externally loaded xml?
alternatively, is there a way to simply SET the values,
something like image.attribute("rotation")="180";
thanks in advanceThanks, k
I think all the code that's germane is in my first post, but
here's a bit more detail. It turns out I was using URLLoader, sorry
to confuse the issue. Your help is appreciated. The failure occurs
on the line that reads "mc_xml = XML(x_loader.data);" and the error
message is: "TypeError: Error #1090: XML parser failure: element is
malformed."
my code:
var mc_xml:XML;
var x_loader:URLLoader = new URLLoader();
var x_url:String = "motion.xml";
var x_req:URLRequest = new URLRequest(x_url);
x_loader.addEventListener(Event.COMPLETE,x_loaded);
x_loader.load(x_req);
function x_loaded(e:Event) {
var rotation_value:String = "-180";
mc_xml = XML(x_loader.data);
Here's the (simplified) external xml file. It's generated by
a "Copy motion as ActionScript 3.0" and everything works fine
before I try to substitute some variables in the xml. You can see
the substitution in the penultimate line.
<Motion duration="20" xmlns="fl.motion.*"
xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="25" x="784.3" y="78.1" scaleX="1"
scaleY="1" rotation="180" elementType="movie clip"
instanceName="mc" symbolName="Symbol 2">
<dimensions>
<geom:Rectangle left="0" top="0" width="288"
height="209"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.2586805555555556"
y="0.3923444976076555"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="19" x="-709.8" y="3.9000000000000057"
rotation={rotation_value} />
</Motion>
Thanks in advance for any insight you can provide -
How to import external XML file
Hello guys:
From this demo
http://www.adobe.com/devnet/flex/quickstart/accessing_xml_data/#section2
we know how to use a intrernal XML document. I know there are
several way to load a external XML like:
<mx:HTTPService
id="loadTest"
useProxy="false"
showBusyCursor="true"
resultFormat="xml"
url="data/login.xml"
/>
What I want to know is whether I could load a XML file
directly, not use HTTPService and send. For a instance:
[Bindable]
private var login:XML = ("data/login.xml");
or something like that. And then I could use login.user or
login. pass .
Now seems it is easy to control a intrernal XML data. I want
to import a external XML file and use it like a intrernal XML.
Thanks a lotYou only have 2 choices: include the XML as part of the SWF
using <mx:XML source="filename.xml" /> or load it dynamically
using a data service such as HTTPService. -
Hello everybody,
Question, How I can load the external xml file data in the form.
For examle I have owned a dropdown list box that contains the following give: A, B, C.
And then I have fields in my form: TextField1, TextField2,textField3.
By changing event dropdownlist box I must load the xml dynamically:
http://mywebsite.com/userdata/myxml-A.xml
or
http://mywebsite.com/userdata/myxml-B.xml
or
http://mywebsite.com/userdata/myxml-C.xml
The XML file is loaded in the fields fill in the form:
for example:
textField1.rawValue = C.textForField1
textField2.rawValue = C.textForField2
textField3.rawValue = C.textForField3
Does anyone could give me an example how I shouldproceed?
Thank you in advance.
------------------------------------------Here is my scipt // don't work
Projects.Page1.lstProjects::change - (JavaScript, client)
var xmlURL = "http://www.mywebsite.com/userdata/myXML-"+xfa.event.newText+".xml";
app.alert(xmlURL); //work, response : http://www.mywebsite.com/userdata/myXML-A.xml";
xfa.datasets.loadXML(xmlURL, false, false);
xfa.datasets.saveXML();
var projectXML=xfa.datasets.resolveNode("Project");app.alert(projectXML); // don't work var numberOfNodes = projectXML.nodes.length;
app.alert(numberOfNodes); //don't work
Here is the structure of myXML file (myXML-A.xml) :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Project SYSTEM ".dtd/project.dtd">
<Project>
<OfficialNumber>001</OfficialNumber>
<Title>Title of my test project</Title>
<DateReceived showFormat="YYYY-MM-DD" defaultFormat="YYYY-MM-DD">2011-06-30</DateReceived>
<TypeOfProject>Type1</TypeOfProject>
<Organisation>Organisation1</Organisation>
</ProjecNo, I need to do this with in pdf Ineractive Form.
I think it possible.
Here is my scipt // don't work
Projects.Page1.lstProjects::change - (JavaScript, client)
var xmlURL = "http://www.mywebsite.com/userdata/myXML-"+xfa.event.newText+".xml";
app.alert(xmlURL); //work, response : http://www.mywebsite.com/userdata/myXML-A.xml";
xfa.datasets.loadXML(xmlURL, false, false);
xfa.datasets.saveXML();
var projectXML=xfa.datasets.resolveNode("Project");
app.alert(projectXML); // don't work
var numberOfNodes = projectXML.nodes.length;
app.alert(numberOfNodes); //don't work
Here is the structure of myXML file (myXML-A.xml) :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Project SYSTEM ".dtd/project.dtd">
<Project>
<OfficialNumber>001</OfficialNumber>
<Title>Title of my test project</Title>
<DateReceived showFormat="YYYY-MM-DD" defaultFormat="YYYY-MM-DD">2011-06-30</DateReceived>
<TypeOfProject>Type1</TypeOfProject>
<Organisation>Organisation1</Organisation>
</Project> -
Load external XML into DataGrid with AS3
I've really looked hard to find an example/tutorial for
loading external XML data into a DataGrid component using AS3. The
code I'm using at the moment has the XML data in the AS code. If
anyone can point me to a good resource(s) for code or a tutorial
I'd be very appreciative. It needs to be AS3. ~steve
Here is the code that is working for internal XML data:
import fl.controls.dataGridClasses.DataGridColumn;
import fl.data.DataProvider;
stop();
var emailXML:XML = <emails>
<email date="06-04-07" code="EMRPAAV" campaign="This is
the campaign details."/>
<email date="06-11-07" code="EMRPAAW" campaign="This is
the campaign details."/>
<email date="06-18-07" code="EMRPAAX" campaign="This is
the campaign details."/>
<email date="06-25-07" code="EMRPAAY" campaign="This is
the campaign details."/>
<email date="07-02-07" code="EMRPAAZ" campaign="This is
the campaign details."/>
<email date="07-09-07" code="EMRPABA" campaign="This is
the campaign details."/>
</emails>;
var dateCol:DataGridColumn = new DataGridColumn("date");
dateCol.headerText = "Date";
dateCol.width = 60;
var codeCol:DataGridColumn = new DataGridColumn("code");
codeCol.headerText = "Source Code";
codeCol.width = 70;
var campaignCol:DataGridColumn = new
DataGridColumn("campaign");
campaignCol.headerText = "Campaign";
campaignCol.width = 300;
var myDP:DataProvider = new DataProvider(emailXML);
emailData.columns = [dateCol, codeCol, campaignCol];
emailData.width = 440;
emailData.dataProvider = myDP;
emailData.rowCount = emailData.length;
// end codeHere is how you build it for external XML. in my example am
using the same xml format that you are using . The xml file called
"dataGrid.xml"
import fl.controls.dataGridClasses.DataGridColumn;
import fl.data.DataProvider;
import fl.containers.UILoader;
import fl.data.DataProvider;
import fl.events.*;
import flash.xml.*;
var emailXML:XML;
var myList:XMLList;
function parseXML():void
var url:String = "dataGrid.xml";
var urlRequest:URLRequest = new URLRequest(url);
var loader:URLLoader = new URLLoader();
loader.addEventListener("complete" , loadXML);
loader.load(urlRequest);
/*var emailXML:XML = <emails>
<email date="06-04-07" code="EMRPAAV" campaign="This is
the campaign details."/>
<email date="06-11-07" code="EMRPAAW" campaign="This is
the campaign details."/>
<email date="06-18-07" code="EMRPAAX" campaign="This is
the campaign details."/>
<email date="06-25-07" code="EMRPAAY" campaign="This is
the campaign details."/>
<email date="07-02-07" code="EMRPAAZ" campaign="This is
the campaign details."/>
<email date="07-09-07" code="EMRPABA" campaign="This is
the campaign details."/>
</emails>
parseXML();
function loadXML(evt:Event):void
emailXML = new XML(evt.target.data);
myDP = new DataProvider(emailXML);
emailData.dataProvider = myDP;
var dateCol:DataGridColumn = new DataGridColumn("date");
dateCol.headerText = "Date";
dateCol.width = 60;
var codeCol:DataGridColumn = new DataGridColumn("code");
codeCol.headerText = "Source Code";
codeCol.width = 70;
var campaignCol:DataGridColumn = new
DataGridColumn("campaign");
campaignCol.headerText = "Campaign";
campaignCol.width = 300;
var myDP:DataProvider;
emailData.columns = [dateCol, codeCol, campaignCol];
emailData.width = 440;
emailData.dataProvider = myDP;
emailData.rowCount = emailData.length; -
Hi, I"m having a problem with an Applet.
I wrote a program that acceses an external XML file located on my webspace, but when I converted this program to run in a webbrowser I get console errors when trying to acces the file.
Here's my code:
package javaapplication;
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Canvas;
import java.util.ArrayList;
import javaapplication7.parsing.XmlParser;
public class Main extends Applet {
protected Thread gameThread = null;
private Canvas display_parent = null;
private boolean running = false;
private XmlParser parser = new XmlParser();
public void destroy() {
remove(display_parent);
super.destroy();
System.out.println("Clear Up");
public void start() {
gameThread = new Thread() {
public void run() {
running = true;
System.out.println("Entering Gameloop");
gameLoop();
gameThread.setDaemon(true);
gameThread.start();
public void stop() {
public void init() {
setLayout(new BorderLayout());
try {
display_parent = new Canvas() {
public final void removeNotify() {
super.removeNotify();
display_parent.setIgnoreRepaint(true);
display_parent.setSize(getWidth(),getHeight());
add(display_parent);
display_parent.setFocusable(true);
display_parent.requestFocus();
setVisible(true);
catch(Exception e) {
System.err.println(e);
throw new RuntimeException("Unable to create display");
private void gameLoop() {
ArrayList <String> temp = null;
while (running) {
temp = parser.SearchXml("http://users.telenet.be/decoy/FacebookApp/xml/BulletType.xml", "BulletList",2);
for (int i=0;i<temp.size();++i) {
System.out.println(temp.get(i));
}my html file :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>AppletLoader</title>
</head>
<body>
<applet code="javaaplication.Main" archive="JavaApplication7.jar" codebase="." width="800px" height="600px">
<!-- The following tags are mandatory -->
<!-- Name of Applet, will be used as name of directory it is saved in, and will uniquely identify it in cache -->
<param name="al_title" value="appletloadertest">
<!-- Main Applet Class -->
<param name="al_main" value="javaapplication.Main">
<!-- logo to paint while loading, will be centered -->
<param name="al_logo" value="appletlogo.png">
<!-- progressbar to paint while loading. Will be painted on top of logo, width clipped to percentage done -->
<param name="al_progressbar" value="appletprogress.gif">
<!-- List of Jars to add to classpath -->
<param name="al_jars" value="JavaApplication7.jar">
<!-- signed windows natives jar in a jar -->
<param name="al_windows" value="lib/windows_natives.jar.lzma">
<!-- signed linux natives jar in a jar -->
<param name="al_linux" value="lib/linux_natives.jar.lzma">
<!-- signed mac osx natives jar in a jar -->
<param name="al_mac" value="lib/macosx_natives.jar.lzma">
<!-- signed solaris natives jar in a jar -->
<param name="al_solaris" value="lib/solaris_natives.jar.lzma">
<!-- Tags under here are optional -->
<!-- Version of Applet, important otherwise applet won't be cached, version change will update applet, must be int or float -->
<!-- <param name="al_version" value="0.1"> -->
<!-- background color to paint with, defaults to white -->
<!-- <param name="al_bgcolor" value="000000"> -->
<!-- foreground color to paint with, defaults to black -->
<!-- <param name="al_fgcolor" value="ffffff"> -->
<!-- error color to paint with, defaults to red -->
<!-- <param name="al_errorcolor" value="ff0000"> -->
<!-- whether to run in debug mode -->
<!-- <param name="al_debug" value="true"> -->
<!-- whether to prepend host to cache path - defaults to true -->
<param name="al_prepend_host" value="false">
<!-- main applet specific params -->
<param name="test" value="test">
</applet>
<p>
if <code>al_debug</code> is true the applet will load and extract resources with a delay, to be able to see the loader process.
</p>
</body>
</html>console errors :
network: Connecting http://users.telenet.be/decoy/FacebookApp/xml/BulletType.xml with proxy=DIRECT
network: Connecting http://users.telenet.be/crossdomain.xml with proxy=DIRECT
network: Connecting http://users.telenet.be:80/ with proxy=DIRECT
network: Connecting http://users.telenet.be/crossdomain.xml with cookie "__utmz=226366239.1223468593.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); st8id_wlf_%2Etelenet%2Ebe_%2F=TE5HVExNX0ZMQVNI?81c37b0684bbf41f4c42c63db814f879; __utma=226366239.605535372.1223468593.1223556298.1224764225.3"
network: Connecting http://www.zita.be/users_error/ with proxy=DIRECT
network: Connecting http://www.zita.be:80/ with proxy=DIRECT
java.security.PrivilegedActionException: java.io.FileNotFoundException: http://www.zita.be/users_error/
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at facebookgame.parsing.XmlParser.SearchXml(XmlParser.java:38)
at facebookgame.entity.ShotEntity.<init>(ShotEntity.java:62)
at facebookgame.InGameState.Enter(InGameState.java:75)
at facebookgame.FacebookApp.changeToState(FacebookApp.java:258)
at facebookgame.MenuState.CheckPlayerInput(MenuState.java:106)
at facebookgame.MenuState.StateCycle(MenuState.java:139)
at facebookgame.FacebookApp.gameLoop(FacebookApp.java:212)
at facebookgame.FacebookApp.access$200(FacebookApp.java:17)
at facebookgame.FacebookApp$1.run(FacebookApp.java:60)
Caused by: java.io.FileNotFoundException: http://www.zita.be/users_error/
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.deploy.net.CrossDomainXML$2.run(Unknown Source)
... 22 moreHopefully some1 can help me :).
Edited by: Veko on Dec 7, 2008 2:51 PMBut why is it possible then to succesfully acces the .xml file with a non-web applet
This code reads the file perfectly of my webspace...
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
public class XMLHandler {
public static void SearchXml(){
try{
InputStream filesource = new URL("http://users.telenet.be/decoy/FacebookApp/xml/BulletType.xml").openStream();
System.out.println("found input source");
byte[] readIn = new byte[8];
int bytesRead = filesource.read(readIn);
OutputStream stream = System.out;
while(bytesRead != -1){
stream.write(readIn);
bytesRead = filesource.read(readIn);
} catch (Exception e){
e.printStackTrace();
public static void main(String[] args){
SearchXml();
}it returns the contents of the xml perfectly
<?xml version="1.0"?>
<bulletList>
<bullet type="1">
<speed>1.0f</speed>
<size>O.65f</size>
<damage>1</damage>
<texture>"res/shot.png"</texture>
<sound>"blah.ogg"</sound>
</bullet>
<bullet type="2">
<speed>1.5f</speed>
<size>O.65f</size>
<damage>1</damage>
<texture>"res/shot.png"</texture>
<sound>"blah.ogg"</sound>
</bullet>
</bulletList>Does a applet in a browser have somekind of weird restriction that I haven't heard of yet ?
Edited by: Veko on Dec 8, 2008 2:28 AM
Edited by: Veko on Dec 8, 2008 2:29 AM
Edited by: Veko on Dec 8, 2008 2:29 AM -
Loading external XML data into XMLObject
hey all,
i've been working on a basic fl2 app that generates a list of
posts from an external XML file located on my server
(www.omedia.mobi/forum.xml) The swf file is also located there in
the same directory .(crime.swf).
The app runs fine in the emulator, both when i tried to load
the data locally on my mac, and when i load it from the server. But
when i put the swf file on my N70, it fails to load the data.
I'm banging my head against a wall trying to get this sorted.
has anyone had any similar experiences?
any help would be apprieciated...
many thanks
MattMatt–
Dumb question, are you 100% sure that your phone is making
any connection to the internet? Does your phone read a name/value
variable from an external file?
I just build a file to test this (It won't work
online—it will only work on a phone.):
http://punchkickinteractive.com/development/mobileConnectionTest/mobileConnection.swf
The FLA is also up:
http://punchkickinteractive.com/development/mobileConnectionTest/mobileConnection.fla
Also, you can check out:
http://www.adobe.com/devnet/devices/articles/flashlite11_rss.html
quote:
//Some of the code from the FLA:
canLoad = _capLoadData;
if (canLoad == 1) {
urlPath = "
http://punchkickinteractive.com/development/mobileConnectionTest/mobileConnection.txt";
loadVariables(urlPath, _root);
} else {
connection = "client does not support loading dynamic data";
// where "connection" is the variable name of the text field
If the connection is present, then I think I know what is
wrong. Let me know. -
How to load external XML into DataGrid ??
Hello ,everybody , I can't load external Xml like this format
<list>
<month name="Jan-04" revenue="400263" average="80052">
<region name="APAC" revenue="46130"/>
<region name="Europe" revenue="106976"/>
<region name="Japan" revenue="79554"/>
<region name="Latin America" revenue="39252"/>
<region name="North America" revenue="128351"/>
</month>
<month name="Feb-04" revenue="379145" average="75829">
<region name="APAC" revenue="70324"/>
<region name="Europe" revenue="88912"/>
<region name="Japan" revenue="69677"/>
<region name="Latin America" revenue="59428"/>
<region name="North America" revenue="90804"/>
</month>
</list>
I only can load with node format like this :
<order>
<item>
<menuName>burger</menuName>
<price>3.95</price>
</item>
<item>
<menuName>fries</menuName>
<price>1.45</price>
</item>
</order>
Please tell me what am I going to do?
Thanks!I'm stuck on this as well. I've read through the above
samples and postings and am now feeling really retarded. I thought
throwing the contents of a simple XML doc into a DataGrid would be
easy, but I've been trying all morning and no love. Any help is
appreciated.
Here the XML --> guides.xml
<?xml version="1.0" encoding="UTF-8">
<GuideList title="Current Guides">
<GuideItem>
<GuideName>11699240</GuideName>
<DisplayName>Supercharged Branding
Program</DisplayName>
<LinkText>View Downloadable Guide</LinkText>
<Franchise>Film/TV</Franchise>
<Property>Cars</Property>
</GuideItem>
<GuideItem>
<GuideName>11721503</GuideName>
<DisplayName> Packaging & Retail
Signage</DisplayName>
<LinkText>View Downloadable Guide</LinkText>
<Franchise>Film/TV</Franchise>
<Property>None</Property>
</GuideItem>
etc....
Here's the flex --> GuideListDisplay.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" initialize="guidelist.send()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
[Bindable] private var myData:ArrayCollection;
private function resultHandler(event:ResultEvent):void {
myData = event.result.GuideList.GuideItem;
]]>
</mx:Script>
<mx:HTTPService id="guidelist" url="assets/guides.xml"
result="resultHandler(event)"/>
<mx:Panel title="{myData.GuideList.title}"> // 1119
<mx:DataGrid x="29" y="36" id="Guides"
dataProvider="{myData.lastresult.GuideList.GuideItem}"> // 1119
<mx:columns>
<mx:DataGridColumn headerText="Guide Number"
dataField="GuideName"/>
<mx:DataGridColumn headerText="Guide Name"
dataField="DisplayName"/>
<mx:DataGridColumn headerText="DisplayText"
dataField="LinkText"/>
</mx:columns>
</mx:DataGrid>
</mx:Panel>
</mx:Application>
The lines throw with // 1119 throw a problem notice - 1119:
Access of possibly undefined property GuideList through a reference
with static type mx.collections:ArrayCollection.
GuideListDisplay.mxml Lessons line 17 March 21, 2007 12:53:45 PM
215
Please help before hari kari looks like a good option.
Thanks! -
I have an application which uses an external xml file (on
another site). I get the data from the xml file. When I run my
application local, it works perfectly.
Although, when I run my application on my server, the xml
just won't load. Can anyone help me on this matter?
Greets"Francisc Romano" <[email protected]> wrote
in message
news:gh40j6$cj6$[email protected]..
> Aha, ok!
> Your problem is the fact that you address the XML
remotely...
> It is a security problem:
> If the XML is on your server reference it relatively to
the swf file. e.g.
> "assets/burners.xml" or if in the same folder
"burners.xml".
>
> If however it is on a different server, you need to
workout the security
> issues.
It's actually a sandbox issue. But close... -
Firefox flash plugin not loading external xml file?
I have a Flash based website that uses an external xml file
to load the interface and navigation. When I view the site in
Firefox it never seems to load the xml file therefore the interface
doesn't load.
Any ideas?Hi,
I have followed your instructions and could able to get it working for firefox. The sameway i tried with mozilla, but not working. This time, I didnt see any errors but it is not working as expected (no animations / images displayed)
So could you please help me.
My system config. is X86 Solaris 5.10.
bash-3.00# pwd
/usr/sfw/lib/mozilla/plugins
bash-3.00# elfdump -e libflashplayer.so
ELF Header
ei_magic: { 0x7f, E, L, F }
ei_class: ELFCLASS32 ei_data: ELFDATA2LSB
e_machine: EM_386 e_version: EV_CURRENT
e_type: ET_DYN
e_flags: 0
e_entry: 0x94 e_ehsize: 52 e_shstrndx: 37
e_shoff: 0x7fb4ac e_shentsize: 40 e_shnum: 39
e_phoff: 0x34 e_phentsize: 32 e_phnum: 3Thanks
Ram. -
Stream Shoutcast + External XML not loading
I can run the swf locally as a exe and it will correctly
stream the sound.
Heres the url:
http://mikemikhjian.com/sampler/test.php
This connects to xml file, determines which shoutcast server
works best, and then it is supposed to stream it.
I set the security to allowdomains and insecuredomains with
not sure why its not going tho!
+
Just checking as well, my xml that is being loaded from
external domain wont come up. But still doesnt make sense cause ive
got:
System.security.allowInsecureDomain("*");
System.security.allowDomain("*");Just checking as well, my xml that is being loaded from
external domain wont come up. But still doesnt make sense cause ive
got:
System.security.allowInsecureDomain("*");
System.security.allowDomain("*"); -
Using external XML to load an swf
Here's the deal - I have a main SWF with lots of loaders. Can
a hyperlink in an external XML file load another external swf in
the root flash doc? I have a list of links load in main SWF from an
external XML file. From these links, I'd like to load other
external SWFs in the main flash document. I can get the XML links
to control my browser... can I get them to control what happens in
my flash doc?
Thanks!nothing in an xml file can load anything. but you can load a
string that you use in your swf indicate which target file to
load.
Maybe you are looking for
-
Discover Data unknow Error in Endeca 11.1
Hi, I am trying to deploy discover data sample application in endeca 11.1 and I followed below steps to to it(sharing log) C:\Endeca\Apps>cd C:\Endeca\ToolsAndFrameworks\11.1.0\deployment_template\bin C:\Endeca\ToolsAndFrameworks\11.1.0\deployment_te
-
DbTier:RC-50004 Error occurred in ApplyDatabase:help me plzzzzzzzzzz
HI, Am on 11.5.10.2 DB 10gR2 OS Red Hat Enterprise Linux AS release 4 (Nahant Update 6) When am trying to clone dbtier am facing this error : Beginning database tier Apply - Wed Jun 22 14:00:53 2011 Log file located at /stageDB/proddb/10.2.0/appsutil
-
Hi, Can any one pls explain what is the exact function of T Codes KP06 and KP26 and KSPI. I have planned quantities for the cost elements and activity wise, after that I have entered the price for that particular activity in KP26, and then I calculat
-
Thank you. Thank you
-
Mythtv with systemd problems [SOLVED]
Anyone using mythtv with systemd? I am using the following to get systemd to start mythbackend but it attempts to start before mysqld is fully ready and thus fails: $ cat /etc/systemd/system/mythbackend.service [Unit] Description=MythTV backend serv