묻고답하기

안녕하세요.

5컷이 전환되는 xml 플래시구요.

액션소스는 아래와 같은데,

이 플래시가 xml링크 파일에서 이미지와 이미지링크,타겟을 설정을 하게 되어 있습니다.

그런데 이 플래시를 팝업창에 넣어서 이미지를 클릭하면 부모창으로 링크가 되기를 원하는데

xml파일자체에서는 자바스크립트를 넣을 수도 없고 해서 도무지 어디서 손을 봐야하는건지 알 수 없어서요.

도움 좀 부탁드리겠습니다.

 

<플래시 액션소스>

    function linkClean(temp) {
        temp = String (temp);
        var i = 0;
        while (i < temp.length) {
            if (temp.substr(i, 5) == "apos;") {
                temp = (temp.substr(0, i - 1) + "\'") + temp.substr(i + 5);
            }
            i++;
        }
        var i = 0;
        while (i < temp.length) {
            if (temp.substr(i, 4) == "amp;") {
                temp = (temp.substr(0, i - 1) + "&") + temp.substr(i + 4);
            }
            i++;
        }
        return (temp);
    }
    _global.numOfImage = 5;
    _global.widthOfImage = 198;
    myXML = new XML ();
    myXML.load("/web/upload/rfs_pr2.xml");
    System.useCodepage = true;
    _global.imageURL = new Array ();
    _global.link = new Array ();
    _global.targetFrame = new Array ();
    myXML.ignoreWhite = true;
    myXML.onLoad = function (temp) {
        _global.playType = Number (String (this.childNodes[0].childNodes[0]));
        _global.gap = Number (String (this.childNodes[1].childNodes[0])) * 1000;
        i = 1;
        while (i <= numOfImage) {
            _global.imageURL[i] = this.childNodes[i + 1].childNodes[0].childNodes[0];
            _global.link[i] = this.childNodes[i + 1].childNodes[1].childNodes[0];
            _global.targetFrame[i] = this.childNodes[i + 1].childNodes[2].childNodes[0];
            link[i] = linkClean(link[i]);
            i++;
        }
        gotoAndStop (2);
    };
    stop();

 

 

*************** xml파일 소스 ************

<type>2</type>
<time>2</time>

<1번컷>
 <filename>rfs/rfs1.jpg</filename>
 <link>/front/php/product.php?product_no=1</link>
 <target>_self</target>
</1번컷>

<2번컷>
 <filename>rfs/rfs2.jpg</filename>
 <link>/front/php/product.php?product_no=1</link>
 <target>_self</target>
</2번컷>

<3번컷>
 <filename>rfs/rfs3.jpg</filename>
 <link>/front/php/product.php?product_no=1</link>
 <target>_self</target>
</3번컷>

<4번컷>
 <filename>rfs/rfs4.jpg</filename>
 <link>/front/php/product.php?product_no=1</link>
 <target>_self</target>
</4번컷>

<5번컷>
 <filename>rfs/rfs5.jpg</filename>
 <link>/front/php/product.php?product_no=1</link>
 <target>_self</target>
</5번컷>

 

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
earthhero.me 오픈아이디 회원가입은 어디서 하나요? [3] 2009.02.03 by earthhero.me
오준석801 무식한 질문 이지만 읽어주세요  
hammers 1:1 상담게시판 개설? [8] 2009.02.03 by hammers
gtobe 제로보스 설치시 퍼미션 조정이요~ [1] 2009.02.03 by 백성찬
D.HLab 관리 페이지 메인이 안들어가져요... [1] 2009.02.03 by 백성찬
bibleinside 도메인.com/xe -> 도메인.com 으로 바꾸는 방법 생각보다 간단치 않네요 (안그러면.. 그냥 프레임으로 주소 고정하는 방법?) [2] 2009.02.03 by melodic
이정민859 목록, 쓰기 버튼 바꾸는 방법 질문드립니다 ;ㅁ; [1] 2009.02.03 by 띵야
만쓰별(정만) 탭형태 최근이미지 스킨 탭순서 변경가능한가요?  
732 최근게시물에 카테고리분류와 new표시를 붙이고 싶어요.~ [2] file 2009.02.03 by 732
왔다갔다 도와주세요, [1] file 2009.02.03 by 만쓰별(정만)
이권묵 권한이 없다는 경고창 한 번 봐주실래요? [1] file 2009.02.03 by hammers
김양팽 일본어로 홈페이지를 만들려고 합니다. 가능할까요. [9] 2009.06.01 by 熟女
박병철597 타이틀설정방법질문요(브라우저제목없애는방법) file  
우유가짱 레이어 액션 질문이요..;  
kanasii 1.1.5로 업!후에 첨부 이미지가 전부 X로 나옵니다. [2] 2009.02.03 by 느까끼
복음누리 제로보드 레이아웃 스킨대로 하고싶습니다. [1] 2009.02.03 by 궁금이2
왜만지냐 거북이svn으로 faceOff 다운받아서 [6] 2009.02.03 by 왜만지냐
가을단풍 자동저장 기능 자바스크립트 오류  
강달이 회원정보보기에서 소속 그룹이 관리자페이자와 다릅니다. [1] 2009.02.03 by 최영석222
자이제로 홈페이지 메뉴 글씨체를 변경할 수 있나요? [4] 2009.02.03 by 자이제로