비

방문 및 접속자 정보 플래시로 끌어쓰기

· 2011-08-09 (화) 20:09:20 · 3533
xmlcounter.php 메인폴더에 업로드하고
xmlvist.php 는 lib 폴더에 업로드합니다.
예제는 utf-8 입니다.
 
xmlcounter.php 파일을 플래시에서 xml 로드로 끌어 쓰면 됩니다.
이를테면 액션 2.0 에서는 아래처럼 끌어쓰면 되겠죠. 소스를 열면 xml 의 형식이 보이니까요.
 
loadXml = new XML();
loadXml.ignoreWhite = true;
loadXml.load("http://wittazzurri.hosting.paran.com/wittazzurri/xmlcounter.php");
loadXml.onLoad = function() {
    trace(this.firstChild.childNodes[0].firstChild);
    trace(this.firstChild.childNodes[1].firstChild);
    trace(this.firstChild.childNodes[2].firstChild);
    trace(this.firstChild.childNodes[3].firstChild);
    trace(this.firstChild.childNodes[4].firstChild);
    trace(this.firstChild.childNodes[5].firstChild);
}
 

첨부파일

xmlcounter.php (82 bytes) 13회 2011-08-09 20:09
xmlvist.php (3.5 KB) 5회 2011-08-09 20:09
|
댓글을 작성하시려면 로그인이 필요합니다.

그누4 팁자료실

3,309건

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
11-08-22 조회 5,628
11-08-22 조회 4,597
11-08-22 조회 6,409
11-08-20 조회 8,748
11-08-19 조회 9,629
11-08-18 조회 4,365
11-08-18 조회 5,727
11-08-16 조회 9,444
11-08-11 조회 8,310
11-08-10 조회 6,529
11-08-10 조회 6,631
11-08-09 조회 3,534
11-08-09 조회 7,012
11-08-08 조회 3,677
11-08-08 조회 5,139
11-08-08 조회 7,050
11-08-08 조회 7,260
11-08-05 조회 4,012
11-08-01 조회 6,231
11-07-28 조회 4,840