ࡱ> Root Entry p|YrRASHlE*x0LContents0Page 1ZkSymbol 2;0Y  /U !"#-%&'(*+,8:)31 92675k;<=>B@ACDEFGHI4WX.[\]^_`abcdefghij$Root Entry p|YrRASHn *x0LContents0Page 1ZkSymbol 2;0  /YU%&'(*+,8)31 92675k@A4WX.[\]^_`abcdefghij$VSymbol 5Symbol 8{Symbol 6Media 45  CDocumentPage Page 1Scene 1Ti:.< Symbol 2clickerT: x: Symbol 5sliderKf9x: Symbol 6 sliderButtonKf9Yq: Symbol 8Menu.9<Paramter Info:/n/ritems[] - A dynamiFjC\bVP2݌yO9m;z)qegakjPBFv1L˿TLK=qb)U/[ΥOӦ{nIc秩Vq~~br)h0r֩_Gii_W+'ǑAS kkk, CmfY777iii|>^su4!n5釓]f晷g3G 5&   cnnyӸדYS܋x<Za`0C֒&Ztj5@gg'67758j,,,,j>j,,,,j?Layer 1OzV68v;L--00s k >Ӥ%el cd|V.>5^7G5g6n5qxOy9 ϞJon/sP7,Rό7SSښx/_ n]4ܪ%}H"VS3YV_slWͩڳp1f# &2>'l Y.߼̼<Sc n5׷uuu57*F|C!99c9 y=|k=!?b^cM~ 2fY|g̗ --ay8Zf$'8FGN҆Os7m,m/a!gw<&'S[lG{zvq˅֑<@=zntMO9;Q{~Xs}0u(y;;$J?F[ZXF#^87#ZP%JyB=?|k{xGQxY'o;E_~;&kwܕ+ rzV68v;L--00s k >Ӥ%el cd|V.>5^7G5g6n5qxOy9 ϞJon/sP7,Rό7SSښx/_ n]4ܪ%}H"VS3YV_slWͩڳp1f# &2>'l Y.߼̼<Sc n5׷FjC\bVP2݌yO9m;z)qegakjPBFv1L˿TLK=qb)U/[ΥOӦ{nIc秩Vq~~br)h0r֩_Gii_W+'ǑAS kkk, CmfY777iii|>ѯ>I+>zn.,Zw*bc||<^|=Ç100`;1<<ϟ?ј7͛7ٳ+WĹsٳqp?.^]]]zիW{rrfuqFѣq8p@ƱcɓNӧ̙3^|W^۷oG522[s=}4ݻwǮ]%:Tf[S\~̔ޏaR)wرcGl۶x{ng9֭[H>[?̿ÇcΝf5|9Os~j~8;;rgϞh1??ssse9}ȑ#o߾b5b䑳C&ܯak\ZZ2W:-?3X]]-sZL=ĉ 3_cݻ2WΔayob}}=򼰰PN 3_cQΔL UOsSc|:NFn뤞_G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ G=9aOpdÞÙ GVo/;װ===}ipp0.]q妟iqq1Dkkke;wc``ϟ?VVVbvv6&&&bddֽ̕{jׯ_ׯ_xm*Jqث# &gginn̓3MNNxs3yr{|)YzÜ//؊{Uוro߾ŗ/_~Z<癙ϗ{{5^]]-{KX__ܯso Ǐ::k_sΔב=9OΐgQgHR\/V2i^Go9Ku9+_g}zdwFaSymbol 5Symbol 8{Symbol 6Media 45c list of text items that you want to appear in your menu structure./n/r/n/rCallBack Summary:/n/r/n/r// Define the following method in the onLoad() handler. /n/r// OnMenu() will be invoked whenever you select any items /n/r// in the menu./n/ronClipEvent(load) {/n/r // item - a string in the form "itemXX" where "XX"/n/r // is the item ofset/n/r // label - the text string for the item/n/r function onMenu(item, label) {/n/r //+/n/r // your code goes here/n/r //-/n/r }/n/r}items defaultValue1 defaultValue2 defaultValue3 defaultValue4 defaultValue5styleAutoMacWin Symbol 9 menu - mac j9+ ; Symbol 10menu - mac shell Ej9 ; Symbol 11menu - currentvalue mac n9h ; Symbol 12 menu - rect en9_ ; SymSymbol 19Symbol 20Symbol 21Symbol 22fSymbol 23=Symbol 24r Symbol 25oSymbol 26^%Symbol 11 Symbol 12Symbol 13 Symbol 14 X  !"#%&'()*+,-./012346789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWYZ[\]_`abcdefghijklmnpqstuvwxyz{|}~Symbol 27MSymbol 15fSymbol 16Symbol 17Symbol 18?bol 13Menu assets mac si9 ; Symbol 14menu - textbg maczn9b ; Symbol 15menu - textlabel macn9d ; Symbol 16menu - mac checkj9/ ; Symbol 17menu - outlinemn9` ; Symbol 18 menu - win6j9-6; Symbol 19menu - currentvaluen9g; Symbol 20 menu - textbgun9a ; Symbol 21Menu assets winn9e ; Symbol 22menu - textlabel}n9c ; Symbol 23menu - win shellDj9 ; Symbol 24 Pill ButtonEC9]; Symbol 25Red Block-loopL7:; Symbol 26Red Block-playL7d; Symbol 27Red Block-stopL7w; CMediaBitsMedia 4scrollerbar.png.\scrollerbar.pngy:y:*2Media 3scrollerbutton.png.\scrollerbutton.pngRu:)w:&2Media 2scrollerbutton.png.\scrollerbutton.pngRu:u:"2*@hhhhh %PublishFormatProperties::htmlFileNamejcbScript.html"PublishHtmlProperties::StartPaused0!PublishGifProperties::PaletteName PublishRNWKProperties::speed256K0Vector::External Font Files0Vector::Debugging Permitted0PublishFormatProperties::jpeg0Vector::Generator EncodingPublishHtmlProperties::Loop1"PublishQTProperties::MatchMovieDim1 PublishQTProperties::AlphaOption PublishQTProperties::LayerOptionVector::Generator CommandPublishHtmlProperties::Units0$PublishPNGProperties::OptimizeColors1PublishQTProperties::Width550&PublishRNWKProperties::singleRateAudio0&PublishRNWKProperties::speedSingleISDN0%PublishFormatProperties::projectorMac0&PublishFormatProperties::flashFileName jcbScript.swfPublishGifProperties::Smooth1#PublishRNWKProperties::flashBitRate1200%PublishRNWKProperties::mediaCopyright 2000Vector::Preview as GIF0PublishFormatProperties::html1$PublishFormatProperties::pngFileName jcbScript.pngVector::Generator Height400(PublishHtmlProperties::VerticalAlignment1PublishHtmlProperties::Quality5"PublishGifProperties::DitherOption"PublishRNWKProperties::exportAudio1 PublishRNWKProperties::speed384K0!PublishRNWKProperties::exportSMIL1Vector::Override Sounds0Vector::Generator Color!PublishHtmlProperties::DeviceFont0"PublishPNGProperties::FilterOption'PublishRNWKProperties::mediaDescriptionVector::Quality100Vector::Protect0Vector::Template0PublishFormatProperties::gif0*PublishFormatProperties::generatorFileName jcbScript.swt*PublishHtmlProperties::HorizontalAlignment1"PublishHtmlProperties::DisplayMenu1PublishGifProperties::Interlace0"PublishGifProperties::DitherSolids0PublishPNGProperties::Smooth1PublishPNGProperties::BitDepth24 bits avec AlphaPublishJpegProperties::DPI4718592PublishQTProperties::Flatten1#PublishFormatProperties::qtFileName jcbScript.movPublishGifProperties::Width550PublishGifProperties::Loop1PublishRNWKProperties::speed28K1!PublishRNWKProperties::mediaTitle$PublishRNWKProperties::mediaKeywordsPublishFormatProperties::flash1Vector::Generator Width550Vector::Generator LoadOrder#PublishGifProperties::MatchMovieDim1#PublishGifProperties::PaletteOption"Pu(BABX00000@P00XpP0(L@0`0 08<00 X(0H?Layer 1OCPicPage CPicLayer CPicFrameCPicTexto[~ " _parent.label _sans(List Value?Layer 1OCPicPage CPicLayer CPicFrame CPicSpritetextbg++ textlabel?Layer 1OCPicPage CPicLayer CPicFrame p00 0?Layer 1OCPicPage CPicLayer CPicFrame CPicSpritetextbgCPicText!u[J l_parent._parent.currentValue _sans(Select a room?Layer 1OCPicPage CPicLayer CPicFrame,000*0?Layer 1OCPicPage CPicLayer CPicFrame CPicSha? 3t.o8-4$o08J`F"48b4t4!F# 0Y 8z5?Layer 1?˶(#(#`3t.o8-4$o08J`F"48b4t4!F# 0Y 8z58iW4v|.4ЖW08SpQ4ⷽBE܀ ؀ 44hP( 09 8Д? XiW4v|.4ЖW08SpQ4ⷽBE܀ ؀ 44hP( 09 8Д??Layer 8'5W+++rUOD++++149z%T4Y?kExNT;x4<4)Xc$.$><pO' E܀PpC#)5I? CPicShaperUO+++w9z%T4Y?kExNT;x4<4)+1'5C+++blishPNGProperties::DitherOptionPublishJpegProperties::Quality80$PublishRNWKProperties::realVideoRate100000$PublishRNWKProperties::speedDualISDN0-PublishFormatProperties::projectorWinFileName jcbScript.exePublishHtmlProperties::Align0#PublishPNGProperties::MatchMovieDim1#PublishPNGProperties::PaletteOption$PublishJpegProperties::MatchMovieDim1Vector::Debugging PasswordVector::Omit Trace Actions0%PublishFormatProperties::jpegFileName jcbScript.jpgPublishHtmlProperties::Width550PublishHtmlProCPicPage CPicLayer CPicFrame CPicButtoniiT startXstartYstartX startY+size  ?Layer 1Oi0$040? @000@?Layer 1CPicPage CPicLayer CPicFrameCPicTextT7 TCPicPage CPicLayer CPicFrameCPicText\7 TextField13Times New Roman(Logout 333ih+_0$04W4$? CPicShape 3iSf+_0Pp$p0P+_04q?.#xiOSA&A%L b nT TZ(AT h( va)Z]A>^su4!n5釓]f晷g3G 5&   cnnyӸדYS܋x<Za`0C֒&Ztj5@gg'67758<pO' E܀PpC#)5I??Layer 7f 333ip0,_&h+_0t 7 TextField13Times New Roman(RefreshCPicPage CPicLayer CPicFrameCPicTextЀ TextField11Arial"(Login V3t.o8-4$o08J`F"48b4t4!F# 0Y 8zperties::Height400"PublishPNGProperties::DitherSolids0"PublishJpegProperties::Progressive0#PublishQTProperties::PlayEveryFrame0Vector::TopDown0PublishFormatProperties::png0PublishFormatProperties::rnwk0-PublishFormatProperties::projectorMacFileName jcbScript.hqx!PublishHtmlProperties::WindowMode0'PublishHtmlProperties::TemplateFileName/C:\PROGRA~1\MACROM~1\FLASH5~1\Html\Default.htmlPublishGifProperties::Height400PublishPNGProperties::Interlace0PublishJpegProperties::Size0Vector::Report0"PublishFormatProperties::generatorPublishGifProperties::LoopCount'PublishGifProperties::TransparentOptionPublishGifProperties::MaxColors255%PublishPNGProperties::RemoveGradients0PublishQTProperties::Height400PublishRNWKProperties::speed56K1Vector::Event Format0Vector::Stream Compress7Vector::Version5PublishFormatProperties::qt0$PublishGifProperties::OptimizeColors1"PublishRNWKProperties::audioFormat0Vector::Event Compress7PublishHtmlProperties::Scale0%PublishGifProperties::RemoveGradients0PublishPNGProperties::Width550PublishPNGProperties::Height400PublishJpegProperties::Height400 PublishRNWKProperties::speed512K0Vector::Stream Format0$PublishFormatProperties::gifFileName jcbScript.gifPublishGifProperties::Animated0&PublishGifProperties::TransparentAlpha128!PublishPNGProperties::Transparent0!PublishPNGProperties::PaletteNamePublishJpegProperties::Width550*PublishQTProperties::UseQTSoundCompression0PublishQTProperties::Looping0"PublishRNWKProperties::exportFlash1&PublishRNWKProperties::showBitrateDlog1(PublishRNWKProperties::speedCorporateLAN0"PublishRNWKProperties::mediaAuthorPropSheet::ActiveTab1620%PublishFormatProperties::defaultNames1%PublishFormatProperties::projectorWin0%PublishFormatProperties::rnwkFileNamejcbScript.smilVector::Generator FPS12Vector::MatchMovieDim1PublishPNGProperties::MaxColors255%PublishQTProperties::ControllerOption0"PublishQTProperties::PausedAtStart0 CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHfCPicPage CPicLayer CPicFrame CPicSpritevonClipEvent(load) { _parent.stop(); if (_parent._parent.currentValue == "List Value") { _parent._parent.currentValue = _parent._parent.items[0]; } } onClipEvent(mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, false)) { // start timer for delay check _parent.delayCheck = getTimer (); // go to next frame _parent.nextFrame(); updateAfterEvent(); } } currentitem?$ onClipEvent (load) { // duplicate the top item and assign labels to each new item if (_name.indexof("item", 0)<0) { // we are the top item _name = "item0"; label = _parent._parent.items[0]; // duplicate to item for (var i = 1; i<(_parent._parent.items.length); i++) { duplicateMovieClip (_target, "item"+i, i); } // size & position menu outline _parent.outline._height = _parent._parent.items.length*(_height - overlap); _parent.outline._y = _parent.item0._y; // send outline to top of stack _parent.outline.swapMovieClip(100); } else { // duplicated items and position at bottom of list var index = parseInt(_name.substr(4, 3)); label = _parent._parent.items[index]; overlap = 0.2; _y+=index*(_height - overlap); } } onClipEvef3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ff`zf*]12"PublishQTProperties::QTSndSettingsCQTAudioSettingsh p4Pmp2P P PP@PCp<\PPS p P P P   Q P P Q $ PQ PQ P Q Q Q Q  P QPPP Q P P QQ P P QQ P P QQ P PQ QPQ PQ 0aQ 1P $P 04PS js^5t0,4P PH$PKPS R p|S!\P pbS"hP"P" P"#Q#$  P# P#%P#!P#Q%! Q ! P ) Q#& Q%  P%)Q$ Q' P'(P'1 P' Q  Q$( Q)"Q) Q*, P*+P*P*Q, QQ- P.Q(+ P(/ P(1Q.,Q.+ Q./ Q&+ P&(Q,$PP6Q0PQ-2P-/Q32 P35 P37P34P31P3/Q41 Q2P6Q6-Q5Q 4  P ) P  P 9 P  P + p D4P "P A P B P D P  P  P P Gp P P HP JP KP LP IP JP HS78 P7)P74Q)Q)8 Q8- P8 P8;Q PP-P,QP P-P9Q Q 9Q  Q0-P05Q -Q90Q9: Q9-Q9; Q; Q+$P+: P+Q85Q<%QQ Q0, Q:=IQ:- SPQ& qs H|Q  Q QS2 Q Q S->5p-=S+>,4P+P+"P+P+=Q?>P?C P?P?Q?BP?AP?P? Q Q@ QBAQ"Q"AQ" Q 0P  P P FP QDE PDQ  P EQF QFE Q (aQBE Q Q@Q  Q B QC@Qp<-S>=t4SxQHI PHQ PHOPHKQHJ QLMPLQQHJQMH PMNQKH PKMQKJ QON POPPOQK QIJQNO$QQNQQIs=,,4s r0SP5 POPK PP P QK QKHQH Q 0v 0SG&QG  P s2SOPQOH  ! !onClipEvent(load){ size = 285; startX = _x; startY = _y; } onClipEvent(enterFrame){ _root.messages_area.scroll = Math.round((_y-startY)/size * _root.messages_area.maxscroll); }MM$&on ( release ) { doRefresh(); } bb8 Qon (release) { doChat(message_textfield,"ALL"); message_textfield = ""; } gA@2message_textfield@Times New Roman(*)6on ( release ) { doLogout(); gotoAndPlay(2); } O#wT8usersamount_area Arial"(Users : x/y`!W  userlist_areaArial"(+ Arial"(http://www.javazoom.nethttp://www.javazoom.net'qU?stop(); FLASH5 UIO?4'chatroomsVector = new Array; traceflag = false; if (server!=null) serverurl = server; else { serverurl = "http://localhost:8080/jchatbox/xml_connector"; server = serverurl; } /** * doManager. * No inputs. */ function doManager() { urlXML = new XML(); urlXML.load(serverurl+"/processor.jsp?todo=manager&rand="+getRandom()); urlXML.onLoad = parseMaQQpS0p8snq*(P3nh0P?Layer 1OCPicPage CPicLayer CPicFrame? CPicSprite ?macO?winOO? style.toUpperCase() == "AUTO" playerVersion GetVersion()platformplayerVersion.substr(0, 3)platformstyle.toUpperCase()platform == "MAC"2actionsO Media 3$:Media 2 :Symbol 9 ZSymbol 10FCPicPage CPicLayer CPicFrame?doManager(); CPicTextxArial"(jChatBox Flash5 client sampleg(content_feed_display,Arial"( CPicShapeUUHrQxxxqqq^^^zzzhhhcccwww}}}SRLR0PPpP PPPP 6mP p4Pmp2P P PP@PCp<\PPS p P P P   Q P P Q 0PPP Q  Q Q Q Q Q  P Q PPPQQPP QPP PQ Q QQ $PQ PQ0Q Q Q 7P   Q  Q 04PS \Q Q $s^~5t0,4P PH$PKPS R p|S!\P pbS"hP"P" P"#Q#$  P# P#%P#!P#Q!% P! Q#& Q%  P%)Q P$P' Q )"Q) p |S )j Q$( Q* P&Q*+Q*, Q*QP,Q-P.Q(+ P(/ P(1P('Q,.Q&+ P&(Q+. P/.P/- P/3Q,PP6QQ0 Q-2P32 P35 P37P34P31Q41 Q2P6Q'1 P' Q5Q-6 Q 4  P ) P  P 9 P  P + p D4P "P A P B P D P  P  P P Gp P P HP JP KP LP IP JP HS74Q78 P7)Q) Q)8 Q8- P8 P8;Q PP-P,QP P-P9P 9Q  Q -Q0-P05Q Q9- P9:P9Q85Q9;%Q+$P+: P+Q;Q0, QQ< QQ:=<SDQ:-y s^SN Q Q SQ Q Q " S->5p-=S>?\4P>+P>=Q+= Q+"P+Q P  P FP BQ@P@CQ?P?Q? P?BP?AP?Q"AQ" QBA$Q?C QD$QDE P P Q P QF PFEQ 0    Q Q EQBE Qp<-S 4Q@SJH0QIHPIJQQLMPLQQHJQMH PMNQKH PKMQKJ QOHPON POPPOQK QQHPQIQKH QNQQNO q s=D4SP5 POPK PP P QK PHQHK PHOQ 0v 0SG&   pS G2Q % SPO  CPicSprite''onClipEvent(load){ size = 285; startX = _x; startY = _y; } onClipEvent(enterFrame){ _root.content_feed_display.scroll = Math.round((_y-startY)/size * _root.content_feed_display.maxscroll); }{f @Arial"(Username :t fI@ username_textfield@Arial"(f @Arial"(Chatrooms :   Paramter Info:/n/ritems[] - A dynamic list of text items that you want to appear in your menu structure./n/r/n/rCallBack Summary:/n/r/n/r// Define the following method in the onLoad() handler. /n/r// OnMenu() will be invoked whenever you select any items /n/r// in the menu./n/ronClipEvent(load) {/n/r // item - a string in the form "itemXX" where "XX"/n/r // is the item ofset/n/r // label - the text string for the item/n/r function onMenu(item, label) {/n/r //+/n/r // your code goes here/n/r //-/n/r }/n/r}items defaultValue1 defaultValue2 defaultValue3 defaultValue4 defaultValue5styleAutoMacWinsroomsitems defaultValue1 defaultValue2 defaultValue3 defaultValue4 defaultValue5styleAutoMacWin CPicButtonȢȢ;Bvon (release) { chatroomID="-1"; for (j=0;j, where nodeName is replaced //with the name of your xml tag if(mainTag.nodeName.toLowerCase() == "manager") { //if we have a match, we collect all of the chatroom beneath it as an array of xml objects chatroomList = mainTag.childNodes; //now we loop over all the articles and look for the tags we are looking for... for(i=0;i<=chatroomList.length;i++) { //initialize a couple of variables to hold xml data we want displayed if(chatroomList[i].nodeName.toLowerCase() == "chatroom") { //we get the child node array beneath the articles, aka the meat and potatoes we are after chatroomTag = chatroomList[i]; chatroomDesc = new Object(); chatroomDesc.date = chatroomTag.attributes.DATE; chatroomDesc.id = chatroomTag.attributes.ID; chatroomDesc.maxusers = chatroomTag.attributes.MAXUSERS; chatroomDesc.totalusers = chatroomTag.attributes.TOTALUSERS; chatroomDesc.name = chatroomTag.attributes.NAME; chatroomDesc.subject = chatroomTag.attributes.SUBJECT; chatroomDesc.refresh = -1; chatroomDesc.private = "false"; chatroomDesc.userlist = null; chatroomDesc.msgs = null; chatroomsVector[i] = chatroomDesc; } } //return chatroomDescVector; } else { if (traceflag == true) trace("readXMLManager : Cannot load XML"); } } // Strips whitespace nodes from an XML document // by passing twice through each level in the tree function stripWhitespaceDoublePass(XMLnode) { // Loop through all the children of XMLnode for (var i = 0; i < XMLnode.childNodes.length; i++) { // If the current node is a text node... if(XMLnode.childNodes[i].nodeType == 3) { // ...check for any useful characters in the node. var j = 0; var emptyNode = true; for(j = 0;j < XMLnode.childNodes[i].nodeValue.length; j++) { // A useful character is anything over 32 (space, tab, // new line, etc are all below). if(XMLnode.childNodes[i].nodeValue.charCodeAt(j) > 32) { emptyNode = false; break; } } // If no useful charaters were found, delete the node. if(emptyNode) { XMLnode.childNodes[i].removeNode(); } } } // Now that all the whitespace nodes have been removed from XMLnode, // call stripWhitespaceDoublePass on its remaining children. for(var k = 0; k < XMLnode.childNodes.length; k++) { stripWhitespaceDoublePass(XMLnode.childNodes[k]); } } function getRandom() { return (Math.round(Math.random()*100000)); } //-------------- jChatBox XML to FLASH5 variables ----------------------jChatBoxXMLScriptOO 1Scene 1Ti: < Symbol 2clickerT: x: Symbol 5sliderKf9x: Symbol 6 sliderButtonKf9Yq: Symbol 8Menu.9<Paramter Info:/n/ritems[] - A dynami  CDocumentPage Page 1Scene 1Ti:< Symbol 2clickerT: x: Symbol 5sliderKf9x: Symbol 6 sliderButtonKf9Yq: Symbol 8Menu.9<Paramter Info:/n/ritems[] - A dynamic list of text items that you want to appear in your menu structure./n/r/n/rCallBack Summary:/n/r/n/r// Define the following method in the onLoad() handler. /n/r// OnMenu() will be invoked whenever you select any items /n/r// in the menu./n/ronClipEvent(load) {/n/r // item - a string in the form "itemXX" where "XX"/n/r // is the item ofset/n/r // label - the text string for the item/n/r function onMenu(item, label) {/n/r //+/n/r // your code goes here/n/r //-/n/r }/n/r}items defaultValue1 defaultValue2 defaultValue3 defaultValue4 defaultValue5styleAutoMacWin Symbol 9 menu - mac j9+ ; Symbol 10menu - mac shell Ej9 ; Symbol 11menu - currentvalue mac n9h ; Symbol 12 menu - rect en9_ ; Symbol 13Menu assets mac si9 ; Symbol 14menu - textbg maczn9b ; Symbol 15menu - textlabel macn9d ; Symbol 16menu - mac checkj9/ ; Symbol 17menu - outlinemn9` ; Symbol 18 menu - win6j9-6; Symbol 19menu - currentvaluen9g; Symbol 20 menu - textbgun9a ; Symbol 21Menu assets winn9e ; Symbol 22menu - textlabel}n9c ; Symbol 23menu - win shellDj9 ; Symbol 24 Pill ButtonEC9]; Symbol 25Red Block-loopL7:; Symbol 26Red Block-playL7d; Symbol 27Red Block-stopL7w; CMediaBitsMedia 4scrollerbar.png.\scrollerbar.pngy:y:*2Media 3scrollerbutton.png.\scrollerbutton.pngRu:)w:&2Media 2scrollerbutton.png.\scrollerbutton.pngRu:u:"2*@hhhhh  PublishRNWKProperties::speed256K0!PublishGifProperties::PaletteName"PublishHtmlProperties::StartPaused0%PublishFormatProperties::htmlFileNamejcbScript.html PublishQTProperties::LayerOption PublishQTProperties::AlphaOption"PublishQTProperties::MatchMovieDim1PublishHtmlProperties::Loop1Vector::Generator EncodingPublishFormatProperties::jpeg0Vector::Debugging Permitted0Vector::External Font Files0&PublishRNWKProperties::speedSingleISDN0&PublishRNWKProperties::singleRateAudio0PublishQTProperties::Width550$PublishPNGProperties::OptimizeColors1PublishHtmlProperties::Units0Vector::Generator Command%PublishRNWKProperties::mediaCopyright 2000#PublishRNWKProperties::flashBitRate1200PublishGifProperties::Smooth1&PublishFormatProperties::flashFileName jcbScript.swf%PublishFormatProperties::projectorMac0!PublishRNWKProperties::exportSMIL1 PublishRNWKProperties::speed384K0"PublishRNWKProperties::exportAudio1"PublishGifProperties::DitherOptionPublishHtmlProperties::Quality5(PublishHtmlProperties::VerticalAlignment1Vector::Generator Height400$PublishFormatProperties::pngFileName jcbScript.pngPublishFormatProperties::html1Vector::Preview as GIF0'PublishRNWKProperties::mediaDescription"PublishPNGProperties::FilterOption!PublishHtmlProperties::DeviceFont0Vector::Generator ColorVector::Override Sounds0PublishQTProperties::Flatten1PublishJpegProperties::DPI4718592PublishPNGProperties::BitDepth24 bits avec AlphaPublishPNGProperties::Smooth1"PublishGifProperties::DitherSolids0PublishGifProperties::Interlace0"PublishHtmlProperties::DisplayMenu1*PublishHtmlProperties::HorizontalAlignment1*PublishFormatProperties::generatorFileName jcbScript.swtPublishFormatProperties::gif0Vector::Template0Vector::Protect0Vector::Quality100$PublishRNWKProperties::mediaKeywords!PublishRNWKProperties::mediaTitlePublishRNWKProperties::speed28K1PublishGifProperties::Loop1PublishGifProperties::Width550#PublishFormatProperties::qtFileName jcbScript.mov$PublishRNWKProperties::speedDualISDN0$PublishRNWKProperties::realVideoRate100000PublishJpegProperties::Quality80"PublishPNGProperties::DitherOption#PublishGifProperties::PaletteOption#PublishGifProperties::MatchMovieDim1Vector::Generator LoadOrderVector::Generator Width550PublishFormatProperties::flash1$PublishJpegProperties::MatchMovieDim1#PublishPNGProperties::PaletteOption#PublishPNGProperties::MatchMovieDim1PublishHtmlProperties::Align0-PublishFormatProperties::projectorWinFileName jcbScript.exe#PublishQTProperties::PlayEveryFrame0"PublishJpegProperties::Progressive0"PublishPNGProperties::DitherSolids0PublishHtmlProperties::Height400PublishHtmlProperties::Width550%PublishFormatProperties::jpegFileName jcbScript.jpgVector::Omit Trace Actions0Vector::Debugging PasswordPublishJpegProperties::Size0PublishPNGProperties::Interlace0PublishGifProperties::Height400'PublishHtmlProperties::TemplateFileName/C:\PROGRA~1\MACROM~1\FLASH5~1\Html\Default.html!PublishHtmlProperties::WindowMode0-PublishFormatProperties::projectorMacFileName jcbScript.hqxPublishFormatProperties::rnwk0PublishFormatProperties::png0Vector::TopDown0PublishRNWKProperties::speed56K1PublishQTProperties::Height400%PublishPNGProperties::RemoveGradients0PublishGifProperties::MaxColors255'PublishGifProperties::TransparentOptionPublishGifProperties::LoopCount"PublishFormatProperties::generator0Vector::Report0"PublishRNWKProperties::audioFormat0$PublishGifProperties::OptimizeColors1PublishFormatProperties::qt0Vector::Version5Vector::Stream Compress7Vector::Event Format0 PublishRNWKProperties::speed512K0PublishJpegProperties::Height400PublishPNGProperties::Height400PublishPNGProperties::Width550%PublishGifProperties::RemoveGradients0PublishHtmlProperties::Scale0Vector::Event Compress7"PublishRNWKProperties::mediaAuthor(PublishRNWKProperties::speedCorporateLAN0&PublishRNWKProperties::showBitrateDlog1"PublishRNWKProperties::exportFlash1PublishQTProperties::Looping0*PublishQTProperties::UseQTSoundCompression0PublishJpegProperties::Width550!PublishPNGProperties::PaletteName!PublishPNGProperties::Transparent0&PublishGifProperties::TransparentAlpha128PublishGifProperties::Animated0$PublishFormatProperties::gifFileName jcbScript.gifVector::Stream Format0"PublishQTProperties::PausedAtStart0%PublishQTProperties::ControllerOption0PublishPNGProperties::MaxColors255Vector::MatchMovieDim1Vector::Generator FPS12%PublishFormatProperties::rnwkFileNamejcbScript.smil%PublishFormatProperties::projectorWin0%PublishFormatProperties::defaultNames1PropSheet::ActiveTab1620 CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙is the instance of the joined chatroomDesc. */ function callbackQuit(vector) { displayData(vector); } // ----- jChatBox callbacks ----- // --------- Callbacks integration to FLASH5 UserInterface ------------ /** * UI : Displays chatrooms info. */ function displayData(vector) { content_feed_display = ""; menuArray = new Array("Select a room"); for (j=0;j"+chatroomDesc.date+" "+chatroomDesc.id+" "+chatroomDesc.name+" "+ chatroomDesc.subject+" "+chatroomDesc.totalusers+"/"+chatroomDesc.maxusers+"

"; menuArray=menuArray.concat(chatroomDesc.name); } srooms.currentValue = "Select a room"; srooms.items = menuArray; } /** * UI : Displays chatroom messages and userlist. */ function displayChat(chatroom) { vector = chatroom.msgs; for (j=0;j"+msg.date+""+" ***"+msg.content+" has joined the chatroom

"; } else if (msg.type == "2") { // Left messages. messages_area += "

"+msg.date+""+" ***"+msg.content+" has left the chatroom

"; } else if (msg.type == "3") { // Private messages. messages_area += "

"+msg.date+""+" <"+msg.from+"> "+msg.content+"

"; } else { // Normal messages. messages_area += "

"+msg.date+""+" <"+msg.from+"> "+msg.content+"

"; } } userlist_area = ""; vector = chatroom.userlist; usersamount_area = "Users : "+chatroom.totalusers+"/"+chatroom.maxusers; for (k=0;k"+user.name+"

"; } else { userlist_area += "

"+user.name+"

"; } } } // --------- Callbacks integration to FLASH5 UserInterface ------------ rArial"(jChatBox Flash5 client sampleCq( messages_areaArial"( UU+ rQxxxqqq^^^zzzhhhcccwww}}}SRLR0P PP" P&P&+ P(+P/.P.P P-6 P6P P0PQP QP pPP P PP P P PPs@P Q P QP PP  PPQP P P  P P P P 6mP  P P P P PP P QQ 6m P Q QP P PPP P P Q QQQPQ Q pP P!P#P#"S 0Q 6=P Q= 04PP PKPHP P004S $p t4S  P) p |S"NQ" Q#$ P  P 'P1'P('P' Q%!P#!Q#& Q ! Q$ P# P% P) Q$( Q%)P ) p|S#%\Q*, P+. P(/ P3/P32 P5Q*+P*P*Q, Q-P/- P2-Q.,Q,0P0, P0-P8- P -P  P 9P8;P8)P7)P ) P)P; P9;Q(1Q41 P31Q2 Q6Q=QPPPQ 4 P74P34Q 4 P34Q37 Q78 Q PQ-P,QQ8 Q9- P9:P9P  P+Q-Q  P 9 Q85P05Q91Q p-<\4P><$PC<p<\P<Q35 Q:=IP+p D4P"P+p=Q:- Q+: Q + Q&(S->4P=> P=+Q+>P? P?PC?P>?P+P" P"AP A PBAP?AQ+"Q@ P P?P?Q?B Q "QCQ@PC@Q 0PDP  P P P PFEPF P PP@QDE P EP FP Q D  Q UP PG  PGp P 0v 0P p2P P Q  QBE Q  Q BQ B Q G0S PH PHKPK PKQHJ PHI PQInt (mouseDown) { // see if we pressed on our menu item if (hitTest(_root._xmouse, _root._ymouse, false)) { // call the method before doing a goto(1) // a goto(1) in the parent will cause // this handler to go away _parent._parent.OnMenu(parseInt(_name.substr(4, 3)), label); _parent._parent.currentValue = _parent["item"+parseInt(_name.substr(4, 3))].label; _parent.prevFrame(); updateAfterEvent(); } else if (_parent.currentitem.hittest(_root._xmouse, _root._ymouse)) { _parent.prevFrame(); updateAfterEvent(); } } onClipEvent (mouseUp) { // check if mouse is still held down over default value currentTime = getTimer(); if (_parent.currentitem.hitTest(_root._xmouse, _root._ymouse) && (currentTime - _parent.delayCheck) > 1000) { _parent.delayCheck = 0; _parent.prevFrame(); updateAfterEvent(); } else if (!_parent.currentitem.hitTest(_root._xmouse, _root._ymouse)) { // hit test all of the items starting with item1 for (var i = 0; i<_parent._parent.items.length; i++) { if (_parent["item"+i].hitTest(_root._xmouse, _root._ymouse)) { _parent._parent.OnMenu(i, _parent["item"+i].label); _parent._parent.currentValue = _parent["item"+i].label; } } // remember this will cause the unload event // for item0 _parent.prevFrame(); updateAfterEvent(); } } onClipEvent (mouseMove) { // set highlight colors if mouse is over us if (hitTest(_root._xmouse, _root._ymouse, false)) { textColor = new Color(this.textlabel); textColor.setRGB(0xFFFFFF); bgColor = new Color(this.textbg); bgColor.setRGB(0x003366); } else { // set colors back to normal if mouse isn't over us textColor = new Color(this.textlabel); textColor.setRGB(0x000000); bgColor = new Color(this.textbg); bgColor.setRGB(0xFFFFFF); } updateAfterEvent(); } onClipEvent (unload) { // remove outline _parent.Outline.removeMovieClip(); // make the top item unload all of the other items if (_name != "item0") { return; } for (var i = 1; i<(_parent._parent.items.length); i++) { _parent["item"+i].removeMovieClip(); } } currentitem?valuesOO?Qoutline?outlineOOwinshell? win shellOpex5;cacS0PPPPPPQ*(Q<?Layer 1OCPicPage CPicLayer CPicFrameCPicTexto[L " _parent.label _sans(List Value?Layer 1OCPicPage CPicLayer CPicFrame D0000?Layer 1OCPicPage CPicLayer CPicFrame CPicSpritetextbg** textlabel?Layer 1OCPicPage CPicLayer CPicFrame 0000?Layer 1OCPicPage CPicLayer CPicFrame CPicSprite CPicText9[ _parent._parent.currentValue _sans(List Value?Layer 1OCPicPage CPicLayer CPicFrame CPicShape'#AS:z00@00QPPQPS(3(Xs00P000S0PJJPs0j00PPPQL PMLP LP IPJIQ J0PKJ PKHPMHPOH QHJQ KPMK QMNQK PO PPOPNOPHOQQNQNO QHKQHQ Q H<Q/PmPs-=s4QP< POPQQOS Jsd2CPicPage CPicLayer CPicFrame CPicSprite macshell? mac shellOO xonClipEvent (load) { _parent.stop(); if (_parent._parent.currentValue == "List Value") { _parent._parent.currentValue = _parent._parent.items[0]; } } onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, false)) { // start timer for delay check _parent.delayCheck = getTimer (); // go to next frame _parent.nextFrame(); updateAfterEvent(); } } currentitem-m?2  onClipEvent (load) { // define variables overlap = 0.1; // duplicate the top item and assign labels to each new item if (_name.indexof("item", 0) < 0 ) { // we are the top item _name = "item0"; label = _parent._parent.items[0]; if (_parent.currentOffset == null) { _parent.currentOffset = 0; } _y+=_parent.currentOffset*(_height-overlap)*-1; // duplicate items for (var i = 1; i<(_parent._parent.items.length); i++) { duplicateMovieClip (_target, "item"+i, i); } // set menu outline size/location _parent.outlineMac._height = _parent._parent.items.length*(_height-overlap); _parent.outlineMac._y = _parent.item0._y; // bring outline & checkmark to the top _parent.outlineMac.swapDepths( 100 ); _parent.checkmark.swapDepths( 101 ); } else { // position duplicated item at bottom of menu list var index = parseInt(_name.substr(4, 3)); label = _parent._parent.items[index]; _y+=index*(_height-overlap); } } onClipEvent (mouseDown) { // see if we pressed on our menu item if (hitTest(_root._xmouse, _root._ymouse, false)) { // call the method before doing a goto(1) // a goto(1) in the parent will cause // this handler to go away _parent._parent.OnMenu(parseInt(_name.substr(4, 3)), label); _parent._parent.currentValue = _parent["item"+parseInt(_name.substr(4, 3))].label; _parent.currentOffset = parseInt(_name.substr(4, 3)); _parent.prevFrame(); updateAfterEvent(); } } onClipEvent (mouseUp) { if (_parent.currentOffset == null) { _parent.currentOffset = 0; } // check if mouse is still over default value currentTime = getTimer(); if (_parent["item" + _parent.currentOffset].hitTest(_root._xmouse, _root._ymouse) && (currentTime - _parent.delayCheck) > 450) { _parent.delayCheck = 0; _parent.prevFrame(); updateAfterEvent(); } else if (!_parent["item" + _parent.currentOffset].hitTest(_root._xmouse, _root._ymouse)) { // hit test all of the items starting with item1 for (var i = 0; i<_parent._parent.items.length; i++) { if (_parent["item"+i].hitTest(_root._xmouse, _root._ymouse)) { _parent._parent.OnMenu(i, _parent["item"+i].label); _parent._parent.currentValue = _parent["item"+i].label; _parent.currentOffset = i; } } // remember this will cause the unload event // for item0 _parent.prevFrame(); updateAfterEvent(); } } onClipEvent (mouseMove) { // set highlight colors if mouse is over us if (hitTest(_root._xmouse, _root._ymouse, false)) { textColor = new Color(this.textlabel); textColor.setRGB(0xFFFFFF); bgColor = new Color(this.textbg); bgColor.setRGB(0x333333); if (this == eval("_parent.item"+_parent.currentOffset)) { checkColor = new Color(_parent.checkmark); checkColor.setRGB(0xFFFFFF); } } else { // set colors back to normal if mouse isn't over us textColor = new Color(this.textlabel); textColor.setRGB(0x000000); bgColor = new Color(this.textbg); bgColor.setRGB(0xE7E3E7); if (this == eval("_parent.item"+_parent.currentOffset)) { checkColor =  ! !onClipEvent(load){ size = 285; startX = _x; startY = _y; } onClipEvent(enterFrame){ _root.messages_area.scroll = Math.round((_y-startY)/size * _root.messages_area.maxscroll); }MM$&on ( release ) { doRefresh(); } bb8 Qon (release) { doChat(message_textfield,"ALL"); message_textfield = ""; } gA@2message_textfield@Times New Roman(*)6on ( release ) { doLogout(); gotoAndPlay(2); } O#wT8usersamount_area Arial"(Users : x/y`!W  userlist_areaArial"(+ Arial"(http://www.javazoom.nethttp://www.javazoom.net'qU?stop(); FLASH5 UIOnew Color(_parent.checkmark); checkColor.setRGB(0x000000); } } updateAfterEvent(); } onClipEvent (unload) { // remove checkmark & outline _parent.checkmark.removeMovieClip(); _parent.outlineMac.removeMovieClip(); // make the top item unload all of the other items. if (_name != "item0") { return; } for (var i = 1; i<(_parent._parent.items.length); i++) { removeMovieClip (_parent["item"+i]); } } checkmark?valuesOO??YQ?)2 outlineMac?outlineO?4'chatroomsVector = new Array; traceflag = false; if (server!=null) serverurl = server; else { serverurl = "http://localhost:8080/jchatbox/xml_connector"; server = serverurl; } /** * doManager. * No inputs. */ function doManager() { urlXML = new XML(); urlXML.load(serverurl+"/processor.jsp?todo=manager&rand="+getRandom()); urlXML.onLoad = parseManager; } /** * This function is called when XML matching to manager.dtd is loaded. * Then XML content is converted in an Array of chatroomDesc objects. */ function parseManager() { if (this.loaded == true) { readXMLManager(urlXML,chatroomsVector); callbackManager(chatroomsVector); } else { if (traceflag == true) trace("parseManager : XML not loaded"); } } /** * doLogin(username,chatroomid). * Inputs : * username : username to login. * id : ID of the chatroom to join. */ function doLogin(username,id) { chatXML = new XML(); chatXML.load(serverurl+"/processor.jsp?todo=login&name="+escape(username)+"&chatrooms="+id+"&newonly=true&rand="+getRandom()); chatXML.onLoad = parseLogin; } /** * This function is called when XML matching to chat.dtd is loaded after login action. * Then XML content updates the Array of chatroomDesc objects. */ function parseLogin() { if (this.loaded == true) { currentChatroomDesc = readXMLChat(chatXML,chatroomsVector); callbackLogin(currentChatroomDesc); } else { if (traceflag == true) trace("parseLogin : XML noCPicPage CPicLayer CPicFrame CPicShapenXkk^mmS``\ggv}}bxx|`tt^ssP``auuw}}WbbyN[[u||Xccy\ooq}}qxx{{{jjjNNNYYYJJJyWppfffzzzvvvz}xvyvv~ri}}SD(PPPPSPQ<PP<(P6P5P=P?P@P1P2P1P2P P2P1P/P PP!PTPUPVPPPP2PzPPzP/PPwPzPwPsPPxP{PjPPgPpPoP~PPPPPPPPPPPPPPQ <P P P QQ P P Q P P 9P QQPPPQQ<Q(Q<PPPQQQQ<P$Q(P!PP"QP P0P$Q(P Q"PQ"Q"QQ#QPPQ %xP 4Q&'(P&+P&)P&*Q%)P%,Q) (P)(Q%*Q*Q*P Q.(P.P.-Q-&P-'Q-PQ0/<P01P0&Q/ Q+2(P+ Q21Q3+P3'P3&P31Q&$Q'Q2 (QQ$(Q9;xP9<Q79P7 P7:P78Q5=(Q>8P>BP>?P>AQ?@Q=?Q6AP65QA;Q=AQ<6Q<;Q8:(Q;8Q<QB1(<PB@Q1CQ,1P,CP,:P,4Q1(Q21QC2Q:CP:BQ:4Q(2(Q,(Q 4SpPHPGPFPIpJPKPL(PJPOPPOPRP\P[PXpYPPFPPPPPPpdPaPcP^(P`PpQ<QDEPDPDPDQF(PFI(QGPGF(QEGPEHQQHQHGQEQIJ<(QIQQSJK8(QM(PMNPMLQLQPN(PPQPPOQORQO(QKL(QNS(QJOQJNQLJQKS5=HP5P56Q6<P6AQ=?P=QA=QA>QA;Q6Q9 P97P9;P9<Q<Q,1PP,CP,:P,4P,%P,(Q:7P:4Q@<P@?P@BQ:BP:8Q1(P1BP1CQ>BP>?Q78QC2<Q>8Q;8Q7 Q<(Q?((Q:CQ<;Q2dQ1P12Q2(P2(P2 Q1(Q P P Q P Q QPQ<PQ.-<P.P.QQ4 <Q %Q Q P QP*Q%)Q*P*&P*%Q Q'(QSU`P#QUVQTUQPPPP(PQ(PQQ#TP#!SPPPP$QP"QP P0P$Q"P"P"QQQPPPQUV<PUPUTPUQPWQ#QT(PT#Q!PQ!(P!Q!#Q(QP QPPP#QQS +@P Q) P)(Q+3P+2Q21P2Q&+P&)Q01<P0&Q0/Q&-P&$Q&3Q/<P1Q/ Q31Q'3P'&QQ$P-Q'-SPQ d<SXY(QQZ<PQRQ[PZPSQZ[PZ\Q\[Q[X(QR\(QXS Q 4(SSQhS!XQWsJ  S`^pxP`_P`fP`(P`Q^](Q]_Qa<pdPPP/PPFPpYPSbxPb_PbaQad(Qc_Pc^QcaQ_eQePe_QfQf_Sjm@(PjnPjgQhi<PhlPhkPhmPhjQnm(PnkPnpPgpQoq(Po|Po}Po~QokQkqQrw<PrPrtPrsQtuQqtPq|QvtPvPvPv|QixPilQs(QylPyxPyPyuQusQquQzw(QlqQj{Pi{Q~xP~QQ<PPPQQPQPPPQ}P}Q(PPPQ(PQPPPQ(QPQwQP/PPQwPQz((PPPPQzPPQz/QQPQ<QQzS@PQPPPQPQPQ(PPPQzQPPPQPPPQ(PPPPPQPQQ(QQ(PQPQQ}|Q(Qz<Qpo(Sh@PWQQV(QQPQ2PQ2QPPPQQPQ(PQPQxS~PPQoQpQ(PPPQ}PQ}|P}Qo}Po~Q<PQ~P~Qv(Q(QQ(Q(PPPQQPPPQPQPzPPQPQPQzPwPPQwPwQQQQPQ(PPzPQzPzQPQ/<P/P/zSPQPPPPQ(PQPQPQ(PQ(PQPPQ(QQQPPPQzPzPzQPQ2(P2P2QW<PWVQQQPQ<PVQQ(PPPQPQQQ((SQQ<QPSpn8Ppo(QgPgjPgpQmh(PmnPmjQql(PquPqtPq|PqoPqkQixPilPihPi{PxPxyQhlPhkQyl(QyuQyQutQtrPtvQusQhjQjn(QnkPokQ{Qj<, where nodeName is replaced //with the name of your xml tag if(mainTag.nodeName.toLowerCase() == "manager") { //if we have a match, we collect all of the chatroom beneath it as an array of xml objects chatroomList = mainTag.childNodes; //now we loop over all the articles and look for the tags we are looking for... for(i=0;i<=chatroomList.length;i++) { //initialize a couple of variables to hold xml data we want displayed if(chatroomList[i].nodeName.toLowerCase() == "chatroom") { //we get the child node array beneath the articles, aka the meat and potatoes we are after chatroomTag = chatroomList[i]; chatroomDesc = new Object(); chatroomDesc.date = chatroomTag.attributes.DATE; chatroomDesc.id = chatroomTag.attributes.ID; chatroomDesc.maxusers = chatroomTag.attributes.MAXUSERS; chatroomDesc.totalusers = chatroomTag.attributes.TOTALUSERS; chatroomDesc.name = chatroomTag.attributes.NAME; chatroomDesc.subject = chatroomTag.attributes.SUBJECT; chatroomDesc.refresh = -1; chatroomDesc.private = "false"; chatroomDesc.userlist = null; chatroomDesc.msgs = null; chatroomsVector[i] = chatroomDesc; } } //return chatroomDescVector; } else { if (traceflag == true) trace("readXMLManager : Cannot load XML"); } } // Strips whitespace nodes from an XML document // by passing twice through each level in the tree function stripWhitespaceDoublePass(XMLnode) { // Loop through all the children of XMLnode for (var i = 0; i < XMLnode.childNodes.length; i++) { // If the current node is a text node... if(XMLnode.childNodes[i].nodeType == 3) { // ...check for any useful characters in the node. var j = 0; var emptyNode = true; for(j = 0;j < XMLnode.childNodes[i].nodeValue.length; j++) { // A useful character is anything over 32 (space, tab, // new line, etc are all below). if(XMLnode.childNodes[i].nodeValue.charCodeAt(j) > 32) { emptyNode = false; break; } } // If no useful charaters were found, delete the node. if(emptyNode) { XMLnode.childNodes[i].removeNode(); } } } // Now that all the whitespace nodes have been removed from XMLnode, // call stripWhitespaceDoublePass on its remaining children. for(var k = 0; k < XMLnode.childNodes.length; k++) { stripWhitespaceDoublePass(XMLnode.childNodes[k]); } } function getRandom() { return (Math.round(Math.random()*100000)); } //-------------- jChatBox XML to FLASH5 variables ----------------------jChatBoxXMLScriptOOs ----------------------jChatBoxXMLScript