비

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

· 2011-08-09 (화) 20:09:20 · 3556
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와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
11-08-22 조회 5,660
11-08-22 조회 4,626
11-08-22 조회 6,438
11-08-20 조회 8,785
11-08-19 조회 9,654
11-08-18 조회 4,390
11-08-18 조회 5,759
11-08-16 조회 9,468
11-08-11 조회 8,354
11-08-10 조회 6,555
11-08-10 조회 6,655
11-08-09 조회 3,557
11-08-09 조회 7,044
11-08-08 조회 3,705
11-08-08 조회 5,170
11-08-08 조회 7,073
11-08-08 조회 7,298
11-08-05 조회 4,034
11-08-01 조회 6,254
11-07-28 조회 4,868