s

플래시관련.

· 17년 전 · 1296
안녕하세요.
맨날 자료만 구경하러 오다가 이렇게 질문과 대답에 글을 쓰는건 처음이네요^^

다름이 아니라 제가 한가지 작업을 하고있는데요.
간단히 설명드리면서 질문을 하겠습니다.
답변해주시면 감사하겠습니다^^

일단 main.html 로 플래시를 풀스크린으로 띄웁니다.
풀스크린인 플래시에서 버튼을 클릭하면 로드무비 되어서 다른 ex.swf가
나타납니다.
ex.swf가 나타나는 동시에 a.html이라는 레이어가 하나 뜹니다.(레이어 관련 스크립트는 main.html에 포함)
이후에 ex.swf에 있는 클로즈 버튼을 클릭하면 ex.swf와 레이어로 열린 a.html이 같이 종료되는 것을
제작하고 싶은데 이것이 잘안됩니다.
레이어로 열린 a.html은 종료가 안되고 ex.swf만 닫힙니다.


main.html소스는 이렇게 되어있습니다.
<html>
<head>

<!-- 레이어 관련소스 시작-->
<style type='text/css'>
.xfCIco { /* close icon */
position:absolute;
overflow:hidden;
font-size:small;
right:20px;
top:0px;
width:50px;
height:20px;
margin:0;
padding:0;
background:transparent;
cursor:pointer;
background-image:url(img/close.jpg);
}

.xfClient { /* The 'client area' can be an IFRAME or a DIV */
position:absolute;
left:0;
margin:15;
padding:0;
border:none;
}
.xFenster {
width:700px;
height:300px;
overflow:auto;
border:0px solid white;
}
</style>

<script type='text/javascript' src='http://www.blueb.co.kr/SRC/javascript/js/x_core.js'></script>
<script type='text/javascript' src='http://www.blueb.co.kr/SRC/javascript/js/x_event.js'></script>
<script type='text/javascript' src='http://www.blueb.co.kr/SRC/javascript/js/x_drag.js'></script>
<script type='text/javascript' src='http://www.blueb.co.kr/SRC/javascript/js/xfenster.js'></script>

<script type='text/javascript'>

var xf = []; // an array which will hold the xFenster objects

function fenster(n, title, url)
{
// Prepare initial size and position:
var cw = xClientWidth();
var ch = xClientHeight();
var fw = cw / 2;
var fh = ch / 1.3;
var fx = ((cw - fw) / 1) - (n * 1) + xScrollLeft();
var fy = ((ch - fh) / 2) - (n * 1) + xScrollTop();

// Open fenster number n with the requested title and url:
if (xf[n]) { // if it already exists
xf[n].show();
if (title && title != xf[n].title()) { // for this demo I assume that if the title is not different then the url is not different
if (url) xf[n].href(url);
if (title) xf[n].title(title);
}
}
else { // it doesn't yet exist so create it
xf[n] = new xFenster(['xf'+n, title, fw, fh, url], fx, fy);
}
}
</script>
<!-- 레이어 관련소스 끝 -->



<title></title>
</head>
<body leftmargin="0" topmargin="0" scroll="no" bgcolor="#003366">
<!--url's used in the movie-->
<!--text used in the movie-->
<table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0">
<tr>
<td align=center valign=center>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="main" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="main.swf" />
<param name="quality" value="high" />
<param name="scale" value="exactfit" />
<param name="bgcolor" value="#ffffff" />
<param name="menu" value="false" />
<embed src="main.swf" loop="false" menu="false" quality="high" scale="exactfit" bgcolor="#ffffff" width="100%" height="100%" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
<table border="0" width="100%" height="100%">
<tr>
<td>
<object id="factory" style="display:none" viewastext classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="http://www.a.kr/ActiveX/ScriptX.cab#Version=6,1,431,2">
</object>
</body>
</html>



--------------------------------------------------------
ex.swf에는
클로즈 버튼에는
on (release) {

unloadMovie(40);
}
걸려있구요.

일반액션에는
getURL("javascript:fenster(0, '', 'edrawings/bottom_ring.htm')");
this.bg.useHandCursor = false;

이렇게 되어있습니다.



흐음.
설명이 잘 되었는지 모르겠네요.
알려주시면 감사하겠습니다.ㅠㅠ
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
17년 전 조회 2,269
17년 전 조회 1,256
17년 전 조회 1,272
17년 전 조회 1,337
17년 전 조회 6,289
17년 전 조회 6,106
17년 전 조회 2,288
17년 전 조회 1,264
17년 전 조회 1,376
17년 전 조회 2,341
17년 전 조회 1,737
17년 전 조회 1,392
17년 전 조회 1,421
17년 전 조회 1,350
17년 전 조회 1,307
17년 전 조회 4,211
17년 전 조회 2,426
17년 전 조회 1,872
17년 전 조회 3,013
17년 전 조회 1,705
17년 전 조회 1,379
17년 전 조회 1,428
17년 전 조회 1,472
17년 전 조회 1,373
17년 전 조회 1,468
17년 전 조회 2,652
17년 전 조회 4,461
17년 전 조회 1,417
17년 전 조회 4,183
17년 전 조회 4,338
17년 전 조회 1,444
17년 전 조회 2,421
17년 전 조회 1,867
17년 전 조회 3,461
17년 전 조회 1,604
17년 전 조회 3,850
17년 전 조회 3,658
17년 전 조회 2,824
17년 전 조회 3,175
17년 전 조회 2,888
17년 전 조회 2,196
17년 전 조회 3,559
17년 전 조회 2,887
17년 전 조회 3,775
17년 전 조회 1,383
17년 전 조회 2,498
17년 전 조회 1,563
17년 전 조회 1,420
17년 전 조회 1,302
17년 전 조회 1,297
17년 전 조회 1,662
17년 전 조회 3,107
17년 전 조회 3,494
17년 전 조회 3,252
17년 전 조회 2,137
17년 전 조회 4,249
17년 전 조회 1,641
17년 전 조회 1,358
17년 전 조회 1,474
17년 전 조회 1,350
17년 전 조회 1,589
17년 전 조회 1,969
17년 전 조회 2,578
17년 전 조회 2,655
17년 전 조회 1,663
17년 전 조회 1,412
17년 전 조회 2,679
17년 전 조회 3,108
17년 전 조회 3,474
17년 전 조회 3,420
17년 전 조회 2,578
17년 전 조회 4,004
17년 전 조회 3,429
17년 전 조회 5,739
17년 전 조회 2,906
17년 전 조회 2,113
17년 전 조회 2,186
17년 전 조회 2,015
17년 전 조회 1,966
17년 전 조회 3,028
17년 전 조회 2,137
17년 전 조회 1,804
17년 전 조회 2,315
17년 전 조회 1,364
17년 전 조회 1,912
17년 전 조회 3,121
17년 전 조회 2,373
17년 전 조회 2,039
17년 전 조회 2,278
17년 전 조회 1,562
17년 전 조회 1,960
17년 전 조회 1,478
17년 전 조회 2,005
17년 전 조회 2,034
17년 전 조회 1,280
17년 전 조회 3,385
17년 전 조회 4,553
17년 전 조회 2,718
17년 전 조회 7,726
17년 전 조회 4,083