  | |  | Asfunction and MP3 Player - Bayesian Filter detec | Asfunction and MP3 Player - Bayesian Filter detec 2005-11-11 - By Michael Sasaki
Back You might want to think about parsing out the XML node saving it to a index array or a local object and just use a count value.
__ ____ ____ ____ ____ ____ ____
From: pro_flash@(protected) [mailto:pro_flash@(protected)] On Behalf Of Jonathan Berry Sent: Friday, November 11, 2005 1:50 PM To: Pro Flash Subject: [SPAM] - [Pro Flash Users] Asfunction and MP3 Player - Bayesian Filter detected spam
Hello all, I am using the following script to parse an xml file for an MP3 player. I use asfunction to play the song clicked on, but don't know how to keep track of the node being played in order that I can use next and previous song buttons. Is there a way to do this with my current script?
var group:XML = new XML(); group.ignoreWhite = true; group.onLoad = function(){ var doc:String = new String(); for(i=0; i<group.firstChild.childNodes.length; i++){ var icon = "<img src=\'" + group.firstChild.childNodes[i].attributes.iconurl + "\' width=\'50\' height=\'50\' align=\'right\'>"; var band = "<span class=\'band\'>" + group.firstChild.childNodes[i].attributes.name + "</span><br>"; doc += icon; doc += band; for(j=0; j<group.firstChild.childNodes[i].childNodes.length; j++){ var album = "<span class=\'album\'>" + group.firstChild.childNodes[i].childNodes[j].attributes.name + "</span><br>"; doc += "From the album: " + album; for(k=0; k<group.firstChild.childNodes[i].childNodes[j].childNodes.length; k++){ var song = "<a href=\'asfunction:playSong," + group.firstChild.childNodes[i].childNodes[j].childNodes[k].attributes.ur l + "\'>" + group.firstChild.childNodes[i].childNodes[j].childNodes[k].attributes.na me + "</a><br>"; doc += song; } } doc += "<br><br>"; } with(output_txt){ background = false; password = false; multiline = true; wordWrap = true; html = true; variable = null; maxChars = null; scroll = 1; } var myCSS = new TextField.StyleSheet(); var cssURL = "mp3player.css"; output_txt.styleSheet = myCSS; myCSS.load(cssURL); output_txt.htmlText = doc; }
Thanks for the help in advance.
-- Jonathan Berry, M.A. IT Consultant 619.306.1712(m) jcharlesberry@(protected) www.mindarc.com <http://www.mindarc.com>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
This E-mail is covered by the Electronic Communications Privacy Act, 18 U.S.C. ?? 2510-2521 and is legally privileged. This information is confidential information and is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
[Non-text portions of this message have been removed]
========================= Pro_Flash: Professional Web Developers Using Macromedia Flash To subscribe: mailto:pro_flash-subscribe@(protected) To UNSUBSCRIBE: mailto:pro_flash-unsubscribe@(protected)
SPONSORED LINKS Macromedia flash training <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flash+training&w1=Macrom edia+flash+training&w2=Professional+web+developer&w3=Computer+internet+s ecurity&w4=Macromedia+flash&w5=Macromedia+flash+mx&w6=Training+computer+ and+internet&c=6&s=178&.sig=LWQNuIngNXg0_rGnNPjsXQ> Professional web developer <http://groups.yahoo.com/gads?t=ms&k=Professional+web+developer&w1=Macro media+flash+training&w2=Professional+web+developer&w3=Computer+internet+ security&w4=Macromedia+flash&w5=Macromedia+flash+mx&w6=Training+computer +and+internet&c=6&s=178&.sig=qunwndiWTs83GkZkZOIirQ> Computer internet security <http://groups.yahoo.com/gads?t=ms&k=Computer+internet+security&w1=Macro media+flash+training&w2=Professional+web+developer&w3=Computer+internet+ security&w4=Macromedia+flash&w5=Macromedia+flash+mx&w6=Training+computer +and+internet&c=6&s=178&.sig=aft6_j6PBjNtvoNcTP_jyg> Macromedia flash <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flash&w1=Macromedia+flas h+training&w2=Professional+web+developer&w3=Computer+internet+security&w 4=Macromedia+flash&w5=Macromedia+flash+mx&w6=Training+computer+and+inter net&c=6&s=178&.sig=jULpxaclwGFzpSwgLAjr1g> Macromedia flash mx <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flash+mx&w1=Macromedia+f lash+training&w2=Professional+web+developer&w3=Computer+internet+securit y&w4=Macromedia+flash&w5=Macromedia+flash+mx&w6=Training+computer+and+in ternet&c=6&s=178&.sig=8-ExiPYQdd1f8s5fiertFg> Training computer and internet <http://groups.yahoo.com/gads?t=ms&k=Training+computer+and+internet&w1=M acromedia+flash+training&w2=Professional+web+developer&w3=Computer+inter net+security&w4=Macromedia+flash&w5=Macromedia+flash+mx&w6=Training+comp uter+and+internet&c=6&s=178&.sig=1It8APBUqEiE_imk5hjk-g>
__ ____ ____ ____ ____ ____ ____
YAHOO! GROUPS LINKS
* Visit your group "pro_flash <http://groups.yahoo.com/group/pro_flash> " on the web. * To unsubscribe from this group, send an email to: pro_flash-unsubscribe@(protected) <mailto:pro_flash-unsubscribe@(protected)?subject=Unsubscribe> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .
__ ____ ____ ____ ____ ____ ____
[Non-text portions of this message have been removed]
-- ---- ---- ---- ------ Yahoo! Groups Sponsor -- ---- ---- ---- --~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/IHFolB/TM -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----~->
========================= Pro_Flash: Professional Web Developers Using Macromedia Flash To subscribe: mailto:pro_flash-subscribe@(protected) To UNSUBSCRIBE: mailto:pro_flash-unsubscribe@(protected) Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/pro_flash/
<*> To unsubscribe from this group, send an email to: pro_flash-unsubscribe@(protected)
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Earn $52 per hosting referral at Lunarpages.
|
|
 |