Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: XML/Flash5.0
From: steve
Date: Fri, 5 Jan 2001 19:47:32 GMT

Arrrggghh. <shakesFistAtSky>DAMN TECHNOLOGY!</shakeFistAtSky>

ok


All I am trying to is take the xml output from wimamp, suck it into
flash and display it in a text field. I have this (I know has to be
wrong) in flash:

varTemp = new XML();
varTemp.load("admin.xml");
if (varTemp.loaded) {
varTemp.firstChild;
varTruth = 0;
while (varTruth == 0) {
server = server + varTemp.attributes.SHOUTCASTSERVER;
currentlisteners = currentlisteners +
varTemp.attributes.currentlisteners;
trace(server)
if (varTemp.nextSibling == null) {
varTruth = 1;
}
}
} else {
varTemp = "failed!";
}

message = varTemp;
stop();

and this in the shoutcast XML doc:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE SHOUTCASTSERVER [
<!ELEMENT SHOUTCASTSERVER
(CURRENTLISTENERS,PEAKLISTENERS,MAXLISTENERS,REPORTEDLISTENERS,AVERAGETIME,SERVERGENRE,SERVERURL,SERVERTITLE,SONGTITLE,SONGURL,IRC,ICQ,AIM,WEBHITS,STREAMHITS,WEBDATA,LISTENERS,SONGHISTORY)>
<!ELEMENT CURRENTLISTENERS (#PCDATA)>

(truncated for space)...

<!ELEMENT TITLE (#PCDATA)> ]>

<SHOUTCASTSERVER>
<CURRENTLISTENERS>0</CURRENTLISTENERS> <PEAKLISTENERS>1</PEAKLISTENERS>
<MAXLISTENERS>64</MAXLISTENERS> <REPORTEDLISTENERS>0</REPORTEDLISTENERS>
<AVERAGETIME>217</AVERAGETIME>

(truncated for space) ...


<VIEWBAN>0</VIEWBAN> <UNRIPDST>0</UNRIPDST> <RIPDST>0</RIPDST>

can some at least tell me if I'm going in the right direction? I've
checked most of the resources that I know of and can't seem to pin
this sucker down.

Thanks in advance
--
-----------------------------------------------------
s t e v e m e n d i z a b a l
i n t e r a c t i v e a r c h i t e c t u r e l i s t
----------- F u s e M e d i a ------------------
6 5 9 A u b u r n A v e .
A t l a n t a G A , 3 0 3 1 2
4 0 4 . 5 2 3 . 6 7 0 0
s t e v e @ f u s e - m e d i a . c o m
-----------------------------------------------------
v i s i t p i s s m o n k e y . c o m

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: FLASH: XML/Flash5.0, neo binedell

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]