ActionScript 2.0 :: Pulling In More Than One Line Of XML Data?
Apr 30, 2007
Basically, I am having trouble pulling in more than one line of XML data. Here is the line of code I am trying to manipulate to give me more than one line. I have tried duplicating it and changing the values... but it just updates which line it is displaying instead of the first and second one...
_root.setlist = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
Inside of my XML document it is layed out like this....
<shows>
<show>
<setlist>
<song>Song 1</song>
</song>Song 2</song>
[Code]...
View 12 Replies
Similar Posts:
Apr 23, 2010
I'm wondering if anyone has figured out how to pull data from a column in a SharePoint 2007 list to be able to dyamically generate a reaction in a flash object.Our designer created a dashboard of thermometers for our projects that use two variables, % complete and status (green, yellow, red, blue).
As the end user, I want to be able to update my project in my SharePoint list and have it so that my updates automatically populate that flash based dashboard.Right now, he's using an XML document that is stored in a folder on our SharePoint site and then simply updating the XML file when there are changes.It would be ideal to pull this data from the list rather than having to update and then upload the xml document to the SharePoint site.
View 1 Replies
Sep 21, 2006
I created a file that pulls data from the worldofwarcraft.com serverstatus xml page.The data populates a dropdown list and you can choose the server and it tells you if its up or down. The mini app works great on my desktop, when I upload it to my server it no longer retrieves the data.
Is Bliz blocking my server address from recieving the data? Anyone know how to navigate around this. [URL]..If you want to test it grab the swf out of your cache and load it from your desktop, it will work.
View 6 Replies
Aug 28, 2010
I have been failing to do a thing with Flash actionscript2.0; Here is the problem-
My xml file name is: sea.xml On my fla file, there is a button named: do; and a movieClip named: loader;
What I am trying to do is- load xml only when the button is pressed. So I tried this-
myXML:XML = new XML;
do.onRelease = function(){
myXML.load("sea.xml");
}
[Code].....
View 1 Replies
Sep 10, 2009
I was running a test today and couldn't get flash to properly load data from php.Here's my textInput.php file:
Code:
<?php
$testVar = 'This is a sentence.';[code]....
why it's grabbing the entire php code, rather than just the echo?
View 3 Replies
Sep 8, 2010
I am trying to pull a text from within xml tags and place them in a text box when certain mc's are clicked. I am using the e.target to find the name of the mc clicked and grab info from tags with the same name as the target mc. The XML link is good as i can get data when doing tests with out using mentioned technique.
ActionScript Code:
package {
import flash.display.MovieClip;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.events.Event;
[Code] .....
And the xml file
Code:
<statsIcons>
<pollutionIcon_mc> some text </pollutionIcon_mc>
</statsIcons>
View 1 Replies
Feb 23, 2010
I am building a userinterface for some industrial instruments which output some data to a XML spreadsheet. This is the only way I can retreave these data's from the instruments.
Now, I need to make a flash that can pull out these data's from ex. "A1" and "A2" in this spreadsheet...
Here's a screenshot of the XML as it appears in EXCEL:
...and the XML as it appear if opened in Dreamweaver:
Code: Select all<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
[Code].....
View 8 Replies
May 25, 2005
pulling specific data from XML? This is what I mean...Supposed I have an XML file like this:
HTML Code:
<data>
<article>
<ID>1a</ID>
<related items>
[code]....
Now, in Flash I want to load all items that have "5f" listed as one of their related item. So only display articles where item = 5f
View 7 Replies
Mar 5, 2010
and E4X to pull in an XML file. I am wishing to display some text as subscipt. E.G with
G2, the 2 would be subscripted.if this can be done and if so how?
View 14 Replies
Jan 1, 2012
I loop through two arrays and im checking their data, i have collison working for them but I want to add more A.I. by making them stop when they are a certain distance from each other. so i need a way to pull EACH object that is in the arrays x,y, pos and use that data. my distance var keep bouncing all over the place...
THIS is my code:
//check events between 2 objects
function CheckEventsEnemyFighterFighter():void
{
[Code]....
P.S. i need some tips for my coding... like should have i used a break in these for loops?
View 2 Replies
Aug 6, 2009
I am trying to create this slide show application that will show product information (Tennis Rackets) based on diffrent categories. A great programmer advised me that OOP would be a way to go, however i am having a difficulty with it.
I created: A document class called CustomClass --> this class downloads all XML data from the server and pushing the content of it into Arrays based on a category.These arrays are public, there is also a funciton iterateArray which places the children information somewhere.
[Code]...
View 7 Replies
Aug 15, 2011
I am a pretty big newb- my challenge is get a flash page to look to a database and check for updates constantly (in the realm of 1update/second) then pull new data as it is added.
View 1 Replies
Sep 23, 2006
Newbie to XML here and I have what I *hope* is an easy problem, but I just don't know the answer. And as I have to try and show this by Monday, I'm sort of stuck. I am trying to pull in information about houses via an xml file. Each house has 1 address, 1 owner, 1 description, and about 6 photos. I have no problem accessing the address, owner, etc, and I can always access the first photo, but whenever I cycle through the photos, I seem to cycle through the first photo for every house, not every photo for each house.
Basically, I need the children <images> to go up by one, without the the parent going up by 1. I am hoping I am describing this well. My code looks like this:
[Code]...
View 4 Replies
Jul 24, 2010
I am trying to pull in information about houses via an xmlfile. Each house has 1 address, 1 owner, 1 description, and about 6photos. I have no problem accessing the address, owner, etc, and Ican always access the first photo, but whenever I cycle through thephotos, I seem to cycle through the first photo for every house,not every photo for each house.Basically, I need the children <images> to go up byone, without the the parent going up by 1. I am hoping I amdescribing this well.My code looks like this:
total = xmlNode.childNodes.length;
totalb =
xmlNode.childNodes[0].childNodes[5].childNodes.length;
[code].....
View 1 Replies
Dec 17, 2009
i have an xml file and i want my code in flash to read it line by line but its only showing the first line out of 5 lines.Below is the code:
var NigeriaNumber:Number;
var stateName:String;
var year:String;
[code].....
View 0 Replies
Jan 6, 2010
I have something like this xml data
<data>
<result month="Jan-04">
<employee id="1">
[code].....
View 1 Replies
Mar 10, 2010
Any workarround to avoid the new line generated while sending data using SendAndLoad(); in AS2? I send "00:00:12:36"
But php output:
00
:00
:12:36
View 2 Replies
Jan 12, 2012
QUESTION NUMBER ONE
I have e.target.data value like below
1.
2.
3.
and i have a textarea component.i used this below script to insert my e.target.data to the textarea component
ActionScript Code:
my_textarea.htmlText = e.target.data
then, my_textarea look like plain text, it still 1.
2.
3.
but when i do like below
ActionScript Code:
my_textarea.htmlText = "1.[code]......
View 5 Replies
Sep 25, 2006
Is it possible to get the data dynamically from XML and draw one line. For example, in my XML data is like that the following,
Code:
<chart>
<chart_data>
<row>
[Code].....
Then how to i use actionscript to draw 1 continious line.. ?
View 1 Replies
Oct 21, 2007
I have a flash file that has several text fields that get their content from a xml document. My xml looks like this:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<index_content>
<image no="1">
[Code]....
View 5 Replies
Feb 10, 2010
I am wondering how will I proceed with the following requirement. I need to create a line chart of business data of the last 8 quarters. It is easy, but the requirement is that, there should not be a connection between last year's Q4 and this years Q1. In effect, using the same array collection i need to split the line chart so that it looks like two different lines on the same chart. How to proceed with it.
View 1 Replies
Dec 6, 2010
I have a Flex line chart where I allow the user to change the y axis ranges. When a data point falls outside the ranges, the chart drops the line segments on either side of the out of range point leaving a gap in the data line. I'm currently using the data function to clamp the values out of range to the y axis min/max, but this displays misleading data.
View 1 Replies
Nov 19, 2009
I am researching how to develop a flash app that records ping and network data and graphs it. Has anyone reading this had any experience in accessing command line with Flash or know of anyone that has done something like this? I am not sure if I need a connection service using JAVA or something along those lines to make a sammich of software. [url]...
View 2 Replies
Aug 25, 2009
Is there a way to draw a line on a graph (or at least get the position) on specific date?
I have a graph where X is Date data, I want to draw a line with a text on each Year and each 3 months as reference, not part of the graph series.
View 1 Replies
Oct 9, 2009
I'd like to create cool lines and bars charts dynamically, from xml data. Since I'm not an expert in Flash, I wanted to get a tool to accomplish this. So far, I've tried Flex Builder 3, but I can't figure how to draw the chart dynamically, as the xml data is constantly changing. I just see examples on the internet with xml like "Orange, Banana, Apple", when what I'd like to see is something like "......" and get each item's value and attributes to show in the chart.
View 1 Replies
Jun 22, 2010
I have created a line chart and another datagrid.based on dataitem clicked nthe chart should be changed. For example I have datagrid for stocks with 3 stocks GOOGL,Yahoo and ADBE .On clicking upon the GOOGL the google data should be loaded in to line chart.
View 1 Replies
Jul 1, 2010
i had a issue, when the chart data is displaying the legends has to be shown theinformation of the charts.But i need to show the multiple data columns for each each legends has to be displayed.Can any one of you having this type component
View 1 Replies
Jun 29, 2009
So I have a bit of an odd error.
[Code]...
The line that says xmlData = XML(evt.target.data) freezes my program. Nothing gets past that line. I have no idea what's causing this problem... What I mean by nothing gets past it is that anything anfter that line doesn't get executed. I put the userArea.addChild(userList) before all over the function to determine where the problem was and it's only after that line that my userList was no long showing up.
View 2 Replies
Aug 17, 2009
I have a list of items in a database as well as images in a directory folder. I am looking for a flash app that can pull from the database to display the info and also the images and scroll this info vertically with associated links. I need to change this for each client by adding their unique "ID" in the code so their information pulls in correctly.
View 1 Replies
Feb 9, 2009
I have an HTML page called "mypage.html" with a form on it. The form contains a text field called "FName" and when submitted, it loads "mypage2.html" with a Flash file embedded within it.Using actionscript is it possible to pull the passed value "FName" to an actionscript variable. Previous threads mentioned the GetURL parameter but CS4 kicks it back saying it is no longer supported.I'm also a bit confused on whether actionscript can pull variables directly from the browser URL. I found a reference to the variables being placed in the HTML code that embeds the SWF file:<param name="movie" value="mySWFmovie.swf?myvar=heyyou" />'Why would this be the location to configure the passed parameters and not directly from the browser URL?
View 0 Replies