웹디자인 강의
Flash Flash ActionScript 추가
2007.11.08 18:26
2강. 단원, 절, 페이지
http://218.37.27.142/~lectora/chung/lec_02/lec_02.html
렉토라에 플래시액션스크립트 추가
Go to Next Page: (Note: "invButton" is the button instance)
function gotoNextPage(event:MouseEvent):void
{
var url:String = "javascript:trivNextPage()";
var request:URLRequest = new URLRequest(url);
navigateToURL(request,"_self") ;
}
invButton.addEventListener(MouseEvent.CLICK,gotoNextPage);
Go to Previous Page: (Note: "invButton" is the button instance)
function gotoPreviousPage(event:MouseEvent):void
{
var url:String = "javascript:trivPrevPage()";
var request:URLRequest = new URLRequest(url);
navigateToURL(request,"_self") ;
}
invButton.addEventListener(MouseEvent.CLICK,gotoPreviousPage );
Writing/Editing a variable from Flash to Lectora.
getURL("javascript:VarVARIABLENAME.set('Yes')");
(Or whatever you want written to the variable...)
Showing/Hiding an image/object from Flash to Lectora.
getURL("javascript: OBJECTHTMLNAME.actionShow();");
(Or whatever you want the action to be "show, hide, etc"...)
http://218.37.27.142/~lectora/chung/lec_02/lec_02.html
렉토라에 플래시액션스크립트 추가
Go to Next Page: (Note: "invButton" is the button instance)
function gotoNextPage(event:MouseEvent):void
{
var url:String = "javascript:trivNextPage()";
var request:URLRequest = new URLRequest(url);
navigateToURL(request,"_self") ;
}
invButton.addEventListener(MouseEvent.CLICK,gotoNextPage);
Go to Previous Page: (Note: "invButton" is the button instance)
function gotoPreviousPage(event:MouseEvent):void
{
var url:String = "javascript:trivPrevPage()";
var request:URLRequest = new URLRequest(url);
navigateToURL(request,"_self") ;
}
invButton.addEventListener(MouseEvent.CLICK,gotoPreviousPage );
Writing/Editing a variable from Flash to Lectora.
getURL("javascript:VarVARIABLENAME.set('Yes')");
(Or whatever you want written to the variable...)
Showing/Hiding an image/object from Flash to Lectora.
getURL("javascript: OBJECTHTMLNAME.actionShow();");
(Or whatever you want the action to be "show, hide, etc"...)
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
공지 | 공지 강좌를 올리기전 공지사항을 읽어주세요 [12] | Eccen | 2004.12.15 | 48026 |
11 | 아래 만든메뉴 mx2004 버젼입니다 [1] | 한태종 | 2007.02.26 | 7713 |
10 | 플래시에서 사진을 업로드하여 바로 미리보기 할수 있을까요? [2] | 최진영 | 2007.03.16 | 9235 |
9 | 플래쉬와 php 연동 예제 [5] | 한태종 | 2007.03.16 | 9859 |
8 | 플래시만으로 깔끔한 버튼 만들기 ~ [2] | kim's | 2007.03.24 | 15658 |
7 | 플래시 창에 100%로 삽입하기 ~~ | kim's | 2007.04.11 | 11318 |
6 | 단어장입니다~ [3] | 한태종 | 2007.07.12 | 4335 |
5 | 킴스웹에듀 ~~ 플래시 강좌사이트 입니다. | kim's | 2007.07.30 | 1263 |
» | Flash ActionScript 추가 | 김종판 | 2007.11.08 | 13432 |
3 | 갤러리 100% 활용하기 | 윤선미320 | 2007.12.04 | 14356 |
2 | 타이틀이미지 쉽게 제작해보기 [11] | 서기 | 2009.01.08 | 9310 |
1 | 저작도구로 플래시 캐릭터 만들기 | 윤선미320 | 2009.05.12 | 5579 |